Skip to content

Add GraphQL subscription to work item title

Coung Ngo requested to merge 346158-work-item-title-subscription into master

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

  1. In rails console enable the feature flag
    Feature.enable(:work_items)
  2. Visit any issue page such as http://127.0.0.1:3000/h5bp/html5-boilerplate/-/issues/1
  3. 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
  4. Click on the task link in the issue description to open up the work item modal
  5. 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)
  6. 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.

Related to #346158 (closed)

Edited by Coung Ngo

Merge request reports

Loading