Skip to content

[Maps] Fix apis Maps endpoints getTile should return vector tile containing document#114509

Merged
nreese merged 7 commits intoelastic:masterfrom
nreese:fix_get_tile_test
Oct 12, 2021
Merged

[Maps] Fix apis Maps endpoints getTile should return vector tile containing document#114509
nreese merged 7 commits intoelastic:masterfrom
nreese:fix_get_tile_test

Conversation

@nreese
Copy link
Contributor

@nreese nreese commented Oct 11, 2021

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

@nreese nreese added Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.16.0 labels Oct 11, 2021
@nreese nreese requested a review from thomasneirynck October 11, 2021 15:11
@nreese nreese requested a review from a team as a code owner October 11, 2021 15:11
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@nreese
Copy link
Contributor Author

nreese commented Oct 11, 2021

@elasticmachine merge upstream

Copy link
Contributor

@thomasneirynck thomasneirynck left a 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

@nreese
Copy link
Contributor Author

nreese commented Oct 11, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@nreese nreese merged commit 9e65b12 into elastic:master Oct 12, 2021
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
@nreese
Copy link
Contributor Author

nreese commented Oct 12, 2021

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.16.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing ES Promotion: apis Maps endpoints getTile should return vector tile containing document

4 participants