mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
Elasticsearch: Filter pipeline aggregations from order by options (#28620)
This commit is contained in:
parent
dbaf213f8a
commit
135b83e17f
@ -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 });
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user