Skip to content

Update type of work label filters

What does this MR do and why?

Updates the type of work state to use selectedLabels. This MR

  • Replaces selectedLabelNames and selectedLabelIds state with selectedLabels
  • Adds getters for selectedLabelNames and selectedLabelIds
  • Updates the toggleSelectedLabel method to search by label title only
  • Updates jest tests

With [VSA] Support `label_name` instead of `label_id... (#368994 - closed) we have migrated the task by type chart to use label_names instead of label_ids as a request parameter. Currently the label selector still uses the label_id to mark the currently selected, but we use label_name (title) for the url parameters.

Note: Remove unused VSA label_ids param (!98434 - merged) removes the label_id parameter entirely

Screenshots or screen recordings

No visual changes

How to set up and validate locally

All tests passing

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

Edited by Ezekiel Kigbo

Merge request reports