Filter out duplicate milestone results in filter search bar
What does this MR do and why?
When a user searches milestones, there can be duplicate results for milestones in different scopes that have the same title.
This MR filters those duplicates out of search results, so that each milestone name only appears once in search results.
Screenshots or screen recordings
Before | After |
---|---|
Filter results (no change)
Before | After |
---|---|
How to set up and validate locally
- Check out this branch
- In the GDK, make sure your user has access to 2 groups that each have a milestone that share the same title.
- In each of those two groups, create an issue
- Assign your user
- apply that milestone
- Go to your user's assigned issues dashboard page
- Search for that milestone
- You will see that the milestone name only appears once in search results.
- Filter on the milestone
- You will see that both of the issues you created in step 3 appear in the filter results
Related to #456346 (closed), #474921 (closed)