Allow users to delete title history on Issues

Proposal

This was created on behalf of a GitLab Ultimate customer

When editing an Issue's title or description, a diff is created in the Activity tab since gitlab-foss#15597 (moved)

To allow users to remove the diffs that are created in the Activity section when the title is changed for an Issue. Currently, this is possible when the description is edited on an issue by selecting Compare with previous version and then selecting the 🗑️ icon (screenshot below).

image

The same does not apply to title changes:

image

Note: This also applies to Merge Requests and Epics, which both behave the same.

Why?

A GitLab Ultimate customer has requested this functionality, as they use an internal tool to redact potential secrets from Issue/MR/Epics on GitLab.com. In doing so, a diff is created, so the secret remains visible. They ideally want to be able to edit an Issue/MR/Epic without creating this diff in certain scenarios to overcome this. However, this functionality will serve as a workaround in this case.

Related Issues

https://gitlab.com/gitlab-org/gitlab/-/issues/215793 (Confidential Issue)

Edited by Thomas Loughlin