Skip to content

Trigger work item update subscription when parent progress is updated

Abhilash Kotte requested to merge fe_add_subscription_to_wi_progress into master

What does this MR do and why?

This MR triggers Graphql subscription to update work item whenever parent's progress is changed via rollups.

Screenshots or screen recordings

Before After
https://www.loom.com/share/81eecf8f99df4a8dbaa3ba6967b69393 https://www.loom.com/share/a78558db35fb4c749cd1e13859bbc080

How to set up and validate locally

  1. Open rails console by running bin/rails console within GDK directory.
  2. Enable the feature flag :okrs_mvc on the same project; Feature.enable(:okrs_mvc).
  3. Enable the feature flag :work_items_mvc on the same project; Feature.enable(:work_items_mvc).
  4. Enable the feature flag :work_items_mvc2 on the same project; Feature.enable(:work_items_mvc2).
  5. Visit issues list page for the project by navigating to http://gdk.test:3000/gitlab-org/gitlab-test/-/issues.
  6. Create an objective by clicking on dropdown button next to New issue and selecting New objective from the dropdown.
  7. Once objective is created, click on it to visit its Work Item page, you should be able to see Tree View below the description.
  8. Use Add dropdown button create/add key results.
  9. Click Key Result you should be able to see a modal and update progress
  10. On closing the modal, parent's progress should be auto updated.

MR acceptance checklist

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

Merge request reports