[7.17] [DevConsole] Remove geo_distance_range filter spec (#194070) (#194127)

# Backport

This will backport the following commits from `main` to `7.17`:
- [[DevConsole] Remove geo_distance_range filter spec
(#194070)](https://github.com/elastic/kibana/pull/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":"thomas@elastic.co"},"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 <thomas@elastic.co>
This commit is contained in:
Kibana Machine 2024-09-27 01:31:49 +10:00 committed by GitHub
parent a38343966a
commit 94e3a6435b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: {