Commit 0f65cb2b by carl bergquist

feat(elasticsearch): update pipeline aggs if type change

make it possible to switch between different pipeline
aggregates without causing problms in the ui
parent 85094fc7
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment