Skip to content

Fix the work item query not being updated in production

Natalia Tepluhina requested to merge ntepluhina-test-optimistic-update into master

What does this MR do and why?

This MR fixed the bug where with a disabled workItemMvc2 feature flag, a task in the modal was not subscribed to Apollo cache. The main reason was that workItem query was skipped due to workItemId parameter being null - and it was null because the calculation of activeChild item in the work item links was wrong. This MR fixes the calculation and allows us to use optimistic updates in the modal

How to set up and validate locally

  1. Disable work item MVC 2
    Feature.disable(:work_item_mvc_2)
  2. Open any issue, create a task, and open it in a modal
  3. Open dropdown in the top right corner
  4. Click on notification toggle a few times and ensure it's working correctly

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 Natalia Tepluhina

Merge request reports

Loading