Commit 5166073f by Ryan McKinley Committed by GitHub

DataSourceWithBackend: apply template variables (#22558)

parent ee5fcc03
......@@ -44,7 +44,7 @@ export class DataSourceWithBackend<
throw new Error('Unknown Datasource: ' + q.datasource);
}
return {
...q,
...this.applyTemplateVariables(q),
datasourceId: ds.id,
intervalMs,
maxDataPoints,
......@@ -71,6 +71,13 @@ export class DataSourceWithBackend<
}
/**
* Override to apply template variables
*/
applyTemplateVariables(query: DataQuery) {
return query;
}
/**
* This makes the arrow library loading async.
*/
async toDataQueryResponse(rsp: any): Promise<DataQueryResponse> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment