Skip to content

Fix work item todos and notification after adding linked items widget

Rajan Mistry requested to merge fix-work-item-todo-notifications into master

What does this MR do and why?

After addition of WorkItemWidgetLinkedItems in the work_items/graphql/work_item_widgets.fragment.graphql , the todos widget is not working if it is opened in a modal.

Screenshots or screen recordings

No visual changes

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).
  2. Enable the feature flags
    1. Feature.enable(:linked_work_items)
    2. Feature.enable(:work_items_mvc_2)

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. Under 'Linked Items', click on Add button to open the form
  6. Select any relationship
  7. Search the work item and click Add
  8. Open the added item in modal by clicking on it
  9. Add the item in todos

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Rajan Mistry

Merge request reports

Loading