[Maps] Fix apis Maps endpoints getTile should return vector tile containing document#114509
Merged
nreese merged 7 commits intoelastic:masterfrom Oct 12, 2021
Merged
[Maps] Fix apis Maps endpoints getTile should return vector tile containing document#114509nreese merged 7 commits intoelastic:masterfrom
nreese merged 7 commits intoelastic:masterfrom
Conversation
Contributor
|
Pinging @elastic/kibana-gis (Team:Geo) |
Contributor
Author
|
@elasticmachine merge upstream |
thomasneirynck
approved these changes
Oct 11, 2021
Contributor
There was a problem hiding this comment.
thx for fixing this. Probably will cause some minor merge conflicts with #114553
Contributor
Author
|
@elasticmachine merge upstream |
Contributor
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
nreese
added a commit
to nreese/kibana
that referenced
this pull request
Oct 12, 2021
…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
Contributor
Author
|
7.16 #114623 |
nreese
added a commit
that referenced
this pull request
Oct 12, 2021
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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