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 application state filters transfer from other kibana application to maps application #73516

Merged
merged 5 commits into from
Jul 30, 2020

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Jul 28, 2020

Fixes #73354

The regression was caused as a side effect of moving to new platform. Prior to new platform, switching to maps would trigger a refresh and clean filterManager instance. Without the page reload, filterManager contains application state filters from other Kibana applications. This PR just clears application state filters from filter manager when setting up application state syncing.

@nreese nreese added [Deprecated-Use Team:Presentation]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.10.0 v7.9.0 labels Jul 28, 2020
@nreese nreese requested a review from kindsun July 28, 2020 17:20
@nreese nreese requested a review from a team as a code owner July 28, 2020 17:20
@elasticmachine
Copy link
Contributor

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

@@ -102,14 +102,6 @@ export class MapsAppView extends React.Component {
this._globalSyncChangeMonitorSubscription.unsubscribe();
}

// Clean up app state filters
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No longer need to clean-up on unmount since app state filters gets cleaned up on mount

@nreese
Copy link
Contributor Author

nreese commented Jul 28, 2020

@elasticmachine merge upstream

@nreese
Copy link
Contributor Author

nreese commented Jul 28, 2020

@elasticmachine merge upstream

@nreese
Copy link
Contributor Author

nreese commented Jul 30, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
maps 3.8MB -197.0B 3.8MB

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.

lgtm! thanks for the clean up!

  • code review

@nreese nreese merged commit c09216b into elastic:master Jul 30, 2020
nreese added a commit to nreese/kibana that referenced this pull request Jul 30, 2020
…cation to maps application (elastic#73516)

* [Maps] fix application state filters transfer from other kibana application to maps application

* clean up comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
nreese added a commit to nreese/kibana that referenced this pull request Jul 30, 2020
…cation to maps application (elastic#73516)

* [Maps] fix application state filters transfer from other kibana application to maps application

* clean up comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
nreese added a commit that referenced this pull request Jul 30, 2020
…cation to maps application (#73516) (#73829)

* [Maps] fix application state filters transfer from other kibana application to maps application

* clean up comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
nreese added a commit that referenced this pull request Jul 30, 2020
…cation to maps application (#73516) (#73830)

* [Maps] fix application state filters transfer from other kibana application to maps application

* clean up comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:skip Skip the PR/issue when compiling release notes v7.9.0 v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[maps] Application state filters transfer from other kibana application to maps application
4 participants