Remove deprecation notice from ascending sort for terms (#23421) (#23503)

This commit is contained in:
Luke Elmers 2018-10-04 09:25:41 -06:00 committed by GitHub
parent 76da440962
commit 1f13ee6421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,6 @@ import otherBucketTemplate from '../controls/other_bucket.html';
import { getRequestInspectorStats, getResponseInspectorStats } from '../../courier/utils/courier_inspector_utils';
import { buildOtherBucketAgg, mergeOtherBucketAggResponse, updateMissingBucket } from './_terms_other_bucket_helper';
import { toastNotifications } from '../../notify';
const aggFilter = [
'!top_hits', '!percentiles', '!median', '!std_dev',
@ -236,9 +235,6 @@ export const termsBucketAgg = new BucketAggType({
}
if (orderAgg.type.name === 'count') {
if (dir === 'asc') {
toastNotifications.addWarning('Sorting in Ascending order by Count in Terms aggregations is deprecated');
}
order._count = dir;
return;
}