mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: Data source group by time interval did not take effect on initial query after dashboard load, fixes #7839
This commit is contained in:
parent
0b73369c4b
commit
32f89f65da
@ -90,8 +90,6 @@ class MetricsPanelCtrl extends PanelCtrl {
|
|||||||
delete this.error;
|
delete this.error;
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
||||||
this.updateTimeRange();
|
|
||||||
|
|
||||||
// load datasource service
|
// load datasource service
|
||||||
this.setTimeQueryStart();
|
this.setTimeQueryStart();
|
||||||
this.datasourceSrv.get(this.panel.datasource)
|
this.datasourceSrv.get(this.panel.datasource)
|
||||||
@ -196,6 +194,7 @@ class MetricsPanelCtrl extends PanelCtrl {
|
|||||||
|
|
||||||
issueQueries(datasource) {
|
issueQueries(datasource) {
|
||||||
this.datasource = datasource;
|
this.datasource = datasource;
|
||||||
|
this.updateTimeRange();
|
||||||
|
|
||||||
if (!this.panel.targets || this.panel.targets.length === 0) {
|
if (!this.panel.targets || this.panel.targets.length === 0) {
|
||||||
return this.$q.when([]);
|
return this.$q.when([]);
|
||||||
|
Loading…
Reference in New Issue
Block a user