Feature #35616
openRemove "Delete" from the context menu for related issues
0%
Description
A related issue has a context menu that is invoked by right-clicking the issue.
It contributes to improving usability, but it also causes certain misoperation. This is the accidental deletion of an issue. Sometimes users misunderstand "Delete" in the context menu as a menu item to delete the issue relation, and accidentally delete the issue. I have seen such users many times.
I don't think there are many cases where you want to delete issues in the "Related issues" section. In my opinion, It is rather harmful to have "Delete" in the menu.
I suggest removing the "Delete" from the context menu in order to avoid such accidents.
Files
Updated by Mischa The Evil about 4 years ago
I agree that this can be confusing for (novice) users and I think it applies to all places where such context menu has been added over the years (e.g. issue show subtask section, calendar, gantt, etc.).
Updated by Go MAEDA 7 days ago
- File 35616-WIP.patch 35616-WIP.patch added
I have created a patch that modifies the context menu for issues to remove the "Delete" action when the context menu is triggered outside the Issues list view. This change ensures that the "Delete" action is only available when the context menu is accessed from the Issues list, reducing the risk of accidental deletions in other views.
Please note that this patch is still a work in progress, and some tests in context_menus_controller_test.rb are currently failing.
Updated by Go MAEDA 4 days ago
- File 0001-Add-back_url-parameter-to-get-requests-in-context-me.patch 0001-Add-back_url-parameter-to-get-requests-in-context-me.patch added
- File 0002-Show-the-Delete-item-in-the-context-menu-only-when-o.patch 0002-Show-the-Delete-item-in-the-context-menu-only-when-o.patch added
- Target version set to Candidate for next major release
I have created patches that show the "Delete" option in the issue context menu only when it is opened from the issues list, Gantt chart, or calendar. When the context menu is opened from other views, the "Delete" option is not included.
This helps prevent accidents, such as mistakenly deleting an issue when trying to remove a relation from the "Related issues" context menu.
Regarding #note-1, there was a suggestion to also remove "Delete" from the context menu opened from the calendar and Gantt chart. However, in these patches, "Delete" remains available in those views because the calendar and Gantt chart are alternative representations of the issues list, so I believe it is natural to keep "Delete" there.
Updated by Go MAEDA 4 days ago
- File 0002-Show-the-Delete-item-in-the-context-menu-only-when-o.patch 0002-Show-the-Delete-item-in-the-context-menu-only-when-o.patch added
I forgot to commit tests in the previous post.
Updated by Go MAEDA about 16 hours ago
- Target version changed from Candidate for next major release to 6.1.0
Setting the target version to 6.1.0.