Skip to content

Commit

Permalink
remove geohash_grid aggregation support (elastic#152952)
Browse files Browse the repository at this point in the history
Fixes elastic#123192

geohash aggregation was only used by tile map visualization. Tile map
visualization was removed in 8.0, so geohash aggregation support no
longer needed.

---------

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
nreese and kibanamachine authored Mar 20, 2023
1 parent 6a78ca4 commit 098456a
Show file tree
Hide file tree
Showing 39 changed files with 5 additions and 7,970 deletions.
2 changes: 0 additions & 2 deletions src/plugins/data/common/search/aggs/agg_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export const getAggTypes = () => ({
{ name: BUCKET_TYPES.FILTERS, fn: buckets.getFiltersBucketAgg },
{ name: BUCKET_TYPES.SIGNIFICANT_TERMS, fn: buckets.getSignificantTermsBucketAgg },
{ name: BUCKET_TYPES.SIGNIFICANT_TEXT, fn: buckets.getSignificantTextBucketAgg },
{ name: BUCKET_TYPES.GEOHASH_GRID, fn: buckets.getGeoHashBucketAgg },
{ name: BUCKET_TYPES.GEOTILE_GRID, fn: buckets.getGeoTitleBucketAgg },
{ name: BUCKET_TYPES.SAMPLER, fn: buckets.getSamplerBucketAgg },
{ name: BUCKET_TYPES.DIVERSIFIED_SAMPLER, fn: buckets.getDiversifiedSamplerBucketAgg },
Expand All @@ -84,7 +83,6 @@ export const getAggTypesFunctions = () => [
buckets.aggDateRange,
buckets.aggRange,
buckets.aggGeoTile,
buckets.aggGeoHash,
buckets.aggHistogram,
buckets.aggDateHistogram,
buckets.aggTerms,
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/data/common/search/aggs/aggs_service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ describe('Aggs service', () => {
"filters",
"significant_terms",
"significant_text",
"geohash_grid",
"geotile_grid",
"sampler",
"diversified_sampler",
Expand Down Expand Up @@ -121,7 +120,6 @@ describe('Aggs service', () => {
"filters",
"significant_terms",
"significant_text",
"geohash_grid",
"geotile_grid",
"sampler",
"diversified_sampler",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export enum BUCKET_TYPES {
RARE_TERMS = 'rare_terms',
SIGNIFICANT_TERMS = 'significant_terms',
SIGNIFICANT_TEXT = 'significant_text',
GEOHASH_GRID = 'geohash_grid',
GEOTILE_GRID = 'geotile_grid',
DATE_HISTOGRAM = 'date_histogram',
SAMPLER = 'sampler',
Expand Down
206 changes: 0 additions & 206 deletions src/plugins/data/common/search/aggs/buckets/geo_hash.test.ts

This file was deleted.

121 changes: 0 additions & 121 deletions src/plugins/data/common/search/aggs/buckets/geo_hash.ts

This file was deleted.

Loading

0 comments on commit 098456a

Please sign in to comment.