Elasticsearch: Filter pipeline aggregations from order by options (#28620)

This commit is contained in:
Chris Cowan
2020-11-05 07:26:19 -07:00
committed by GitHub
parent dbaf213f8a
commit 135b83e17f

View File

@@ -246,7 +246,7 @@ export function getMovingAvgSettings(model: any, filtered: boolean) {
export function getOrderByOptions(target: any) {
const metricRefs: any[] = [];
_.each(target.metrics, metric => {
if (metric.type !== 'count') {
if (metric.type !== 'count' && !isPipelineAgg(metric.type)) {
metricRefs.push({ text: describeMetric(metric), value: metric.id });
}
});