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

[8.x] [Infra] Refactor useSearchSession to useReloadRequestTime for timestamp based refresh (#205338) #205521

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…mp based refresh (elastic#205338)

## Summary

Refactoring `useSearchSession` to `useReloadRequestTime` to decouple the
usage of search.session for refreshing, avoiding a re-rendering loop
issue. This change is then propagated to various Lens charts to make use
of that instead of relying on searchSessionId.

Closes elastic#203412

## How to test

- Go to Infrastructure Inventory page in Observability
- Enable Auto-Refresh
- Click on a infra item (host/service/etc) to open the fly-out
- Update the time range in the flyout
- Things should update without spurious refreshes.

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit fe988fa)
@kibanamachine kibanamachine merged commit 25ede9b into elastic:8.x Jan 3, 2025
11 checks passed
@elasticmachine
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
infra 1.7MB 1.7MB -26.0B

cc @Bluefinger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants