grafana / grafana-plugin-examples

181 stars 52 forks source link

Update query filtering examples #255

Closed sunker closed 6 months ago

sunker commented 6 months ago

Now that query filtering is being changed in Grafana, it's time to update our examples. There's no longer a need to filter out hidden queries in the data source as this is being taken care of by Grafana. Also, filterQuery is now being called from the query runner, so frontend data sources no longer need to do this in the query method.

While at it, I'm also replacing usage of defaults(target, defaultQuery) with the implementation of getDefaultQuery.