Skip to content

Commit

Permalink
[7.17] [DevConsole] Remove geo_distance_range filter spec (#194070) (#…
Browse files Browse the repository at this point in the history
…194127)

# Backport

This will backport the following commits from `main` to `7.17`:
- [[DevConsole] Remove geo_distance_range filter spec
(#194070)](#194070)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Thomas
Neirynck","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-26T12:29:25Z","message":"[DevConsole]
Remove geo_distance_range filter spec (#194070)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/194063\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c8a77b5645200c576059d9b712d85bfba836baa1","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:all-open"],"title":"[DevConsole]
Remove geo_distance_range filter
spec","number":194070,"url":"https://github.com/elastic/kibana/pull/194070","mergeCommit":{"message":"[DevConsole]
Remove geo_distance_range filter spec (#194070)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/194063\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c8a77b5645200c576059d9b712d85bfba836baa1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194070","number":194070,"mergeCommit":{"message":"[DevConsole]
Remove geo_distance_range filter spec (#194070)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/194063\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c8a77b5645200c576059d9b712d85bfba836baa1"}}]}]
BACKPORT-->

Co-authored-by: Thomas Neirynck <[email protected]>
  • Loading branch information
kibanamachine and thomasneirynck authored Sep 26, 2024
1 parent a383439 commit 94e3a64
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/plugins/console/server/lib/spec_definitions/js/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,38 +108,6 @@ filters.geo_distance = {
},
};

filters.geo_distance_range = {
__template: {
from: 100,
to: 200,
distance_unit: 'km',
FIELD: {
lat: 40.73,
lon: -74.1,
},
},
from: 100,
to: 200,

distance_unit: {
__one_of: ['km', 'miles'],
},
distance_type: {
__one_of: ['arc', 'plane'],
},
include_lower: {
__one_of: [true, false],
},
include_upper: {
__one_of: [true, false],
},

'{field}': {
lat: 40.73,
lon: -74.1,
},
};

filters.geo_polygon = {
__template: {
FIELD: {
Expand Down

0 comments on commit 94e3a64

Please sign in to comment.