Skip to content

Filter work item label list by title only

What does this MR do and why?

Make work item labels list match search behavior of issue labels list.
Previously search also searched description, now has additional filter to only match title.
Same filtering as found in dropdown_contents_labels_view.vue

How to set up and validate locally

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

  1. Enable work_items_mvc_2 feature flag
  2. Add a label with a description that is the title of another label Screenshot_2024-02-28_at_22.57.58
  3. Go to work item page, e.g. http://gdk.test:3000/gitlab-org/gitlab-test/-/work_items/31
  4. Edit label dropdown, search for title. Label with the search term in description should not show up Screenshot_2024-02-28_at_23.02.10

Related to #442834 (closed)

Edited by Simon Knox

Merge request reports