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

[Search Sessions] Disable "save session" due to timeout #90294

Merged
merged 3 commits into from
Feb 8, 2021

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Feb 4, 2021

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

@Dosant Dosant mentioned this pull request Feb 4, 2021
38 tasks
} else {
// TODO: needed for initial open when component is not rendered yet
// fix after: https://github.com/elastic/eui/issues/4460
setTimeout(() => {
Copy link
Contributor Author

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.

@Dosant Dosant added Feature:Search Querying infrastructure in Kibana release_note:skip Skip the PR/issue when compiling release notes Team:AppServices v7.12.0 v8.0.0 labels Feb 4, 2021
@Dosant Dosant marked this pull request as ready for review February 4, 2021 18:05
@Dosant Dosant requested a review from a team as a code owner February 4, 2021 18:05
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@Dosant Dosant requested a review from lizozom February 4, 2021 18:05
@lizozom
Copy link
Contributor

lizozom commented Feb 7, 2021

@elasticmachine merge upstream

@Dosant
Copy link
Contributor Author

Dosant commented Feb 8, 2021

@elasticmachine merge upstream

Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

Both feature and code cleanup LGTM

image

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
dataEnhanced 146.9KB 147.4KB +536.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
dataEnhanced 36.1KB 37.9KB +1.8KB

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Search Querying infrastructure in Kibana release_note:skip Skip the PR/issue when compiling release notes v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants