"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public/app/features/query/state/DashboardQueryRunner/DashboardQueryRunner.ts" between
grafana-8.0.0.tar.gz and grafana-8.0.1.tar.gz

About: Grafana is a visualization tool for monitoring, metric analytics and dashboards for Graphite, InfluxDB, Prometheus and many more.

DashboardQueryRunner.ts  (grafana-8.0.0):DashboardQueryRunner.ts  (grafana-8.0.1)
skipping to change at line 63 skipping to change at line 63
} }
getResult(panelId?: number): Observable<DashboardQueryRunnerResult> { getResult(panelId?: number): Observable<DashboardQueryRunnerResult> {
return new Observable<DashboardQueryRunnerResult>((subscriber) => { return new Observable<DashboardQueryRunnerResult>((subscriber) => {
const subscription = this.results.subscribe({ const subscription = this.results.subscribe({
next: (result) => { next: (result) => {
const annotations = getAnnotationsByPanelId(result.annotations, panelI d); const annotations = getAnnotationsByPanelId(result.annotations, panelI d);
const alertState = result.alertStates.find((res) => Boolean(panelId) & & res.panelId === panelId); const alertState = result.alertStates.find((res) => Boolean(panelId) & & res.panelId === panelId);
subscriber.next({ annotations: dedupAnnotations(annotations), alertSta te }); subscriber.next({ annotations: dedupAnnotations(annotations), alertSta te });
}, },
error: subscriber.error, error: (err) => subscriber.error(err),
complete: subscriber.complete, complete: () => subscriber.complete(),
}); });
return () => { return () => {
subscription.unsubscribe(); subscription.unsubscribe();
}; };
}); });
} }
private executeRun(options: DashboardQueryRunnerOptions) { private executeRun(options: DashboardQueryRunnerOptions) {
const workers = this.workers.filter((w) => w.canWork(options)); const workers = this.workers.filter((w) => w.canWork(options));
const workerObservables = workers.map((w) => w.work(options)); const workerObservables = workers.map((w) => w.work(options));
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)