-
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
[Search Sessions] Disable "save session" due to timeout #90294
[Search Sessions] Disable "save session" due to timeout #90294
Conversation
} else { | ||
// TODO: needed for initial open when component is not rendered yet | ||
// fix after: https://github.com/elastic/eui/issues/4460 | ||
setTimeout(() => { |
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.
Some of the code is this pr (changes related to searchSessionIndicatorRef
) is to remove this hack.
In future, we can simplify this, but we'd need EUI version with elastic/eui#4460 fix in it.
Pinging @elastic/kibana-app-services (Team:AppServices) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
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.
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Part of #83640
Disable "save session" when searches are completed and
config.search.sessions.notTouchedTimeout
has passed.To avoid introducing new API and complexity around disabled state I decided to change how the disabled state works:
Before:
In some cases, we disabled the search session indicator button, but not the save session button inside the popover.
After:
Now we specifically disable the save session button instead
This also fixes a bug that you could get into a state where the popover is opened, but the search session indicator becomes disabled
Checklist
Delete any items that are not applicable to this PR.
For maintainers