Deduplicate label token results
What does this MR do and why?
In group contexts, multiple identical labels might be present in the labels search dropdown (each in a separate project). Clicking on any of them will filter on all of them (i.e., results that match any of the various project labels that have the same name), so we might as well deduplicate the list and only show one of them.
References
- Identical subgroup labels are duplicated at gro... (#9453 - closed)
- ✂️ UX Paper Cuts 18.2 → USAT & bug::ux (#513103 - closed)
Screenshots or screen recordings
| Before | After |
|---|---|
|
(no change) |
|
How to set up and validate locally
- Check out this branch
- Inside a group, make sure two different projects each have the same label (but give them different colors to make them easy to tell apart)
- Make sure there is at least 1 issue with each of the two labels applied
- Visit the group's issue page
- In the filtering bar, start filtering on labels
- You will only see one of the two duplicate labels in the list (this is the main change in this MR)
- filtering on that label will show all the issues that have any label with that name applied (i.e., all the results for both duplicate project labels). Note that this is the current prod filtering behavior, this has not changed.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #9453 (closed)





