Allow metric images to be deleted
As mentioned here: #235994 (comment 449500797)
As far as I can tell delete functionality isn't in the current implementation of the API - we will each have a small piece of work to add this after the main MRs are merged.
I'll raise a follow-up for 13.7 so we can track it / account for it in planning.
Proposal
Allow uploaded metric images to be deleted.
- Add delete API for metric images.
- Add frontend to use this API.
Why?
Without the ability to delete images there is potential for abuse. Users could upload images without the possibility of easy deletion. To delete such an image, someone would have to contact an instance admin or .com support staff and they would have to direct a DB admin to undertake a manual deletion in the database.
Design
Discussion here about the design of the delete button/icon: #235994 (comment 441992369).
Permissions
The permissions will match that of incident descriptions editing.