Label search mismatch when viewing dashboard panels

Problem

When loading a dashboard panel, each panel has the label the data is being filtered by which is defined in the yaml file.

When displaying which labels are being filtered (matched), the labels return all labels containing the label name than an exact match and it's confusing and inaccurate.

Follow-up to #460112 (closed)

This is the current bug behavior.

Solution

Add exact matching for the labels query.

Something like:

{
  group(fullPath: "gitlab-org") {
    id
    labels(title: "type::bug", includeAncestorGroups:true, includeDescendantGroups: true) {
      nodes {
        id
        title
        color
      }
    }
  }
}

This is expected correct behavior.

Edited by charlie ablett