mirror of
https://github.com/grafana/grafana.git
synced 2025-09-23 18:52:33 +08:00
add groupby to querybuilder
remove unused aggregations
This commit is contained in:
@ -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;
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user