[Security Solution][Sourcerer] Add dedicated scope for explore pages#226545
[Security Solution][Sourcerer] Add dedicated scope for explore pages#226545lgestc merged 12 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
...ck/solutions/security/plugins/security_solution/public/explore/users/pages/details/index.tsx
Outdated
Show resolved
Hide resolved
PhilippeOberti
left a comment
There was a problem hiding this comment.
Desk tested and everything looks to be working well. I left a couple of comments in the code.
...ions/security/plugins/security_solution/public/data_view_manager/hooks/use_browser_fields.ts
Show resolved
Hide resolved
...ck/solutions/security/plugins/security_solution/public/explore/users/pages/details/index.tsx
Outdated
Show resolved
Hide resolved
PhilippeOberti
left a comment
There was a problem hiding this comment.
Desk tested and code LGTM. Nice work!
One small thing I noticed is that we show a Temporary label next to this new dataView. We briefly talked about it on Slack and we should probably show Managed instead.
This will be tackled in a follow-up PR (as this code is still behind a disabled feature flag).

|
@lgestc shouldn't we remove the |
|
Starting backport for target branches: 8.19, 9.0, 9.1 https://github.com/elastic/kibana/actions/runs/16169111516 |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
History
|
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
1 similar comment
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16266286636 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…lastic#226545) This PR adds dedicated ad-hoc data view and scope for explore pages. Flip the flag, then navigate to Explore section of the security plugin. ``` xpack.securitySolution.enableExperimental: ['newDataViewPickerEnabled'] ``` You should see "Explore Data View" in the new picker on top of the page. Using `inspector` widget on every visualisation / table should show the updated index pattern that does not hit the alerts. You can try going back and forth between the default security data view and the explore one and compare the pattern rendered in the inspector to confirm that. Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [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 (cherry picked from commit 9a45666)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…lastic#226545) ## Summary This PR adds dedicated ad-hoc data view and scope for explore pages. ## Testing Flip the flag, then navigate to Explore section of the security plugin. ``` xpack.securitySolution.enableExperimental: ['newDataViewPickerEnabled'] ``` You should see "Explore Data View" in the new picker on top of the page. Using `inspector` widget on every visualisation / table should show the updated index pattern that does not hit the alerts. You can try going back and forth between the default security data view and the explore one and compare the pattern rendered in the inspector to confirm that. ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [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 (cherry picked from commit 9a45666) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/explore/hosts/pages/details/index.tsx # x-pack/solutions/security/plugins/security_solution/public/explore/network/pages/network.tsx
|
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. |
1 similar comment
|
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. |
… pages (#226545) (#227813) # Backport This will backport the following commits from `main` to `8.19`: - [[Security Solution][Sourcerer] Add dedicated scope for explore pages (#226545)](#226545) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Luke Gmys","email":"11671118+lgestc@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-09T12:18:50Z","message":"[Security Solution][Sourcerer] Add dedicated scope for explore pages (#226545)\n\n## Summary\n\nThis PR adds dedicated ad-hoc data view and scope for explore pages.\n\n## Testing\nFlip the flag, then navigate to Explore section of the security plugin.\n\n```\nxpack.securitySolution.enableExperimental: ['newDataViewPickerEnabled']\n```\n\nYou should see \"Explore Data View\" in the new picker on top of the page.\nUsing `inspector` widget on every visualisation / table should show the\nupdated index pattern that does not hit the alerts. You can try going\nback and forth between the default security data view and the explore\none and compare the pattern rendered in the inspector to confirm that.\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [ ] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"9a45666aff2611a459faf6f03e1741ba6e0ad24a","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","Team:Threat Hunting:Investigations","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Security Solution][Sourcerer] Add dedicated scope for explore pages","number":226545,"url":"https://github.com/elastic/kibana/pull/226545","mergeCommit":{"message":"[Security Solution][Sourcerer] Add dedicated scope for explore pages (#226545)\n\n## Summary\n\nThis PR adds dedicated ad-hoc data view and scope for explore pages.\n\n## Testing\nFlip the flag, then navigate to Explore section of the security plugin.\n\n```\nxpack.securitySolution.enableExperimental: ['newDataViewPickerEnabled']\n```\n\nYou should see \"Explore Data View\" in the new picker on top of the page.\nUsing `inspector` widget on every visualisation / table should show the\nupdated index pattern that does not hit the alerts. You can try going\nback and forth between the default security data view and the explore\none and compare the pattern rendered in the inspector to confirm that.\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [ ] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"9a45666aff2611a459faf6f03e1741ba6e0ad24a"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226545","number":226545,"mergeCommit":{"message":"[Security Solution][Sourcerer] Add dedicated scope for explore pages (#226545)\n\n## Summary\n\nThis PR adds dedicated ad-hoc data view and scope for explore pages.\n\n## Testing\nFlip the flag, then navigate to Explore section of the security plugin.\n\n```\nxpack.securitySolution.enableExperimental: ['newDataViewPickerEnabled']\n```\n\nYou should see \"Explore Data View\" in the new picker on top of the page.\nUsing `inspector` widget on every visualisation / table should show the\nupdated index pattern that does not hit the alerts. You can try going\nback and forth between the default security data view and the explore\none and compare the pattern rendered in the inspector to confirm that.\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [ ] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"9a45666aff2611a459faf6f03e1741ba6e0ad24a"}}]}] BACKPORT-->
…pages (#226545) (#227811) # Backport This will backport the following commits from `main` to `9.1`: - [[Security Solution][Sourcerer] Add dedicated scope for explore pages (#226545)](#226545) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Luke Gmys","email":"11671118+lgestc@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-09T12:18:50Z","message":"[Security Solution][Sourcerer] Add dedicated scope for explore pages (#226545)\n\n## Summary\n\nThis PR adds dedicated ad-hoc data view and scope for explore pages.\n\n## Testing\nFlip the flag, then navigate to Explore section of the security plugin.\n\n```\nxpack.securitySolution.enableExperimental: ['newDataViewPickerEnabled']\n```\n\nYou should see \"Explore Data View\" in the new picker on top of the page.\nUsing `inspector` widget on every visualisation / table should show the\nupdated index pattern that does not hit the alerts. You can try going\nback and forth between the default security data view and the explore\none and compare the pattern rendered in the inspector to confirm that.\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [ ] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"9a45666aff2611a459faf6f03e1741ba6e0ad24a","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","Team:Threat Hunting:Investigations","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Security Solution][Sourcerer] Add dedicated scope for explore pages","number":226545,"url":"https://github.com/elastic/kibana/pull/226545","mergeCommit":{"message":"[Security Solution][Sourcerer] Add dedicated scope for explore pages (#226545)\n\n## Summary\n\nThis PR adds dedicated ad-hoc data view and scope for explore pages.\n\n## Testing\nFlip the flag, then navigate to Explore section of the security plugin.\n\n```\nxpack.securitySolution.enableExperimental: ['newDataViewPickerEnabled']\n```\n\nYou should see \"Explore Data View\" in the new picker on top of the page.\nUsing `inspector` widget on every visualisation / table should show the\nupdated index pattern that does not hit the alerts. You can try going\nback and forth between the default security data view and the explore\none and compare the pattern rendered in the inspector to confirm that.\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [ ] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"9a45666aff2611a459faf6f03e1741ba6e0ad24a"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226545","number":226545,"mergeCommit":{"message":"[Security Solution][Sourcerer] Add dedicated scope for explore pages (#226545)\n\n## Summary\n\nThis PR adds dedicated ad-hoc data view and scope for explore pages.\n\n## Testing\nFlip the flag, then navigate to Explore section of the security plugin.\n\n```\nxpack.securitySolution.enableExperimental: ['newDataViewPickerEnabled']\n```\n\nYou should see \"Explore Data View\" in the new picker on top of the page.\nUsing `inspector` widget on every visualisation / table should show the\nupdated index pattern that does not hit the alerts. You can try going\nback and forth between the default security data view and the explore\none and compare the pattern rendered in the inspector to confirm that.\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [ ] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"9a45666aff2611a459faf6f03e1741ba6e0ad24a"}}]}] BACKPORT-->
…lastic#226545) ## Summary This PR adds dedicated ad-hoc data view and scope for explore pages. ## Testing Flip the flag, then navigate to Explore section of the security plugin. ``` xpack.securitySolution.enableExperimental: ['newDataViewPickerEnabled'] ``` You should see "Explore Data View" in the new picker on top of the page. Using `inspector` widget on every visualisation / table should show the updated index pattern that does not hit the alerts. You can try going back and forth between the default security data view and the explore one and compare the pattern rendered in the inspector to confirm that. ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [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
Summary
This PR adds dedicated ad-hoc data view and scope for explore pages.
Testing
Flip the flag, then navigate to Explore section of the security plugin.
You should see "Explore Data View" in the new picker on top of the page. Using
inspectorwidget on every visualisation / table should show the updated index pattern that does not hit the alerts. You can try going back and forth between the default security data view and the explore one and compare the pattern rendered in the inspector to confirm that.Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.