Add deleted claim table
What does this MR do and why?
We're using queue pattern, to implement claim deletion for our tables that are using cascade deletion.
Inspired by Thong's proposal.
Steps
- Create a deleted claim table and add triggers
- Create service to process deleted claims
- Create a worker to process the queue
References
- gitlab-com/gl-infra/tenant-scale/cells-infrastructure/team#498
- gitlab-com/gl-infra/tenant-scale/cells-infrastructure/team#365 (comment 2710296049)
- !200701
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Checkout the branch
- Create some affected records, e.g.
emails
- Delete a user that has more emails
- Verify that deleted records table has been populated with corresponding value
🎉
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 Bojan Marjanovic