Skip to content

Destroy memberships early during user destroy

Imre Farkas requested to merge if-366655-destroy_membership_early into master

What does this MR do and why?

Migrating the user's associated records to the ghost user and destroying the rest of the records can take a lot of time. The membership should be removed as early as possible, and the user should be blocked during this process.

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/366655

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading