Skip to content

Fix duplicating of work items in child widget

What does this MR do and why?

After subscription was added to WorkItem hierarchy in MR, it started creating duplicate 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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen Recording 2024-05-22 at 7.14.58 PM.mov Screen Recording 2024-05-22 at 7.16.43 PM.mov

How to set up and validate locally

Prerequisites:

  1. 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).

Steps to verify:

  1. Login with any user
  2. Go to any Project > Issues > List
  3. Create an new Objective under New issue split button
  4. Go to Objective detail page
  5. Add a new objective or key result
  6. Check if there are duplicate items in the list

Related to #450038 (closed)

Merge request reports