mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(elasticsearch): update pipeline aggs if type change
make it possible to switch between different pipeline aggregates without causing problms in the ui
This commit is contained in:
@@ -91,6 +91,7 @@ function (angular, _, queryDef) {
|
||||
$scope.agg.settings = {};
|
||||
$scope.agg.meta = {};
|
||||
$scope.showOptions = false;
|
||||
$scope.updatePipelineAggOptions();
|
||||
$scope.onChange();
|
||||
};
|
||||
|
||||
|
||||
@@ -173,9 +173,7 @@ function (queryDef) {
|
||||
|
||||
if (queryDef.isPipelineAgg(metric)) {
|
||||
if (metric.pipelineAgg && /^\d*$/.test(metric.pipelineAgg)) {
|
||||
metricAgg = {
|
||||
buckets_path: metric.pipelineAgg,
|
||||
};
|
||||
metricAgg = { buckets_path: metric.pipelineAgg };
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user