Replace mock assignees widget with real query
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 |
---|---|
How to set up and validate locally
-
Enable the MVC-2 feature flag
Feature.enable(:work_items_mvc_2)
-
Open work item view
-
Click on assignees field and add a few new assignees
-
Click outside the token selector. You should see multiple members assigned to work item
-
In your GitLab installation, rename
ee
folder to something else -
Restart your GDK
gdk restart
-
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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #334810 (closed)