Fix the work item query not being updated in production
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
- Disable work item MVC 2
Feature.disable(:work_item_mvc_2)
- Open any issue, create a task, and open it in a modal
- Open dropdown in the top right corner
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Natalia Tepluhina