Open Bug 1193778 Opened 9 years ago Updated 5 years ago

Enhance filter panel to support searching multiple fields with boolean operators (AND/OR)

Categories

(Tree Management :: Treeherder: Frontend, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

Details

As I have seen today the filter has problems with the following setting:

https://treeherder.allizom.org/#/jobs?repo=mozilla-central&filter-job_group_symbol=Ff&filter-job_group_symbol=Fr&filter-job_group_symbol=Fu&filter-job_type_symbol=N

As talked with Cameron and Jonathan on IRC the problem is the multiple filter usage. Here the group AND the type filter is used. So they are combined with ADD and as result nothing gets shown.

It would be good to have a more flexible filter with maybe filter groups and a setting for how to combine them (OR, AND).
I think we should remove that filter panel and replace it with more advanced functionality in the quick filter input field (ie free form text entry like GMail search or bugzilla quicksearch, with optional dropdown UI for helping construct the query, like GMail). 

Some related bugs
https://bugzil.la/filter+:treeherder
Hm, maybe something DXR is using? See https://dxr.readthedocs.org/en/latest/
The work for this would be in this file, at this function:

https://github.com/mozilla/treeherder/blob/master/ui/js/services/jobfilters.js#L184-184

However, this would probably be/could be a fairly big re-work of our filtering.  I would suggest making this additive (adding the operators for fields) in the search bar.  Then when it's working well we could remove or revise the "Filters" panel.
Blocks: 1059359
Component: Treeherder → Treeherder: Frontend
Making summary more keyword dense.
Summary: Enhance filter panel to support multiple fields with boolean operators → Enhance filter panel to support searching multiple fields with boolean operators (AND/OR)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.