Backend for advanced search merge request source-branch facet
The source_branch
field currently exists on the merge_request document
- Pass down new param to
SearchResults
class - Add a new feature flag
- Update
MergeRequestQueryBuilder
behind the FF to:
- if
=
: add filter forsource_branch
= source_branch - if
!=
: add must_not forsource_branch
= source_branch
Params will be expected from the frontend as:
-
source_branch
andnot[source_branch]
(translated tonot_source_branch
to be sent to Elasticsearch)
Edited by Terri Chu