Trigger Repo Deletion Before Restore
What does this MR do and why?
Currently we schedule repos to be deleted using container.run_after_commit.
Repositories::DestroyService is usually called from Projects::DestroyService where afterward a commit is made to trigger the repo deletion.
In this issue a wiki repo is not being deleted during repo restoration and causes a repository exists already exception.
This is because the task is not triggered as nothing is committed to the project (container from above).
This MR triggers the deletion by using project.touch.
Closes #375138 (closed).
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Gavin Hinfey