Skip to content
Snippets Groups Projects
Unverified Commit beeafe13 authored by Alex Pennells's avatar Alex Pennells Committed by GitLab
Browse files

Merge branch '465548-remove-fuzzy-matching-from-vsd-label-filter' into 'master'

parents 6576f238 706a08d1
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