Closed Bug 1546717 Opened 6 years ago Closed 6 years ago

Add the ability to search on count gt/lt/eq

Categories

(bugzilla.mozilla.org :: Search, enhancement)

Production
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: calixte, Assigned: kohei)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
Details | Review

Some fields have a list as value, e.g. regressed_by, depends_on, keywords, ...
It'd be nice to be able to search on the number of elements in the list.
For example:
'f1': 'regressed_by',
'o1': 'count_greaterthan',
'v1': 3

will return all the bugs where regressed_by contains more than 3 bugs.

What we have now:

  • Number of comments
  • Votes
  • Duplicate Count (BMO extension, not searchable, Bug 985285)
  • CC Count (BMO extension, not searchable, Bug 62718)

Most fields are uncountable so we probably have to add new fields, not an operator.

  • Number of Attachments (Bug 1440227)
  • Number of Keywords
  • Number of Depends on
  • Number of Blocks
  • Number of Regressions
  • (Number of Regressed by) <- We probably don’t need this, because it’s 0 or 1. Technically it can be multiple though.
Assignee: nobody → kohei.yoshino
Status: NEW → ASSIGNED

We want to expose these fields as columns in search results as well as fields in the /rest/bug API, right?

That's probably unnecessary, as they can be calculated from the already existing fields.

Attached file GitHub Pull Request
Blocks: 1440227

Merged to master.

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: