mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
MSSQL: Fixes issue with hidden queries still being executed (#35837)
This commit is contained in:
parent
16a0e7b6a4
commit
5f07381796
@ -111,6 +111,10 @@ export class MssqlDatasource extends DataSourceWithBackend<MssqlQuery, MssqlOpti
|
||||
.toPromise();
|
||||
}
|
||||
|
||||
filterQuery(query: MssqlQuery): boolean {
|
||||
return !query.hide;
|
||||
}
|
||||
|
||||
metricFindQuery(query: string, optionalOptions: any): Promise<MetricFindValue[]> {
|
||||
let refId = 'tempvar';
|
||||
if (optionalOptions && optionalOptions.variable && optionalOptions.variable.name) {
|
||||
|
@ -71,10 +71,7 @@ export class MysqlDatasource extends DataSourceWithBackend<MySQLQuery, MySQLOpti
|
||||
}
|
||||
|
||||
filterQuery(query: MySQLQuery): boolean {
|
||||
if (query.hide) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return !query.hide;
|
||||
}
|
||||
|
||||
applyTemplateVariables(target: MySQLQuery, scopedVars: ScopedVars): Record<string, any> {
|
||||
|
Loading…
Reference in New Issue
Block a user