mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 09:04:31 +08:00
Postgres: Fix aggregate dropdown when TimescaleDB is enabled (#45993)
* add timescaleDB checker function * use existing fn findAggregateIndex * build options from empty list * refactor fn and handle state for existing elem * remove newline
This commit is contained in:
@ -49,7 +49,9 @@ register({
|
||||
{
|
||||
name: 'name',
|
||||
type: 'string',
|
||||
options: ['avg', 'count', 'min', 'max', 'sum', 'stddev', 'variance'],
|
||||
options: [],
|
||||
baseOptions: ['avg', 'count', 'min', 'max', 'sum', 'stddev', 'variance'],
|
||||
timescaleOptions: ['first', 'last'],
|
||||
},
|
||||
],
|
||||
defaultParams: ['avg'],
|
||||
|
Reference in New Issue
Block a user