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

[Profiling] Preserve kuery filters when switching between Universal Profiling pages in new solution navigation #203545

Conversation

miloszmarcinkowski
Copy link
Contributor

@miloszmarcinkowski miloszmarcinkowski commented Dec 10, 2024

Closes #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

Before with solution navigation:
Screen Recording 2024-12-10 at 14 50 21

After with solution navigation:
Screen Recording 2024-12-10 at 14 45 30

@miloszmarcinkowski miloszmarcinkowski added release_note:fix backport:prev-major Backport to (8.x, 8.17, 8.16, 8.15) the previous major branch and other branches in development labels Dec 10, 2024
@miloszmarcinkowski miloszmarcinkowski force-pushed the 197401-universal-profiling-preserve-filters-when-switching-between-universal-profiling-views branch from 1da83bf to b85fffa Compare December 10, 2024 11:40
@miloszmarcinkowski miloszmarcinkowski marked this pull request as ready for review December 11, 2024 10:01
@miloszmarcinkowski miloszmarcinkowski requested a review from a team as a code owner December 11, 2024 10:01
@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Dec 11, 2024
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@miloszmarcinkowski
Copy link
Contributor Author

@jennypavlova Thank you for review 🙌 I updated code according to 2nd comment.

@elasticmachine
Copy link
Contributor

elasticmachine commented Dec 11, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: 6aa258c
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-203545-6aa258c01598

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #6 / MaintenanceWindowsMock hides MaintenanceWindowCallout if the category ID is not supported

Metrics [docs]

Page load bundle

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

id before after diff
profiling 17.5KB 17.7KB +266.0B

History

Copy link
Member

@jennypavlova jennypavlova left a 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 ⬇️

@crespocarlos crespocarlos self-requested a review December 12, 2024 08:36
let isSidebarEnabled = true;
coreStart.chrome
.getChromeStyle$()
.pipe(take(1))
Copy link
Contributor

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)?

Copy link
Contributor Author

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
Copy link
Contributor

@crespocarlos crespocarlos Dec 12, 2024

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@crespocarlos crespocarlos Dec 12, 2024

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.

@miloszmarcinkowski miloszmarcinkowski merged commit 881cdc1 into elastic:main Dec 12, 2024
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.15, 8.16, 8.17, 8.x

https://github.com/elastic/kibana/actions/runs/12294413497

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 12, 2024
… 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)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 12, 2024
… 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)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 12, 2024
… 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)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 12, 2024
… 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)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.15
8.16
8.17
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
… 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)
kibanamachine added a commit that referenced this pull request Dec 12, 2024
…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]>
kibanamachine added a commit that referenced this pull request Dec 12, 2024
…between Universal Profiling pages in new solution navigation (#203545) (#203986)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Profiling] Preserve &#x60;kuery&#x60; 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]>
kibanamachine added a commit that referenced this pull request Dec 12, 2024
…etween Universal Profiling pages in new solution navigation (#203545) (#203987)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Profiling] Preserve &#x60;kuery&#x60; 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]>
kibanamachine added a commit that referenced this pull request Dec 12, 2024
…between Universal Profiling pages in new solution navigation (#203545) (#203984)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[Profiling] Preserve &#x60;kuery&#x60; 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]>
@mistic
Copy link
Member

mistic commented Dec 12, 2024

This PR didn't make it on time for the latest v8.17.0 BC. Updating the labels.

@mistic mistic added v8.17.1 and removed v8.17.0 labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.17, 8.16, 8.15) the previous major branch and other branches in development ci:project-deploy-observability Create an Observability project release_note:fix v8.15.6 v8.16.2 v8.17.1 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Universal Profiling] Preserve filters when switching between Universal Profiling views
6 participants