Deleting container registry item should delete a single tag, not all tags with matching image ID

Summary

Clicking the delete button next to a line item in the container registry not only deleted the row item, it deleted ALL row items with the same image ID.

Steps to reproduce

docker build -t myrepo/myimage:1.2.3 .
docker push myrepo/myimage:1.2.3
docker tag myrepo/myimage:1.2.3 myrepo/myimage:latest
docker push myrepo/myimage:latest

Go to the gitlab registry UI, click the delete button next to myimage:1.2.3

Expected behavior

I expected the delete functionality to work like Docker's Trusted Registry where delete will delete a tag. If there is another tag with the same image ID it should be left alone.

Actual behavior

All tags with matching image ID are removed.

Assignee Loading
Time tracking Loading