Skip to content

Add remove_child quick action for work items

Joseph Wambua requested to merge 434345-remove-child-quick-action into master

What does this MR do and why?

Add /remove_child #work_item_reference quick action for work items.

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

Screen_Recording_2024-02-08_at_15.16.38

How to set up and validate locally

  1. Enable the feature flag :okrs_mvc
  2. In the rails console, create two work items:
project, user = Project.first, User.first
WorkItem.create!(title: 'key result 1', author: user, project: project, work_item_type_id: key_result_type_id, issue_type: :key_result)
WorkItem.create!(title: 'key result 2', author: user, project: project, work_item_type_id: key_result_type_id, issue_type: :key_result)
  1. Visit the first work item using the work items view, for example: http://127.0.0.1:3000/group/project3/-/work_items/1.
  2. Set the second quick action as the child, using this quick action /add_child #2
  3. Test the new quick action by typing /remove_child #2 in a new comment.
  4. Confirm that the second work item is removed from being a child to the first one.

Related to #434345 (closed)

Edited by Joseph Wambua

Merge request reports