From bd26b12a7bb69528d3427c53ff61ac2840a94274 Mon Sep 17 00:00:00 2001 From: Thomas Neirynck Date: Tue, 22 Sep 2020 15:16:38 -0400 Subject: [PATCH] rename for consistency --- .../es_geo_grid_source/es_geo_grid_source.js | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.js b/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.js index 16694d0d4fc3a..89258f04612fd 100644 --- a/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.js +++ b/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.js @@ -257,12 +257,7 @@ export class ESGeoGridSource extends AbstractESAggSource { return features; } - _addNonCompositeAggregationsToSearchSource( - searchSource, - indexPattern, - precision, - bufferedExtent - ) { + _addNonCompositeAggsToSearchSource(searchSource, indexPattern, precision, bufferedExtent) { searchSource.setField('aggs', { [GEOTILE_GRID_AGG_NAME]: { geotile_grid: { @@ -294,12 +289,7 @@ export class ESGeoGridSource extends AbstractESAggSource { registerCancelCallback, bufferedExtent, }) { - this._addNonCompositeAggregationsToSearchSource( - searchSource, - indexPattern, - precision, - bufferedExtent - ); + this._addNonCompositeAggsToSearchSource(searchSource, indexPattern, precision, bufferedExtent); const esResponse = await this._runEsQuery({ requestId: this.getId(), @@ -363,7 +353,7 @@ export class ESGeoGridSource extends AbstractESAggSource { const indexPattern = await this.getIndexPattern(); const searchSource = await this.makeSearchSource(searchFilters, 0); - this._addNonCompositeAggregationsToSearchSource( + this._addNonCompositeAggsToSearchSource( searchSource, indexPattern, null, // needs to be set server-side