Prevent accidental deletion of container image repositories
Problem to solve
When deleting a container registry image, users can inadvertently delete the wrong thing. This can lead to a situation where images are deleted by people working in good faith which can then be time consuming/difficult to recover. In some cases, it's not abundantly clear which project a user is looking at leading to mistaken deletions.
From the images below, only the (small) breadcrumb shows which project the user is acting on.
Proposal
Delete image repository (boring solution)
- Move the
Delete image repository
button into amore actions
button dropdown at the top of the page.- component:button ellipsis: https://design.gitlab.com/components/button/#ellipsis
- Clicking the
more action
button displays the Delete image repository option.- Clicking Delete image repository triggers the existing flow for deleting the repository.
- Clicking anywhere outside the dropdown closes it.
Considerations
It can be time-consuming for users as well as support teams of gitlab.com as well as self-managed customers. There have been a couple of recent incidents of this occurring involving large customers as well as experienced users of GitLab.
Edited by Tim Rizzi