Enable `NOT` negation for Vue MR list Milestone filter
What does this MR do and why?
This is a follow-up to the caveats section of !153925 (merged).
We have a list of negatable filters, so we can now enable !=
for Milestone filtering.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After | |
---|---|---|
Filter options | ![]() |
![]() |
Filtering to NOT v0.0
|
![]() |
![]() |
How to set up and validate locally
- Enable the
vue_merge_request_list
feature flag in the rails consolerails c
=>Feature.enable( :vue_merge_request_list )
- Make sure that at least 1 MR has a milestone assigned (MRs with different milestones would be useful)
- Navigate to the Merge Request list e.g.
http://gdk.test:3443/[YOUR USERNAME]/[THE PROJECT NAMESPACE]/-/merge_requests
- Begin typing
milestone
in the search bar, and select themilestone
filter - Select the
!=
(NOT) exclusion - Select one of your milestones that would exclude some MRs
- Submit the search / filter
- Try refreshing the page completely to test the URL search parameter on initial load
- Try clearing the milestone token filter and submitting that to see all the MRs become visible
Edited by Thomas Randolph