grafana / yugabyte-datasource

The Yugabyte data source for Grafana allows you to query and visualize data from YugabyteDB.
https://grafana.com/grafana/plugins/grafana-yugabyte-datasource/
Apache License 2.0
0 stars 0 forks source link

fix the builder not consistently loading dropdown items #32

Closed gwdawson closed 5 months ago

gwdawson commented 5 months ago

currently, when you create a dashboard new panel grafana tries to run an empty query. this crashes the plugin meaning the dropdown items are never returned, making the builder unuseable.

this fixes the behaviour by filtering out any empty queries before running.

Before: https://github.com/grafana/yugabyte-datasource/assets/34524710/4afba13b-f61d-4d06-a819-57006db6e569

After: https://github.com/grafana/yugabyte-datasource/assets/34524710/524730da-da6d-44ae-9cf5-dc7aab7ca78e