Skip to content

WIP: Validate uniquness of labels for issues and MRs on database level

Valery Sizov requested to merge label-link-uniquw-index into master

What does this MR do?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/28519

TODO

  • Create a migration to remove the old index
  • Wrote the SQL to remove duplicates
  • Create a migration to add a new index['target_id', 'target_type', 'label_id']
  • Make it follow our new Migration Style Guide.
  • Also I think we need to change the order of migrations. Firstly we need to create a new index then drop an old one to not cause a performance drop during the migration.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/28519

Edited by Valery Sizov

Merge request reports