Skip to content

Draft: Use a modal to confirm triggering prune

What does this MR do and why?

This is mean to address the feedback from !105584 (merged)

  • Do we need a dedicated section for Pruning unreachable objects? Could it be combined with the housekeeping section eg. below image
  • This is a non-reversible destructive action. I think we should consider showing a modal and prompt people to confirm before they proceed as per guidelines. WDYT?

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. Settings -> General
  2. Scroll down to Advanced and click expand
  3. See a button for Prune unreachable objects
  4. Click the button and see a modal
  5. Click ok and validate that a request is made to housekeeping with prune=true and get redirected to the project page

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