Add `Delete issue` option in issue page ellipsis dropdown
What does this MR do and why?
This MR adds a Delete issue
option in the issue page ellipsis dropdown
to make deleting an issue more discoverable. Currently, the
only way to delete an issue is to first edit the description
then the Delete issue
button appears under the text box. #299933 (closed)
This commit also:
- Adds snowplow tracking to both
Delete issue
buttons to compare usage, so we can track usage and potentially remove one of the buttons in the future - Changes deleting an issue from ajax to server-side form
submission. The current ajax request also stops polling on the page, but we don't have access to the polling object in
header_actions.vue
so changing to server-side form submission reduces the complexity of stopping the polling on issue deletion.
The snowplow fields are:
- For the
Delete issue
item in the ellipsis dropdown- action:
click_dropdown
- label:
delete_issue
- action:
- For the
Delete issue
button under the description text box- action:
click_button
- label:
delete_issue
- action:
Screenshots or screen recordings
Screen_Recording_2021-12-09_at_12.10.03_pm
How to set up and validate locally
- Visit any issue
- Delete the issue either by clicking on the ellipsis dropdown menu, or editing the description then clicking on the
Delete issue
button that appears
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #299933 (closed)
Edited by Coung Ngo