Skip to content

Fix organization_id of namespaces/projects not matching their parent

In Adds `parent_organization_match` validation (!159903 - merged), we introduced a validation called parent_organization_match that checks if projects.organization_id matches that of its group or user namespaces. We do the same for namespaces if its parent is present.

I could only find 2 instances of this on gitlab.com:

  1. https://console.postgres.ai/gitlab/gitlab-production-main/sessions/30940/commands/96119
  2. https://console.postgres.ai/gitlab/gitlab-production-main/sessions/30940/commands/96138

Maybe we can ask the owners of these projects to delete them so we can skip running the migration on gitlab.com since there are only 2 of them.

We do need the migration to fix other installations.