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

InfluxDB: Fix adhoc filter calls by properly checking optional parameter in metricFindQuery #77113

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

itsmylife
Copy link
Contributor

What is this feature?

Check the optional options parameter in metricFindQuery method.

Who is this feature for?

InfluxDB frontend mode users

Which issue(s) does this PR fix?:

Fixes #77105

Special notes for your reviewer:

How to test?

  • run grafana with influxdbBackendMigration=false
  • set up and influxdb dashboard
  • add a new ad-hoc filter and save the dashboard
  • go to the dashboard and try to see the ad-hoc filter keys, it will be failed to load
  • switch to this branch and try again

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@itsmylife itsmylife merged commit 283f279 into main Oct 25, 2023
30 checks passed
@itsmylife itsmylife deleted the ismail/optional-parameter-check-in-metricFindQuery branch October 25, 2023 13:56
grafana-delivery-bot bot pushed a commit that referenced this pull request Oct 25, 2023
…ter in metricFindQuery (#77113)

* Handle optional options parameter

* unit tests

(cherry picked from commit 283f279)
itsmylife added a commit that referenced this pull request Oct 25, 2023
…nal parameter in metricFindQuery (#77145)

InfluxDB: Fix adhoc filter calls by properly checking optional parameter in metricFindQuery (#77113)

* Handle optional options parameter

* unit tests

(cherry picked from commit 283f279)

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
ssama88 pushed a commit to ssama88/grafana that referenced this pull request Oct 31, 2023
…ter in metricFindQuery (grafana#77113)

* Handle optional options parameter

* unit tests
@aangelisc aangelisc modified the milestones: 10.3.x, 10.2.3 Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

upgrade from version 10.1.5 to version 10.2.0, influxql adhoc filters gives me "failed to load options"
3 participants