The behavior of scoped labels with multi-colons has changed
Summary
Before gitlab!21377 (merged) was merged, scoped labels with multi-colons, such as group::car::porsche
, would render exactly like that, but after the merge, it renders only as group car
.
Steps to reproduce
- Create a scoped label such as
group::car::porsche
- Create an issue and assign the above-create label to it
Example Project
There's an automated test failing that can be used as an example: https://gitlab.com/gitlab-org/gitlab-qa/-/jobs/449639799
Note: the test will need a small change too, which will come soon.
What is the current bug behavior?
Only group car
is shown as a scoped label in the issue.
What is the expected correct behavior?
Although the style has changed, the behavior of the functionality should not have changed, meaning that the scoped label should be shown as group car porsche
.
Note: I'm just not sure if group
is considered the key, and car porsche
the value, or if the key is group car
, and the value is just porsche
, but I think the latter is the correct one.
Relevant logs and/or screenshots
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
/cc @fguibert, and @donaldcook