Skip to content

Commit 370eddb

Browse files
ilausuchcrobinso
authored andcommitted
Add limit as option to build_query
Problem: In queries where the number of bugs are too large, usually we get a timeout Solution: bugzilla API provides a limit option in queries. This commit adds this option to the build_query method
1 parent d4b1861 commit 370eddb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bugzilla/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,8 @@ def build_query(self,
11971197
sub_component=None,
11981198
tags=None,
11991199
exclude_fields=None,
1200-
extra_fields=None):
1200+
extra_fields=None,
1201+
limit=None):
12011202
"""
12021203
Build a query string from passed arguments. Will handle
12031204
query parameter differences between various bugzilla versions.
@@ -1230,6 +1231,7 @@ def build_query(self,
12301231
"quicksearch": quicksearch,
12311232
"savedsearch": savedsearch,
12321233
"sharer_id": savedsearch_sharer_id,
1234+
"limit": limit,
12331235

12341236
# RH extensions... don't add any more. See comment below
12351237
"sub_components": listify(sub_component),

0 commit comments

Comments
 (0)