make it possible to switch between different pipeline aggregates without causing problms in the ui
@@ -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;
}