-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Maps] disable fit to data for geo_shape fields until elasticsearch supports a way to get the bounds #31638
Conversation
…upports a way to get the bounds
Pinging @elastic/kibana-gis |
💔 Build Failed |
💚 Build Succeeded |
💚 Build Succeeded |
it('should register elasticsearch request in inspector', async () => { | ||
const hits = await getHits(); | ||
expect(hits).to.equal('6'); | ||
it('should apply query to fit to bounds', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for introducing this
try { | ||
const esResp = await searchSource.fetch(); | ||
esBounds = _.get(esResp, 'aggregations.1.bounds'); | ||
} catch(error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 fallback
💚 Build Succeeded |
…upports a way to get the bounds (elastic#31638) * [Maps] disable fit to data for geo_shape fields until elasticsearch supports a way to get the bounds * add function test for fit to bounds * add jest test for layer_toc_actions component * review feedback
…upports a way to get the bounds (elastic#31638) * [Maps] disable fit to data for geo_shape fields until elasticsearch supports a way to get the bounds * add function test for fit to bounds * add jest test for layer_toc_actions component * review feedback
@nreese when I add this index pattern - it doesn't show as one of the documents in elasticsearch documents layer in maps. Is that expected?
|
What is the mapping for |
fixes #31589
get_bounds
aggregation only supportgeo_point
. There is no way to get the bounds for ageo_shape
so this PR just disables the option. The PR also properly handles anygeo_bounds
errors.