Skip to content

Fix CleanupGroupImportStatesWithNullUserId post deploy migration

What does this MR do?

Fix post deployment migration for scenarios that failed on production gitlab-com/gl-infra/production#2731 (closed)

Data migration failed when calling group.parent with Invalid single-table inheritance type: Group is not a subclass of CleanupGroupImportStatesWithNullUserId::Namespace.

This MR removes redefined STI parent association and instead redefines parent method instead, to do a simple group look up by id, avoiding STI altogether.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Mayra Cabrera

Merge request reports