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:
matt abrams
2022-03-02 22:29:37 -10:00
committed by GitHub
parent 1fef87fbcc
commit c863676b65
2 changed files with 21 additions and 1 deletions

View File

@ -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'],