Migrate missing project push rules records

What does this MR do and why?

This MR is part of the effort to migrate records from the push_rules table to the dedicated project_push_rules table.
During the initial migration (!211812 (merged) and !212378 (merged)), a few records out of ~13.2M were not migrated for unknown reasons. This BBM catches any missing records by checking for push_rules entries that don't have a corresponding record in project_push_rules. Queue migration batches on :projects, :id instead of :push_rules, :id used in the previous migration.

References

Project push rules: Migrate project push rules ... (#499156)

Query Plans

https://console.postgres.ai/gitlab/gitlab-production-main/sessions/47773/commands/144201

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Emma Park

Merge request reports

Loading