Skip to content

Allow user to trigger pruning unreachable objects

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

Screenshot_2023-02-02_at_5.27.13_PM

Clicking the Prune unreachable objects button should open this modal:

Screenshot_2023-02-02_at_5.27.18_PM

How to set up and validate locally

  1. Clone a project
  2. Checkout a new branch (e.g git checkout -b branchname)
  3. Push a commit and see that the commit is visible (e.g http://127.0.0.1:3000/root/projectname/-/commit/88f34907e707a1cca5e9fd402af9709599865516
  4. Make the commit unreachable by force pushing (e.g git reset --hard HEAD~1 && git push --force origin branchname
  5. Trigger house keeping (e.g Settings -> General (http://127.0.0.1:3000/root/projectname/edit) -> Advanced -> Housekeeping -> Run Housekeeping)
  6. Wait 30 minutes
  7. Trigger Prune unreachable objects
  8. 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.

Related to #31354 (closed)

Edited by Jerry Seto

Merge request reports