Skip to content

Replace local mutation for updating WI assignees with a real one

What does this MR do and why?

This MR replaces a local mock mutation for adding assignees with a real workItemUpdate mutation. It also implements a proper error handling and fixes an issue where current user's token had a gray background

Screenshots or screen recordings

No visual changes

How to set up and validate locally

  1. Enable the MVC-2 feature flag

    Feature.enable(:work_items_mvc_2)
  2. Open work item view

  3. Click on the assignees field and add a few new assignees

  4. Try to remove assignees

  5. You should see a mutation called in the Network tab and assignees should update

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 #334810 (closed)

Edited by Natalia Tepluhina

Merge request reports