Skip to content

WIP: Cleanup orphan references when updating MR

What does this MR do?

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/22014

Are there points in the code the reviewer needs to double check?

This MR is not finished yet, I will update this section after unwipping MR. Before sending the code to review I'm going to rewrite current fix a little bit, add tests and probably migration for existing orphaned references.

Why was this MR needed?

See https://gitlab.com/gitlab-org/gitlab-ce/issues/22014

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

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

Merge request reports