-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[State Management] - Remove GlobalState from dashboard #55158
Merged
Dosant
merged 18 commits into
elastic:master
from
Dosant:dev/state-management/global-state-dashboard
Jan 27, 2020
Merged
Changes from 9 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3ac4119
Remove GlobalState from Dashboard App
Dosant b343638
move filters syncing utility to data plugin
Dosant 79850bf
improve
Dosant 7189cf6
test
Dosant 4ad51c3
fix bug
Dosant 74acc33
add setGlobalFilters & setGlobalFilters methods
Dosant f5affd5
Merge branch 'dev/filter-manager-set-app-set-global-filters' of githu…
Dosant e41b273
improve
Dosant 8d0d0df
fix lint
Dosant 76ceccd
fix bug with “replace” which mutated object that shouldn’t be muted
Dosant 1fbf97f
improve comparisions
Dosant e561d06
Merge branch 'master' of github.com:elastic/kibana into dev/state-man…
Dosant 3a51104
improve according to review
Dosant fdf7d2e
Merge branch 'master' of github.com:elastic/kibana into dev/state-man…
Dosant 15d1525
fix import
Dosant 7203901
tests for sync_app_filters
Dosant 1ebb3a1
add test for sync_query
Dosant 3106587
Merge branch 'master' into dev/state-management/global-state-dashboard
elasticmachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: We could put that part into a function
initGlobalStateHandling
that is called in the dashboard controller insrc/legacy/core_plugins/kibana/public/dashboard/np_ready/dashboard_app_controller.tsx
and in the listing controller insrc/legacy/core_plugins/kibana/public/dashboard/np_ready/legacy_app.js
-initGlobalStateHandling
would return a function that stops the syncing and can be registered within the controller using$scope.$on('$destroy', () => {
. Then we don't need a reference on the application level and don't need to overwrite typescripts type checksThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, looks better 👍
Hope I got it right.
3a51104