Skip to content

Replace mock assignees widget with real query

Natalia Tepluhina requested to merge 334810-integrate-assignees-query into master

What does this MR do and why?

This MR replaces a mocked query for work item assignees with fetching a widget from the actual GraphQL API. On top of this, in this MR we also implement a distinction between Core and Premium in terms of allowing multiple assignees. When multiple assignees are allowed (Premium), we can multi-select in token-selector dropdown. On Core, whenever we select a new assignee from the dropdown, we replace the previous one with new value.

Screenshots or screen recordings

Core Premium
single multiple

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 assignees field and add a few new assignees

  4. Click outside the token selector. You should see multiple members assigned to work item

  5. In your GitLab installation, rename ee folder to something else

  6. Restart your GDK

    gdk restart
  7. Try adding assignees again. When you click on dropdown item, the dropdown should close and work item should have a single assignee

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