mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
InfluxDB SQL: Remove default limitation in the query (#75749)
* Remove limitation in the query
* Revert "Remove limitation in the query"
This reverts commit 8a347bc487
.
* simpler approach
This commit is contained in:
parent
ad1989cf4d
commit
11a9faabb1
@ -6,6 +6,7 @@ import { Alert, InlineFormLabel, LinkButton, Themeable2, withTheme2 } from '@gra
|
||||
|
||||
import { SQLQuery } from '../../../../../../../features/plugins/sql';
|
||||
import { SqlQueryEditor } from '../../../../../../../features/plugins/sql/components/QueryEditor';
|
||||
import { applyQueryDefaults } from '../../../../../../../features/plugins/sql/defaults';
|
||||
import InfluxDatasource from '../../../../datasource';
|
||||
import { InfluxQuery } from '../../../../types';
|
||||
|
||||
@ -55,8 +56,13 @@ class UnthemedSQLQueryEditor extends PureComponent<Props> {
|
||||
}
|
||||
|
||||
transformQuery(query: InfluxQuery & SQLQuery): SQLQuery {
|
||||
const defaultQuery = applyQueryDefaults(query);
|
||||
return {
|
||||
...query,
|
||||
...defaultQuery,
|
||||
sql: {
|
||||
...defaultQuery.sql,
|
||||
limit: undefined,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user