mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
refactor: Merge PanelChrome and DataPanel, do query execution in PanelQueryRunner (#16632)
Moves query execution logic to PanelQueryRunner and structures PanelChrome so it subscribes to the query results rather than necessarily controlling their execution.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { ComponentClass } from 'react';
|
||||
import { LoadingState, SeriesData } from './data';
|
||||
import { TimeRange } from './time';
|
||||
import { ScopedVars, DataRequestInfo, DataQueryError } from './datasource';
|
||||
import { ScopedVars, DataRequestInfo, DataQueryError, LegacyResponseData } from './datasource';
|
||||
|
||||
export type InterpolateFunction = (value: string, scopedVars?: ScopedVars, format?: string | Function) => string;
|
||||
|
||||
@@ -10,6 +10,9 @@ export interface PanelData {
|
||||
series: SeriesData[];
|
||||
request?: DataRequestInfo;
|
||||
error?: DataQueryError;
|
||||
|
||||
// Data format expected by Angular panels
|
||||
legacy?: LegacyResponseData[];
|
||||
}
|
||||
|
||||
export interface PanelProps<T = any> {
|
||||
|
||||
Reference in New Issue
Block a user