mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DataSourceWithBackend: implement interpolateVariablesInQueries by default (#41152)
This commit is contained in:
parent
418059bc23
commit
340ed4125e
@ -160,6 +160,13 @@ class DataSourceWithBackend<
|
||||
*/
|
||||
filterQuery?(query: TQuery): boolean;
|
||||
|
||||
/**
|
||||
* Apply template variables for explore
|
||||
*/
|
||||
interpolateVariablesInQueries(queries: TQuery[], scopedVars: ScopedVars | {}): TQuery[] {
|
||||
return queries.map((q) => this.applyTemplateVariables(q, scopedVars) as TQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* Override to apply template variables. The result is usually also `TQuery`, but sometimes this can
|
||||
* be used to modify the query structure before sending to the backend.
|
||||
|
Loading…
Reference in New Issue
Block a user