Disallow the creation of duplicate labels anywhere within a Group and all of its descendant subgroups and projects
Problem To Solve
If I have a group/subgroup/project hierarchy, it is very easy to accidentally create duplicate labels, which have cascading effects given our inheritance model. This leads to super confusing interactions when you need to apply a label to an issue. For example:
Proposal
TL;DR: There should only ever be 1 label of the same name within any hierarchy on groups/sub-groups/projects. If there is a more efficient way to accomplish this outcome, please proprose it!
-
When create a group label and there is a duplicate label that exists in a subgroup or project, allow for that label to be promoted to the current group that is trying to create the duplicate label. -
If they decline to promote the label, display an error message indicating that there cannot be duplicate labels anywhere in a group hierarchy. -
Prevent any subgroup or project from creating a duplicate label. I should not be able to create the same label in this subgroup because on already exists within the parent group, nor should I be able to in this subgroup, nor in this subgroup. -
Allow existing duplicative labels to be promoted to any parent group -- and merged gracefully with the existing label at the parent group level. -
If a label is promoted to the top-most parent, check all other sub-groups and automatically promote any other duplicate labels.
Don't Do...
- Migrations to automatically correct duplicative labels.
UX
Select Target Group For Promotion
Inline Validation
Create Label From Label List Validation
Displaying Canonical Label Source
Current conversation is ongoing (#18034 (comment 348660035))
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.