Add Requeue backfill post migration for User Addon Assignments
What does this MR do and why?
The problem is ongoing because:
-
GitlabSubscriptions::Duo::BulkAssignServiceusesupsert_allwhich bypasses ActiveRecord callbacks - Other services may also bypass callbacks when creating addon assignments
- This leads to missing historical data in ClickHouse for addon assignments
This migration will identify AddPn assignments without corresponding Papertrail versions and create the missing records with proper event='create' and correct timestamps. We have run this migration before so that has been already tested in !196272 (merged)
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
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.
Related to #566534 (closed)
Edited by Amr Taha