-
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
[Discover] Migrate session session initialization to state container #156957
[Discover] Migrate session session initialization to state container #156957
Conversation
@elasticmachine merge upstream |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @kertal |
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.
LGTM 👍
createSearchSessionRestorationDataProvider({ | ||
appStateContainer, | ||
data: services.data, | ||
getSavedSearch: () => savedSearchContainer.getState(), |
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.
Wonder if this logic should be executed again when savedSearchContainer
state changes.
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.
It's just using id
and name
of a saved search when it's needed to name a search session ...
getName: async () => { |
So it should be fine, but I bet this code can be improved a bit in the future :)
…lastic#156957) ## Summary Migrate `useSearchSession` to state container's `initializeAndSync` function, to remove another `hook`.
Summary
Follow up of #153528, migrate
useSearchSession
to state container'sinitializeAndSync
function, to remove anotherhook
that's redundant now.Checklist