Make sure that deleting a user, deletes its repositories in user's namespace
What does this MR do?
-
When removing user, repositories in its own namespace is removed as well -
Garbage collection of orphan / invalid repositories because of this issue
Are there points in the code the reviewer needs to double check?
TBD Garbage collection script
Why was this MR needed?
Although we are fixing this in %10.0 as part of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13246 we need a "complete fix" for users who would not upgrade yet to the hashed storage.
The script to clean up leftovers is here: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14204
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added -
Tests added for this feature/bug - Review
-
Has been reviewed by UX -
Has been reviewed by Frontend -
Has been reviewed by Backend -
Has been reviewed by Database
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together
What are the relevant issue numbers?
Closes #36743 (closed)