Skip to content

[9.2] [Security Solution] Persist analyzer dataview in local storage (#245002)#247401

Merged
PhilippeOberti merged 3 commits intoelastic:9.2from
PhilippeOberti:backport/9.2/pr-245002
Dec 23, 2025
Merged

[9.2] [Security Solution] Persist analyzer dataview in local storage (#245002)#247401
PhilippeOberti merged 3 commits intoelastic:9.2from
PhilippeOberti:backport/9.2/pr-245002

Conversation

@PhilippeOberti
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

…ic#245002)

## Summary

This PR will persist analyzer (only for now, but easily extendible to
other scopes) selected data view to local storage when it's set, by the
user or some other dispatch of that action. If the data view this is set
to is deleted, and the value is set in local storage, the first data
view in the data view selection list is used. With a bit more logic we
could probably fall back to security solution default, but I think the
first is fine. If the key doesn't exist at all, the default is used in
this case.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

elastic#210926
(cherry picked from commit 40e1f9f)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/public/data_view_manager/hooks/use_init_data_view_manager.ts
#	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
#	x-pack/solutions/security/plugins/security_solution/public/data_view_manager/redux/listeners/init_listener.test.ts
#	x-pack/solutions/security/plugins/security_solution/public/data_view_manager/redux/listeners/init_listener.ts
@PhilippeOberti PhilippeOberti added the backport This PR is a backport of another PR label Dec 23, 2025
@PhilippeOberti PhilippeOberti enabled auto-merge (squash) December 23, 2025 16:43
@PhilippeOberti PhilippeOberti merged commit bc06f7f into elastic:9.2 Dec 23, 2025
13 checks passed
@elasticmachine
Copy link
Copy Markdown
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
securitySolution 11.1MB 11.1MB +403.0B

History

@PhilippeOberti PhilippeOberti deleted the backport/9.2/pr-245002 branch December 23, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants