Group deletion failure ref `protected_branch_push_access_levels`
https://sentry.gitlap.com/gitlab/gitlabcom/issues/23763/
PG::ForeignKeyViolation: ERROR: update or delete on table "namespaces" violates foreign key constraint "fk_rails_7111b68cdb" on table "protected_branch_push_access_levels"
DETAIL: Key (id)=(1827859) is still referenced from table "protected_branch_push_access_levels".
app/services/groups/destroy_service.rb:26:in `execute'
group.really_destroy!
lib/gitlab/metrics/instrumentation.rb:156:in `block in execute'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
lib/gitlab/metrics/method_call.rb:23:in `measure'
retval = yield
lib/gitlab/metrics/instrumentation.rb:156:in `execute'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
app/workers/group_destroy_worker.rb:14:in `perform'
Groups::DestroyService.new(group, user).execute
...
(80 additional frame(s) were not displayed)
ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: update or delete on table "namespaces" violates foreign key constraint "fk_rails_7111b68cdb" on table "protected_branch_push_access_levels"
DETAIL: Key (id)=(1827859) is still referenced from table "protected_branch_push_access_levels".
: DELETE FROM "namespaces" WHERE "namespaces"."type" IN ('Group') AND "namespaces"."id" = 1827859
PG::ForeignKeyViolation: ERROR: update or delete on table "namespaces" violates foreign key constraint "fk_rails_7111b68cdb" on table "protected_branch_push_access_levels"
DETAIL: Key (id)=(1827859) is still referenced from table "protected_branch_push_access_levels".
: DELETE FROM "namespaces" WHERE "namespaces"."type" IN ('Group') AND "namespaces"."id" = 1827859