Registry interface deletes by image id not tag
Summary
The registry UI includes a delete (trash can icon) button. When you use that to delete a tag, it actually deletes all the tags with that IMAGEID, rather than removing the single tag on that row.
Steps to reproduce
Download a docker image docker tag IMAGE registry.gitlab.com/PROJECT/image:a docker tag IMAGE registry.gitlab.com/PROJECT/image:b docker push registry.gitlab.com/PROJECT/image:a docker push registry.gitlab.com/PROJECT/image:b
Now go to the UI, you see a group: image and two rows a TAGID SIZE CREATED b TAGID SIZE CREATED
If you press the delete button on row A, both rows (a and b) are deleted.
Example Project
None
What is the current bug behavior?
Both the a and the b tags are removed from the repository. It appears to be removing the image, not the tag.
What is the expected correct behavior?
If you push the button on the row for tag a, only the a tag is removed. It is unexpected that a tag on a different row is also removed.
Relevant logs and/or screenshots
None
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
Running on gitlab.com, currently 10.6.2-ee d5f09c49
Results of GitLab application Check
None
Possible fixes
None