Add GraphQL subscription to work item title
What does this MR do and why?
This MR adds a GraphQL subscription to the work item title so the title is updated in real time.
The MR also extracts common code between work_item_root.vue
and work_item_detail_modal.vue
into a new component work_item_detail.vue
.
Screenshots or screen recordings
Screen_Recording_2022-03-23_at_5.29.48_pm
How to set up and validate locally
- In rails console enable the feature flag
Feature.enable(:work_items)
- Visit any issue page such as
http://127.0.0.1:3000/h5bp/html5-boilerplate/-/issues/1
- Create a checkbox task in the issue description, then click on the icon to the left of the checkbox to create a new work item task type
- Click on the task link in the issue description to open up the work item modal
- On a separate tab, open up the same work item on the
/-/work_items
route, e.g.http://127.0.0.1:3000/h5bp/html5-boilerplate/-/work_items/519
(the 519 is the id, not iid, of the work item) - Change the title of the work item, then go to the other tab to confirm the title was automatically 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #346158 (closed)
Edited by Coung Ngo