grafana / explore-logs

Repo for the Loki log exploration app
GNU Affero General Public License v3.0
310 stars 14 forks source link

Service selection: Showing incorrect list of services after changing datasource on breakdown views #811

Closed gtk-grafana closed 1 month ago

gtk-grafana commented 1 month ago

Fixes: https://github.com/grafana/explore-logs/issues/808

Updates service selection functionality to always re-run volume query on activation of service selection scene. This bug was likely introduced with the runtime datasource change.

Ideally there would be a way to know if a dataprovider has changed datasources, and we could only re-run this query when the datasource changed, and otherwise use the cached result if available, but this appears to be a consequence of using a runtime datasource.