mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
InfluxDB SQL: Fix sql query template variable interpolation (#78557)
interpolate sql too
This commit is contained in:
@@ -182,7 +182,7 @@ export default class InfluxDatasource extends DataSourceWithBackend<InfluxQuery,
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isMigrationToggleOnAndIsAccessProxy()) {
|
if (this.version === InfluxVersion.SQL || this.isMigrationToggleOnAndIsAccessProxy()) {
|
||||||
query = this.applyVariables(query, rest);
|
query = this.applyVariables(query, rest);
|
||||||
if (query.adhocFilters?.length) {
|
if (query.adhocFilters?.length) {
|
||||||
const adhocFiltersToTags: InfluxQueryTag[] = (query.adhocFilters ?? []).map((af) => {
|
const adhocFiltersToTags: InfluxQueryTag[] = (query.adhocFilters ?? []).map((af) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user