Allow user to trigger pruning unreachable objects
requested to merge 31354-cleaned-commits-can-still-be-accessed-after-running-repository-cleanup into master
What does this MR do and why?
Allow user to trigger pruning unreachable objects
- Adds button to trigger pruning of unreachable objects
- Updates documentation
Contributes to: #31354 (closed)
Screenshots or screen recordings
Clicking the Prune unreachable objects
button should open this modal:
How to set up and validate locally
- Clone a project
- Checkout a new branch (e.g
git checkout -b branchname
) - Push a commit and see that the commit is visible (e.g
http://127.0.0.1:3000/root/projectname/-/commit/88f34907e707a1cca5e9fd402af9709599865516
- Make the commit unreachable by force pushing (e.g
git reset --hard HEAD~1 && git push --force origin branchname
- Trigger house keeping (e.g Settings -> General (
http://127.0.0.1:3000/root/projectname/edit
) -> Advanced -> Housekeeping -> Run Housekeeping) - Wait 30 minutes
- Trigger
Prune unreachable objects
- Check that the commit is no longer visible. (404)
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.
Related to #31354 (closed)
Edited by Jerry Seto