summaryrefslogtreecommitdiff
path: root/builds
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-10-21 12:39:32 +0000
committerRémy Coutable <remy@rymai.me>2016-10-21 12:39:32 +0000
commit075b6ba5e162226ed223f428496e4ec60c96525e (patch)
treee7e4b642427fb5f358ecbadecfc0fb037a4b0d1c /builds
parentcd2275ce9117e227be274effe34fec7347e8a11c (diff)
parentb332931af375a29fa0ff41d45315400beca44c7a (diff)
downloadgitlab-ce-075b6ba5e162226ed223f428496e4ec60c96525e.tar.gz
Merge branch 'sh-fix-label-uniquness-migration' into 'master'
Fix broken label uniqueness label migration The previous implementation of the migration failed on staging because the migration was attempted to remove labels from projects that did not actually have duplicates. This occurred because the SQL query did not account for the project ID when selecting the labels. To replicate the problem: 1. Disable the uniqueness validation in app/models/label.rb. 2. Create a duplicate label "bug" in project A. 3. Create the same label in project B with label "bug". The migration will attempt to remove the label in B even if there are no duplicates. To fix the issue, include the project ID when selecting the labels. Closes #23609 See merge request !7030
Diffstat (limited to 'builds')
0 files changed, 0 insertions, 0 deletions