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

[Security Solution] Document details flyout - fix session view alerts error #196422

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

christineweng
Copy link
Contributor

@christineweng christineweng commented Oct 15, 2024

Summary

Related #191582

We passed indices to session viewer based on sourcerer scope. When user is in a non-alert page, the alerts index is not available and hence session viewer throws an error when a user tries to open alert details. This PR updates indices to always be the alerts indices.

Screen.Recording.2024-10-15.at.1.06.46.PM.mov

@christineweng christineweng added release_note:fix v9.0.0 Team:Threat Hunting Security Solution Threat Hunting Team Team:Threat Hunting:Investigations Security Solution Investigations Team v8.16.0 labels Oct 15, 2024
@christineweng christineweng self-assigned this Oct 15, 2024
@christineweng christineweng marked this pull request as ready for review October 16, 2024 20:59
@christineweng christineweng requested a review from a team as a code owner October 16, 2024 20:59
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations)

@elasticmachine
Copy link
Contributor

elasticmachine commented Oct 16, 2024

💔 Build Failed

Failed CI Steps

History

cc @christineweng

@christineweng christineweng merged commit 89d833b into elastic:main Oct 17, 2024
41 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 17, 2024
… error (elastic#196422)

## Summary

Related elastic#191582

We passed indices to session viewer based on sourcerer scope. When user
is in a non-alert page, the alerts index is not available and hence
session viewer throws an error when a user tries to open alert details.
This PR updates indices to always be the alerts indices.

https://github.com/user-attachments/assets/264865f9-0bff-44f1-9dda-4bcd91eeab4a
(cherry picked from commit 89d833b)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 17, 2024
… error (elastic#196422)

## Summary

Related elastic#191582

We passed indices to session viewer based on sourcerer scope. When user
is in a non-alert page, the alerts index is not available and hence
session viewer throws an error when a user tries to open alert details.
This PR updates indices to always be the alerts indices.

https://github.com/user-attachments/assets/264865f9-0bff-44f1-9dda-4bcd91eeab4a
(cherry picked from commit 89d833b)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.16
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 17, 2024
… alerts error (#196422) (#196758)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Security Solution] Document details flyout - fix session view alerts
error (#196422)](#196422)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"christineweng","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-17T18:26:57Z","message":"[Security
Solution] Document details flyout - fix session view alerts error
(#196422)\n\n## Summary\r\n\r\nRelated
https://github.com/elastic/kibana/issues/191582\r\n\r\nWe passed indices
to session viewer based on sourcerer scope. When user\r\nis in a
non-alert page, the alerts index is not available and hence\r\nsession
viewer throws an error when a user tries to open alert details.\r\nThis
PR updates indices to always be the alerts
indices.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/264865f9-0bff-44f1-9dda-4bcd91eeab4a","sha":"89d833bf58ba614a0e9eb6a38a02c4eb5a641aeb","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:fix","v9.0.0","Team:Threat
Hunting","Team:Threat
Hunting:Investigations","v8.16.0"],"title":"[Security Solution] Document
details flyout - fix session view alerts
error","number":196422,"url":"https://github.com/elastic/kibana/pull/196422","mergeCommit":{"message":"[Security
Solution] Document details flyout - fix session view alerts error
(#196422)\n\n## Summary\r\n\r\nRelated
https://github.com/elastic/kibana/issues/191582\r\n\r\nWe passed indices
to session viewer based on sourcerer scope. When user\r\nis in a
non-alert page, the alerts index is not available and hence\r\nsession
viewer throws an error when a user tries to open alert details.\r\nThis
PR updates indices to always be the alerts
indices.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/264865f9-0bff-44f1-9dda-4bcd91eeab4a","sha":"89d833bf58ba614a0e9eb6a38a02c4eb5a641aeb"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196422","number":196422,"mergeCommit":{"message":"[Security
Solution] Document details flyout - fix session view alerts error
(#196422)\n\n## Summary\r\n\r\nRelated
https://github.com/elastic/kibana/issues/191582\r\n\r\nWe passed indices
to session viewer based on sourcerer scope. When user\r\nis in a
non-alert page, the alerts index is not available and hence\r\nsession
viewer throws an error when a user tries to open alert details.\r\nThis
PR updates indices to always be the alerts
indices.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/264865f9-0bff-44f1-9dda-4bcd91eeab4a","sha":"89d833bf58ba614a0e9eb6a38a02c4eb5a641aeb"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: christineweng <[email protected]>
kibanamachine added a commit that referenced this pull request Oct 17, 2024
…alerts error (#196422) (#196759)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] Document details flyout - fix session view alerts
error (#196422)](#196422)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"christineweng","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-17T18:26:57Z","message":"[Security
Solution] Document details flyout - fix session view alerts error
(#196422)\n\n## Summary\r\n\r\nRelated
https://github.com/elastic/kibana/issues/191582\r\n\r\nWe passed indices
to session viewer based on sourcerer scope. When user\r\nis in a
non-alert page, the alerts index is not available and hence\r\nsession
viewer throws an error when a user tries to open alert details.\r\nThis
PR updates indices to always be the alerts
indices.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/264865f9-0bff-44f1-9dda-4bcd91eeab4a","sha":"89d833bf58ba614a0e9eb6a38a02c4eb5a641aeb","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:fix","v9.0.0","Team:Threat
Hunting","Team:Threat
Hunting:Investigations","v8.16.0"],"title":"[Security Solution] Document
details flyout - fix session view alerts
error","number":196422,"url":"https://github.com/elastic/kibana/pull/196422","mergeCommit":{"message":"[Security
Solution] Document details flyout - fix session view alerts error
(#196422)\n\n## Summary\r\n\r\nRelated
https://github.com/elastic/kibana/issues/191582\r\n\r\nWe passed indices
to session viewer based on sourcerer scope. When user\r\nis in a
non-alert page, the alerts index is not available and hence\r\nsession
viewer throws an error when a user tries to open alert details.\r\nThis
PR updates indices to always be the alerts
indices.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/264865f9-0bff-44f1-9dda-4bcd91eeab4a","sha":"89d833bf58ba614a0e9eb6a38a02c4eb5a641aeb"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196422","number":196422,"mergeCommit":{"message":"[Security
Solution] Document details flyout - fix session view alerts error
(#196422)\n\n## Summary\r\n\r\nRelated
https://github.com/elastic/kibana/issues/191582\r\n\r\nWe passed indices
to session viewer based on sourcerer scope. When user\r\nis in a
non-alert page, the alerts index is not available and hence\r\nsession
viewer throws an error when a user tries to open alert details.\r\nThis
PR updates indices to always be the alerts
indices.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/264865f9-0bff-44f1-9dda-4bcd91eeab4a","sha":"89d833bf58ba614a0e9eb6a38a02c4eb5a641aeb"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: christineweng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants