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:
- 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:
- Login with any user
- Go to any Project > Issues > List
- Create an new Objective under New issue split button
- Go to Objective detail page
- Add a new objective or key result
- Check if there are duplicate items in the list
Related to #450038 (closed)