-
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] Fix apis Maps endpoints getTile should return vector tile containing document #114509
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
@elasticmachine merge upstream |
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.
thx for fixing this. Probably will cause some minor merge conflicts with #114553
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
…aining document (elastic#114509) * [Maps] Fix apis Maps endpoints getTile should return vector tile containing document * use find instead of if statement * eslint * can not use layer.feature.find is layer.feature is not an array * unskip other test where fix has been merged Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # x-pack/test/api_integration/apis/maps/get_tile.js
7.16 #114623 |
…aining document (#114509) (#114623) * [Maps] Fix apis Maps endpoints getTile should return vector tile containing document * use find instead of if statement * eslint * can not use layer.feature.find is layer.feature is not an array * unskip other test where fix has been merged Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # x-pack/test/api_integration/apis/maps/get_tile.js Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Fixes #114471
Verified API still working as expected with new ES instance. It looks like the problem with the test is that order of the documents in the vector tile is not always consistent (Maybe recent changes in ES exacerbated the problem). The failed test logs show that the other document is getting verified instead of the expected document. This PR just adds some logic to ensure the correct document is used in the assertion clause