Skip to content
Snippets Groups Projects
Unverified Commit 706a08d1 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo Committed by GitLab
Browse files

Replace label fuzzy search with exact search for VSD

Ensures we only apply label filters in the value
streams dashboard when there is an exact match.

Changelog: changed
EE: true
parent ec590a2b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -111,6 +111,9 @@ panels:
- in_review
```
 
NOTE:
Only labels that exactly match the specified filters are applied.
### DORA Performers score panel
 
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/386843) in GitLab 16.3 [with a flag](../../administration/feature_flags.md) named `dora_performers_score_panel`. Disabled by default.
Loading
Loading
Loading
Loading
@@ -13,7 +13,7 @@ export const LABEL_PREFIX = 'label_';
*/
export default (labelNames, isProject) => {
const labels = labelNames.map((label, index) => {
let args = `searchTerm: "${label}", searchIn: [TITLE], includeAncestorGroups: true`;
let args = `title: "${label}", includeAncestorGroups: true`;
if (!isProject) {
args += ', includeDescendantGroups: true';
}
Loading
Loading
Loading
Loading
@@ -696,8 +696,7 @@ export const filterLabelsGroupQuery = `query ($fullPath: ID!) {
namespace: group(fullPath: $fullPath) {
id
label_0: labels(
searchTerm: "zero"
searchIn: [TITLE]
title: "zero"
includeAncestorGroups: true
includeDescendantGroups: true
) {
Loading
Loading
@@ -708,8 +707,7 @@ export const filterLabelsGroupQuery = `query ($fullPath: ID!) {
}
}
label_1: labels(
searchTerm: "one"
searchIn: [TITLE]
title: "one"
includeAncestorGroups: true
includeDescendantGroups: true
) {
Loading
Loading
@@ -726,22 +724,14 @@ export const filterLabelsGroupQuery = `query ($fullPath: ID!) {
export const filterLabelsProjectQuery = `query ($fullPath: ID!) {
namespace: project(fullPath: $fullPath) {
id
label_0: labels(
searchTerm: "zero"
searchIn: [TITLE]
includeAncestorGroups: true
) {
label_0: labels(title: "zero", includeAncestorGroups: true) {
nodes {
id
title
color
}
}
label_1: labels(
searchTerm: "one"
searchIn: [TITLE]
includeAncestorGroups: true
) {
label_1: labels(title: "one", includeAncestorGroups: true) {
nodes {
id
title
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment