Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selector: Fix query being valid with incomplete matchers #23

Merged
merged 5 commits into from
Mar 23, 2023

Conversation

svennergr
Copy link
Contributor

Discovered in grafana/grafana#65287 a query like {label="value",} would currently be considered valid. With this PR this is fixed.

Matchers can already contain ,, so it's enough to remove "{" Matchers "," "}".

@svennergr svennergr added the bug Something isn't working label Mar 23, 2023
@svennergr svennergr requested a review from a team March 23, 2023 17:30
Copy link
Member

@ivanahuckova ivanahuckova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

test/expression.txt Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants