Update epic deletion confirmation
What does this MR do and why?
When you delete an epic, the confirmation dialog warns of deleting all descendants, which is no longer true since Enhanced Epic Deletion Protection (#452189 - closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Type | Before | After |
---|---|---|
Legacy Epic | ||
Objective | ||
Epic work items |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Steps to verify on legacy Epics:
- In a group where you're an owner (for example http://gdk.test:3000/groups/flightjs), create an epic.
- On the epic, select Epic actions ({ellipsis_v}), then Delete epic.
- Select Delete. On the confirmation dialog, select Delete epic.
Steps to verify on Objectives:
- Enable the OKRs feature as mentioned in the OKRs docs (e.g.
::Feature.enabled?(:okrs_mvc, Project.find(<PROJECT_ID>))
and the namespace must have Ultimate plan). - Login with any user
- Go to any Project > Issues > List
- Create an new Objective under New issue split button
- Go to Objective detail page
- Click on delete
- Check if the confirmation message shows -
Are you sure you want to delete the objective? This action cannot be reversed.
- Add few child items
- Click on delete
- Check if the confirmation message shows -
Delete this objective and release all child items?
Steps to verify Epic work items:
- Enable the OKRs feature as mentioned in the OKRs docs (e.g.
::Feature.enabled?(:okrs_mvc, Project.find(<PROJECT_ID>))
and the namespace must have Ultimate plan). - Enable the feature flag
Feature.enable(:namespace_level_work_items)
- Login with any user
- Go to any Group > Epics > List
- Create an new Epic
- Go to Epic detail page
- Click on delete
- Check if the confirmation message shows -
Are you sure you want to delete the epic? This action cannot be reversed.
- Add few child items
- Click on delete
- Check if the confirmation message shows -
Delete this epic and release all child items?
Edited by Rajan Mistry