Skip to content
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 More than 2 maps embeddables with geo-shape layers results in empty layers for 3+ #107442

Merged
merged 4 commits into from
Aug 3, 2021

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Aug 2, 2021

Fixes #107293

On the surface, it appeared that indexPattern.flattenHit(hit) returned objects with missing properties from the flatten hit cache. Upon further investigation, the reason why the cache was missing properties was that Maps was deleting the geometry property and this deletion occur on the object instance from flatten_hit cache. The fix is to expand the results of flattenHit so that changes made by Maps do not pollute the flatten_hit cache.

@nreese nreese requested a review from kindsun August 2, 2021 18:33
@elasticmachine
Copy link
Contributor

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

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
maps 3.2MB 3.2MB +5.0B

History

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

Copy link
Contributor

@kindsun kindsun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! 🙏 lgtm

  • Code review
  • Tested locally in chrome

image

@nreese nreese added the auto-backport Deprecated - use backport:version if exact versions are needed label Aug 3, 2021
@nreese nreese merged commit 946e145 into elastic:master Aug 3, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 3, 2021
… in empty layers for 3+ (elastic#107442)

* [maps] fix More than 2 maps embeddables with geo-shape layers results in empty layers for 3+

* comment

* add unit test

* eslint
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 3, 2021
… in empty layers for 3+ (elastic#107442)

* [maps] fix More than 2 maps embeddables with geo-shape layers results in empty layers for 3+

* comment

* add unit test

* eslint
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.14
7.x

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Aug 3, 2021
… in empty layers for 3+ (#107442) (#107586)

* [maps] fix More than 2 maps embeddables with geo-shape layers results in empty layers for 3+

* comment

* add unit test

* eslint

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
kibanamachine added a commit that referenced this pull request Aug 3, 2021
… in empty layers for 3+ (#107442) (#107587)

* [maps] fix More than 2 maps embeddables with geo-shape layers results in empty layers for 3+

* comment

* add unit test

* eslint

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
streamich pushed a commit to vadimkibana/kibana that referenced this pull request Aug 8, 2021
… in empty layers for 3+ (elastic#107442)

* [maps] fix More than 2 maps embeddables with geo-shape layers results in empty layers for 3+

* comment

* add unit test

* eslint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:fix v7.14.1 v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Maps] More than 2 maps embeddables with geo-shape layers results in empty layers for 3+
4 participants