[go: up one dir, main page]

Skip to content

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

  1. Create a deleted claim table and add triggers
  2. Create service to process deleted claims
  3. Create a worker to process the queue

References

Screenshots or screen recordings

Before After

How to set up and validate locally

  1. Checkout the branch
  2. Create some affected records, e.g. emails
  3. Delete a user that has more emails
  4. 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

Merge request reports

Loading