Skip to content

Comments

[7.x] [State Management] State syncing helpers for query service I (#56128)#58711

Merged
Dosant merged 1 commit intoelastic:7.xfrom
Dosant:backport/7.x/pr-56128
Feb 27, 2020
Merged

[7.x] [State Management] State syncing helpers for query service I (#56128)#58711
Dosant merged 1 commit intoelastic:7.xfrom
Dosant:backport/7.x/pr-56128

Conversation

@Dosant
Copy link
Contributor

@Dosant Dosant commented Feb 27, 2020

Backports the following commits to 7.x:

…#56128)

Before this pr:

Discover, Visualise and Dashboard in setup phase create own state containers which watch for pinned filters, time and refresh interval changes. This watching and state comparisons happen for each plugin separately and not only when a specific app is mounted. So we ended up with a bunch of similar synchronous work which happens every time query services state changes.

After this pr:

Query service exposes observable to watch for changes (state$). Discover, Visualise and Dashboard use this observable for sub url tracking instead of creating its own.
@Dosant Dosant added the backport This PR is a backport of another PR label Feb 27, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

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

@Dosant Dosant merged commit 6cd0e5c into elastic:7.x Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants