Skip to content

Make sure that deleting a user, deletes its repositories in user's namespace

Gabriel Mazetto requested to merge 36743-delete-users-repositories into master

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?

What are the relevant issue numbers?

Closes #36743 (closed)

Edited by Gabriel Mazetto

Merge request reports