mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Schema: Remove key from root DataQuery type (#64467)
This commit is contained in:
@@ -34,19 +34,19 @@ export interface DataQuery {
|
||||
datasource?: unknown;
|
||||
/**
|
||||
* true if query is disabled (ie should not be returned to the dashboard)
|
||||
* Note this does not always imply that the query should not be executed since
|
||||
* the results from a hidden query may be used as the input to other queries (SSE etc)
|
||||
*/
|
||||
hide?: boolean;
|
||||
/**
|
||||
* Unique, guid like, string used in explore mode
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* Specify the query flavor
|
||||
* TODO make this required and give it a default
|
||||
*/
|
||||
queryType?: string;
|
||||
/**
|
||||
* A - Z
|
||||
* A unique identifier for the query within the list of targets.
|
||||
* In server side expressions, the refId is used as a variable name to identify results.
|
||||
* By default, the UI will assign A->Z; however setting meaningful names may be useful.
|
||||
*/
|
||||
refId: string;
|
||||
}
|
||||
|
||||
@@ -18,15 +18,16 @@ package common
|
||||
// Specific implementations will *extend* this interface, adding the required
|
||||
// properties for the given context.
|
||||
DataQuery: {
|
||||
// A - Z
|
||||
// A unique identifier for the query within the list of targets.
|
||||
// In server side expressions, the refId is used as a variable name to identify results.
|
||||
// By default, the UI will assign A->Z; however setting meaningful names may be useful.
|
||||
refId: string
|
||||
|
||||
// true if query is disabled (ie should not be returned to the dashboard)
|
||||
// Note this does not always imply that the query should not be executed since
|
||||
// the results from a hidden query may be used as the input to other queries (SSE etc)
|
||||
hide?: bool
|
||||
|
||||
// Unique, guid like, string used in explore mode
|
||||
key?: string
|
||||
|
||||
// Specify the query flavor
|
||||
// TODO make this required and give it a default
|
||||
queryType?: string
|
||||
|
||||
@@ -9,6 +9,11 @@ export interface MapLayerOptions<TConfig = any> extends raw.MapLayerOptions {
|
||||
}
|
||||
|
||||
export interface DataQuery extends raw.DataQuery {
|
||||
/**
|
||||
* Unique, guid like, string (used only in explore mode)
|
||||
*/
|
||||
key?: string;
|
||||
|
||||
// TODO remove explicit nulls
|
||||
datasource?: raw.DataSourceRef | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user