Fix sidebar labels scoped label selection bug
requested to merge 341121-label-picker-unchecks-label-that-isn-t-part-of-the-scoped-label-set into master
What does this MR do and why?
This MR fixes a bug in the sidebar labels widget.
Correct behaviour:
- When selecting a scoped label, any existing scoped labels are unselected
- When selecting a scoped label, any existing labels with the same title as the scoped label key are not modified
Incorrect behaviour before:
- When selecting a scoped label, existing scoped labels might incorrectly stay selected
- When selecting a scoped label, any existing labels with the same title as the scoped label key are incorrectly unselected
Related to #341121 (closed)
Screenshots or screen recordings
before | after |
---|---|
Screen_Recording_2021-09-17_at_6.22.31_pm | Screen_Recording_2021-09-17_at_6.33.11_pm |
How to set up and validate locally
- Visit any group or project issues page such as
http://127.0.0.1:3000/h5bp/html5-boilerplate/-/issues/1
- Create labels and scoped labels with the same beginning string
- Test the sidebar labels widget
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #341121 (closed)
Edited by Coung Ngo