[Security Solution] Make the dataview key in localstorage space aware#260258
Conversation
|
@kqualters-elastic this is related to this previous PR. If you have some time, could you take a look at this current one? I will review myself as well |
kqualters-elastic
left a comment
There was a problem hiding this comment.
makes sense, and how this is done lgtm 👍 is this currently breaking anything?
8cef5f0 to
40126f1
Compare
|
Starting backport for target branches: 9.2, 9.3 https://github.com/elastic/kibana/actions/runs/23795060337 |
…elastic#260258) ## Summary This [PR](elastic#245002) introduced logic to persist the loaded DV ids in the local storage. However, DVs are space aware, and so whenever you switch from one space to another in current `main` you get the following error in the video below. https://github.com/user-attachments/assets/94089c8f-c35d-4734-b983-f49698e70351 This PR makes the key used to store the id in the local storage, space aware. (cherry picked from commit 5f5decb)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
… aware (#260258) (#260453) # Backport This will backport the following commits from `main` to `9.3`: - [[Security Solution] Make the dataview key in localstorage space aware (#260258)](#260258) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Edgar Santos","email":"edgar.santos@elastic.co"},"sourceCommit":{"committedDate":"2026-03-31T11:31:13Z","message":"[Security Solution] Make the dataview key in localstorage space aware (#260258)\n\n## Summary\nThis [PR](#245002) introduced\nlogic to persist the loaded DV ids in the local storage. However, DVs\nare space aware, and so whenever you switch from one space to another in\ncurrent `main` you get the following error in the video below.\n\n\nhttps://github.com/user-attachments/assets/94089c8f-c35d-4734-b983-f49698e70351\n\nThis PR makes the key used to store the id in the local storage, space\naware.","sha":"5f5decbc680787e84da42621cedf366d1bf1ebde","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v9.2.0","v9.3.0","v9.4.0"],"title":"[Security Solution] Make the dataview key in localstorage space aware","number":260258,"url":"https://github.com/elastic/kibana/pull/260258","mergeCommit":{"message":"[Security Solution] Make the dataview key in localstorage space aware (#260258)\n\n## Summary\nThis [PR](#245002) introduced\nlogic to persist the loaded DV ids in the local storage. However, DVs\nare space aware, and so whenever you switch from one space to another in\ncurrent `main` you get the following error in the video below.\n\n\nhttps://github.com/user-attachments/assets/94089c8f-c35d-4734-b983-f49698e70351\n\nThis PR makes the key used to store the id in the local storage, space\naware.","sha":"5f5decbc680787e84da42621cedf366d1bf1ebde"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.3"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.3","label":"v9.3.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/260258","number":260258,"mergeCommit":{"message":"[Security Solution] Make the dataview key in localstorage space aware (#260258)\n\n## Summary\nThis [PR](#245002) introduced\nlogic to persist the loaded DV ids in the local storage. However, DVs\nare space aware, and so whenever you switch from one space to another in\ncurrent `main` you get the following error in the video below.\n\n\nhttps://github.com/user-attachments/assets/94089c8f-c35d-4734-b983-f49698e70351\n\nThis PR makes the key used to store the id in the local storage, space\naware.","sha":"5f5decbc680787e84da42621cedf366d1bf1ebde"}}]}] BACKPORT--> Co-authored-by: Edgar Santos <edgar.santos@elastic.co>
…elastic#260258) ## Summary This [PR](elastic#245002) introduced logic to persist the loaded DV ids in the local storage. However, DVs are space aware, and so whenever you switch from one space to another in current `main` you get the following error in the video below. https://github.com/user-attachments/assets/94089c8f-c35d-4734-b983-f49698e70351 This PR makes the key used to store the id in the local storage, space aware.
…elastic#260258) ## Summary This [PR](elastic#245002) introduced logic to persist the loaded DV ids in the local storage. However, DVs are space aware, and so whenever you switch from one space to another in current `main` you get the following error in the video below. https://github.com/user-attachments/assets/94089c8f-c35d-4734-b983-f49698e70351 This PR makes the key used to store the id in the local storage, space aware. (cherry picked from commit 5f5decb) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/data_view_manager/redux/listeners/data_view_selected.test.ts # x-pack/solutions/security/plugins/security_solution/public/data_view_manager/redux/listeners/data_view_selected.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…elastic#260258) ## Summary This [PR](elastic#245002) introduced logic to persist the loaded DV ids in the local storage. However, DVs are space aware, and so whenever you switch from one space to another in current `main` you get the following error in the video below. https://github.com/user-attachments/assets/94089c8f-c35d-4734-b983-f49698e70351 This PR makes the key used to store the id in the local storage, space aware.
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
28 similar comments
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
Summary
This PR introduced logic to persist the loaded DV ids in the local storage. However, DVs are space aware, and so whenever you switch from one space to another in current
mainyou get the following error in the video below.Screen.Recording.2026-03-31.at.13.21.34.mov
This PR makes the key used to store the id in the local storage, space aware.