registry: deleting image tag deletes all tags with same image id
Problem to solve
If an image has multiple tags, clicking delete on any of the tags in fact deletes all tags that refer to same image id.
This is not intuitive behavior. Expected behavior is to delete just the tag on which line the delete button was clicked.
I've clicked 'delete' on line with
There is no current API to delete just a tag: #21405 (comment 133390104).
We either need to rework our UI to be show lines per
imaged id since that is what you are deleting, or present a modal with a very clear warning that you are actually deleting an image and all of its tags.
The smallest iteration here is to add a confirmation modal that clearly lists the impact.
- Present a confirmation modal
- Clearly and emphatically state that you will delete the image and all its associated tags
- In a table, list the
image idand every tag that will be impacted.
Provide a modal since it is a destructive action
Modal copy for deleting repository:
You are able to delete the repository [Name].
[Cancel] [Delete repository]
Modal copy for deleting image:
You are about to delete the image [name]. This will delete all tags pointing to this image.
[Cancel] [Delete image and tags]
What does success look like, and how can we measure that?
Links / references