Skip to content

Conversation

@iwysiu
Copy link
Contributor

@iwysiu iwysiu commented Jan 24, 2025

What this PR does / why we need it:
Fixes adhoc filters with number fields

Which issue(s) this PR fixes:

Fixes grafana/grafana#99021

Special notes for your reviewer:

text: bucket.key_as_string || bucket.key,
value: bucket.key,
text: bucket.key_as_string || keyString,
value: isTagValueQuery ? keyString : bucket.key,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Technically MetricFindValue is supposed to accept numbers as values, but it was logging a console error instead of adding the filter when I tried it, it worked properly when it was a string.

@iwysiu iwysiu marked this pull request as ready for review January 24, 2025 21:52
@iwysiu iwysiu requested a review from a team as a code owner January 24, 2025 21:52
@iwysiu iwysiu requested review from kevinwcyu and njvrzm and removed request for a team January 24, 2025 21:52
@iwysiu iwysiu merged commit 1a686f0 into main Jan 27, 2025
12 checks passed
@iwysiu iwysiu deleted the iwysiu/g/99021 branch January 27, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants