-
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
[Infra] Refactor useSearchSession to useReloadRequestTime for timestamp based refresh #205338
[Infra] Refactor useSearchSession to useReloadRequestTime for timestamp based refresh #205338
Conversation
/ci |
/ci |
/ci |
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
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 🙌 Code review only
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12600937508 |
…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 <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit fe988fa)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…imestamp based refresh (#205338) (#205521) # Backport This will backport the following commits from `main` to `8.x`: - [[Infra] Refactor useSearchSession to useReloadRequestTime for timestamp based refresh (#205338)](#205338) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Gonçalo Rica Pais da Silva","email":"goncalo.rica@elastic.co"},"sourceCommit":{"committedDate":"2025-01-03T16:44:52Z","message":"[Infra] Refactor useSearchSession to useReloadRequestTime for timestamp based refresh (#205338)\n\n## Summary\r\n\r\nRefactoring `useSearchSession` to `useReloadRequestTime` to decouple the\r\nusage of search.session for refreshing, avoiding a re-rendering loop\r\nissue. This change is then propagated to various Lens charts to make use\r\nof that instead of relying on searchSessionId.\r\n\r\nCloses #203412\r\n\r\n## How to test\r\n\r\n- Go to Infrastructure Inventory page in Observability\r\n- Enable Auto-Refresh\r\n- Click on a infra item (host/service/etc) to open the fly-out\r\n- Update the time range in the flyout\r\n- Things should update without spurious refreshes.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fe988fa55272a4ee6006a3a3ffc899a03fd4390c","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Team:obs-ux-infra_services"],"title":"[Infra] Refactor useSearchSession to useReloadRequestTime for timestamp based refresh","number":205338,"url":"https://github.com/elastic/kibana/pull/205338","mergeCommit":{"message":"[Infra] Refactor useSearchSession to useReloadRequestTime for timestamp based refresh (#205338)\n\n## Summary\r\n\r\nRefactoring `useSearchSession` to `useReloadRequestTime` to decouple the\r\nusage of search.session for refreshing, avoiding a re-rendering loop\r\nissue. This change is then propagated to various Lens charts to make use\r\nof that instead of relying on searchSessionId.\r\n\r\nCloses #203412\r\n\r\n## How to test\r\n\r\n- Go to Infrastructure Inventory page in Observability\r\n- Enable Auto-Refresh\r\n- Click on a infra item (host/service/etc) to open the fly-out\r\n- Update the time range in the flyout\r\n- Things should update without spurious refreshes.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fe988fa55272a4ee6006a3a3ffc899a03fd4390c"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205338","number":205338,"mergeCommit":{"message":"[Infra] Refactor useSearchSession to useReloadRequestTime for timestamp based refresh (#205338)\n\n## Summary\r\n\r\nRefactoring `useSearchSession` to `useReloadRequestTime` to decouple the\r\nusage of search.session for refreshing, avoiding a re-rendering loop\r\nissue. This change is then propagated to various Lens charts to make use\r\nof that instead of relying on searchSessionId.\r\n\r\nCloses #203412\r\n\r\n## How to test\r\n\r\n- Go to Infrastructure Inventory page in Observability\r\n- Enable Auto-Refresh\r\n- Click on a infra item (host/service/etc) to open the fly-out\r\n- Update the time range in the flyout\r\n- Things should update without spurious refreshes.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fe988fa55272a4ee6006a3a3ffc899a03fd4390c"}}]}] BACKPORT--> Co-authored-by: Gonçalo Rica Pais da Silva <goncalo.rica@elastic.co>
…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 <42973632+kibanamachine@users.noreply.github.com>
…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 <42973632+kibanamachine@users.noreply.github.com>
…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 <42973632+kibanamachine@users.noreply.github.com>
Summary
Refactoring
useSearchSession
touseReloadRequestTime
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 #203412
How to test