Remove fuzzy matching from VSD label filter

What does this MR do and why?

Updates the label filter query to use an exact match for the label names. Previously fuzzy matching was used, which would result multiple labels applied not the exact label specified in the config.

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

Before - fuzzy search After - exact search
Screenshot_2024-10-15_at_16.02.07 Screenshot_2024-10-15_at_15.38.26

How to set up and validate locally

  1. Create 2 new labels in a group. Give the labels similar names: test label, test label advanced
  2. Follow the docs to set up a custom VSD
  3. Edit the YAML config for the dora_chart panel and add the test label as a filter. For example:
  - visualization: dora_chart
    queryOverrides:
      namespace: flightjs
      filters:
        labels:
          - test label
  1. View the Value streams dashboard. Only the label with the exact title should be applied (exact search)
  2. Switch to the master/main branch, return to the VSD and both labels should be returned (fuzzy search)

Related to #465548 (closed)

Edited by Ezekiel Kigbo

Merge request reports

Loading