-
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
[Profiling] Preserve kuery
filters when switching between Universal Profiling pages in new solution navigation
#203545
[Profiling] Preserve kuery
filters when switching between Universal Profiling pages in new solution navigation
#203545
Conversation
…ages using Solution navigation
1da83bf
to
b85fffa
Compare
x-pack/plugins/observability_solution/profiling/public/plugin.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/profiling/public/plugin.tsx
Outdated
Show resolved
Hide resolved
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
@jennypavlova Thank you for review 🙌 I updated code according to 2nd comment. |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Page load bundle
History
|
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, just a nit ⬇️
let isSidebarEnabled = true; | ||
coreStart.chrome | ||
.getChromeStyle$() | ||
.pipe(take(1)) |
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.
why do we need this take(1)
?
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.
We need take(1)
to read current value from the observable and complete it immediately (no need to unsubscribe).
take(1)
and first()
operators are legit ways of unsubscribing observable. This is rxjs equivalent of useObservable
method from react-use
library or firstValueFrom
helper from rxjs (but this one converts to Promise)
]; | ||
return sections; | ||
let isSidebarEnabled = true; | ||
coreStart.chrome |
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.
Should this subscription be inside the map
? This is creating N subscriptions. isn't it?
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.
Rxjs map()
operator is called once when observable reads data stream. This isn't iterating over anything. Nothing wrong for me here.
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.
ah, yeah. You're right. I hadn't paid attention that this was rxjs map.
Starting backport for target branches: 8.15, 8.16, 8.17, 8.x |
… Profiling pages in new solution navigation (elastic#203545) Closes elastic#197401 ### Summary This PR adds ability to preserve `kuery` filters when switching between pages in Universal Profiling using `solution navigation`. The missing filters were considered regression in comparison to `classic navigation`. ### Testing Expected behavior with **classic navigation** for comparison: ![Screen Recording 2024-12-10 at 14 40 26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19) Before with **solution navigation**: ![Screen Recording 2024-12-10 at 14 50 21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d) After with **solution navigation**: ![Screen Recording 2024-12-10 at 14 45 30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d) (cherry picked from commit 881cdc1)
… Profiling pages in new solution navigation (elastic#203545) Closes elastic#197401 ### Summary This PR adds ability to preserve `kuery` filters when switching between pages in Universal Profiling using `solution navigation`. The missing filters were considered regression in comparison to `classic navigation`. ### Testing Expected behavior with **classic navigation** for comparison: ![Screen Recording 2024-12-10 at 14 40 26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19) Before with **solution navigation**: ![Screen Recording 2024-12-10 at 14 50 21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d) After with **solution navigation**: ![Screen Recording 2024-12-10 at 14 45 30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d) (cherry picked from commit 881cdc1)
… Profiling pages in new solution navigation (elastic#203545) Closes elastic#197401 ### Summary This PR adds ability to preserve `kuery` filters when switching between pages in Universal Profiling using `solution navigation`. The missing filters were considered regression in comparison to `classic navigation`. ### Testing Expected behavior with **classic navigation** for comparison: ![Screen Recording 2024-12-10 at 14 40 26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19) Before with **solution navigation**: ![Screen Recording 2024-12-10 at 14 50 21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d) After with **solution navigation**: ![Screen Recording 2024-12-10 at 14 45 30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d) (cherry picked from commit 881cdc1)
… Profiling pages in new solution navigation (elastic#203545) Closes elastic#197401 ### Summary This PR adds ability to preserve `kuery` filters when switching between pages in Universal Profiling using `solution navigation`. The missing filters were considered regression in comparison to `classic navigation`. ### Testing Expected behavior with **classic navigation** for comparison: ![Screen Recording 2024-12-10 at 14 40 26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19) Before with **solution navigation**: ![Screen Recording 2024-12-10 at 14 50 21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d) After with **solution navigation**: ![Screen Recording 2024-12-10 at 14 45 30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d) (cherry picked from commit 881cdc1)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… Profiling pages in new solution navigation (elastic#203545) Closes elastic#197401 ### Summary This PR adds ability to preserve `kuery` filters when switching between pages in Universal Profiling using `solution navigation`. The missing filters were considered regression in comparison to `classic navigation`. ### Testing Expected behavior with **classic navigation** for comparison: ![Screen Recording 2024-12-10 at 14 40 26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19) Before with **solution navigation**: ![Screen Recording 2024-12-10 at 14 50 21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d) After with **solution navigation**: ![Screen Recording 2024-12-10 at 14 45 30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)
…between Universal Profiling pages in new solution navigation (#203545) (#203985) # Backport This will backport the following commits from `main` to `8.16`: - [[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)](#203545) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Milosz Marcinkowski","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-12T10:23:24Z","message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","backport:prev-major","ci:project-deploy-observability"],"title":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation","number":203545,"url":"https://github.com/elastic/kibana/pull/203545","mergeCommit":{"message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa"}},"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/203545","number":203545,"mergeCommit":{"message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa"}}]}] BACKPORT--> Co-authored-by: Milosz Marcinkowski <[email protected]>
…between Universal Profiling pages in new solution navigation (#203545) (#203986) # Backport This will backport the following commits from `main` to `8.17`: - [[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)](#203545) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Milosz Marcinkowski","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-12T10:23:24Z","message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","backport:prev-major","ci:project-deploy-observability"],"title":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation","number":203545,"url":"https://github.com/elastic/kibana/pull/203545","mergeCommit":{"message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa"}},"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/203545","number":203545,"mergeCommit":{"message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa"}}]}] BACKPORT--> Co-authored-by: Milosz Marcinkowski <[email protected]>
…etween Universal Profiling pages in new solution navigation (#203545) (#203987) # Backport This will backport the following commits from `main` to `8.x`: - [[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)](#203545) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Milosz Marcinkowski","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-12T10:23:24Z","message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","backport:prev-major","ci:project-deploy-observability"],"title":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation","number":203545,"url":"https://github.com/elastic/kibana/pull/203545","mergeCommit":{"message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa"}},"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/203545","number":203545,"mergeCommit":{"message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa"}}]}] BACKPORT--> Co-authored-by: Milosz Marcinkowski <[email protected]>
…between Universal Profiling pages in new solution navigation (#203545) (#203984) # Backport This will backport the following commits from `main` to `8.15`: - [[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)](#203545) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Milosz Marcinkowski","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-12T10:23:24Z","message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","backport:prev-major","ci:project-deploy-observability"],"title":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation","number":203545,"url":"https://github.com/elastic/kibana/pull/203545","mergeCommit":{"message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa"}},"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/203545","number":203545,"mergeCommit":{"message":"[Profiling] Preserve `kuery` filters when switching between Universal Profiling pages in new solution navigation (#203545)\n\nCloses #197401\r\n\r\n### Summary\r\n\r\nThis PR adds ability to preserve `kuery` filters when switching between\r\npages in Universal Profiling using `solution navigation`. The missing\r\nfilters were considered regression in comparison to `classic\r\nnavigation`.\r\n\r\n### Testing\r\n\r\nExpected behavior with **classic navigation** for comparison:\r\n![Screen Recording 2024-12-10 at 14 40\r\n26](https://github.com/user-attachments/assets/db066c2e-3a47-4ac1-9860-f00364716c19)\r\n\r\nBefore with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 50\r\n21](https://github.com/user-attachments/assets/23481d63-37ee-4983-b8ef-5b3e6da2f55d)\r\n\r\nAfter with **solution navigation**:\r\n![Screen Recording 2024-12-10 at 14 45\r\n30](https://github.com/user-attachments/assets/216b6c8d-bfb4-4f32-b4f8-40cf17f5847d)","sha":"881cdc142b3014f964a7b69fc8b29b85211fcbfa"}}]}] BACKPORT--> Co-authored-by: Milosz Marcinkowski <[email protected]>
This PR didn't make it on time for the latest v8.17.0 BC. Updating the labels. |
Closes #197401
Summary
This PR adds ability to preserve
kuery
filters when switching between pages in Universal Profiling usingsolution navigation
. The missing filters were considered regression in comparison toclassic navigation
.Testing
Expected behavior with classic navigation for comparison:
Before with solution navigation:
After with solution navigation: