VSD labels search includes results with matching descriptions
Bug originally caught here: gitlab-org/quality/insights-config!34 (comment 1890584677)
When filtering by label on the VSD, additional labels with matching descriptions can inadvertently pulled into the labels list.
For example, in this project with the YAML config:
queryOverrides:
namespace: gitlab-org
filters:
labels:
- "type::bug"
The expected result here would be a single typebug label filter to be applied. In reality all of the labels that appear in these search results are applied instead. This happens because each of the additional labels references typebug in their description.
There isn't currently a way to avoid this behaviour when loading labels via GraphQL, as there is no way to customize the results from searchTerm. This will need backend changes to the GraphQL resolver, as well as frontend changes to implement the new addition for the VSD
What is the current bug behavior?
What is the expected correct behavior?
Example Project
- Dashboard of gitlab-org - https://gitlab.com/groups/gitlab-org/-/analytics/dashboards/value_streams
- The file can be in https://gitlab.com/gitlab-org/quality/insights-config