Closed
Bug 681730
Opened 13 years ago
Closed 13 years ago
Allow Bug.search to return bug count only
Categories
(Bugzilla :: WebService, enhancement)
Bugzilla
WebService
Tracking
()
RESOLVED
DUPLICATE
of bug 567994
People
(Reporter: dkl, Assigned: dkl)
Details
Attachments
(1 file)
1.10 KB,
patch
|
mkanat
:
review-
|
Details | Diff | Splinter Review |
The Add on team asked for Bug.search to have a way to return only the bug count from a search rather than the whole list of bugs thus saving some overhead. This patch adds a new param 'count_only' to Bug.search and when set to true, a single key called 'bug_count' is returned with the value the number of matched bugs. Without the param, the same full data is returned as before.
Patch attached.
dkl
Attachment #555502 -
Flags: review?(mkanat)
Comment 1•13 years ago
|
||
Comment on attachment 555502 [details] [diff] [review]
Patch to add count_only param to Bug.search (v1)
Review of attachment 555502 [details] [diff] [review]:
-----------------------------------------------------------------
I like the idea, but I think a better solution would be to implement a Bug.count method like the one Gerv wants in bug 567994 (which he has in BzAPI already, AFAIK).
Attachment #555502 -
Flags: review?(mkanat) → review-
Updated•13 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•