add groupby to querybuilder

remove unused aggregations
This commit is contained in:
Sven Klemm
2018-01-31 15:32:32 +01:00
parent 571ecdc740
commit 4dbd83fac1
4 changed files with 110 additions and 150 deletions

View File

@ -22,7 +22,7 @@ export default class PostgresQuery {
target.alias = '';
target.orderByTime = target.orderByTime || 'ASC';
// target.groupBy = target.groupBy || [{ type: 'time', params: ['$__interval'] }, { type: 'fill', params: ['null'] }];
target.groupBy = target.groupBy || [{ type: 'time', params: ['$__interval'] }, { type: 'fill', params: ['null'] }];
target.select = target.select || [[{ type: 'field', params: ['value'] }]];
this.updateProjection();
@ -92,9 +92,6 @@ export default class PostgresQuery {
if (partModel.def.category === categories.Aggregations) {
return false;
}
if (partModel.def.category === categories.Selectors) {
return false;
}
return true;
});
});