Skip to content

Sort work item assignees on frontend by name

Deepika Guliani requested to merge dg-sort-assignees into master

What does this MR do and why?

Apply sorting for assignees on name on the frontend. Fixes both the points in Follow up: Work Items: Assignees reorder on `wo... (#438481 - closed)

:Behind work_items_mvc_2

P.S : This also fixes a UX bug where the work item update is called even when we do not change any selection, and another small one to reset the search results on close

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen_Recording_2024-01-23_at_2.06.14_PM Screen_Recording_2024-01-23_at_2.11.42_PM

Fix UX bug not call workItemUpdate when selection is same

Before After
Screen_Recording_2024-01-23_at_4.02.51_PM Screen_Recording_2024-01-23_at_3.58.44_PM

Fix UX bug to reset the search results on dropdown close

Before After
Screen_Recording_2024-01-25_at_12.17.29_PM Screen_Recording_2024-01-25_at_12.12.34_PM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Example below:

  1. In rails console enable FF

    Feature.enable(:work_items_mvc_2)
  2. Visit any work item

  3. See that the assignees are always alphabetically ordered and play with any widget update

Closes Follow up: Work Items: Assignees reorder on `wo... (#438481 - closed)

Edited by Deepika Guliani

Merge request reports