mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
InfluxDB: Fix query call with flux and sql when backend migration disbaled (#77760)
Only run through with classicQuery if the language is influxql and backend migration is disabled
This commit is contained in:
parent
4fbd9a55b2
commit
581b93c124
@ -138,12 +138,12 @@ export default class InfluxDatasource extends DataSourceWithBackend<InfluxQuery,
|
||||
return merge(...streams);
|
||||
}
|
||||
|
||||
if (this.isMigrationToggleOnAndIsAccessProxy()) {
|
||||
return super.query(filteredRequest);
|
||||
if (this.version === InfluxVersion.InfluxQL && !this.isMigrationToggleOnAndIsAccessProxy()) {
|
||||
// Fallback to classic query support
|
||||
return this.classicQuery(request);
|
||||
}
|
||||
|
||||
// Fallback to classic query support
|
||||
return this.classicQuery(request);
|
||||
return super.query(filteredRequest);
|
||||
}
|
||||
|
||||
getQueryDisplayText(query: InfluxQuery) {
|
||||
|
Loading…
Reference in New Issue
Block a user