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.

image image

Proposal

Delete image repository (boring solution)

  • Move the Delete image repository button into a more actions button dropdown at the top of the page.

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