-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Add alert and cloud insights to document flyout #195509
[Security Solution] Add alert and cloud insights to document flyout #195509
Conversation
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
7599021
to
2ce61ba
Compare
2ce61ba
to
2470081
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks and works amazing, awesome job! I left a few comments, let me know what you think!
...s/security_solution/public/flyout/document_details/shared/components/alert_count_insight.tsx
Outdated
Show resolved
Hide resolved
...s/security_solution/public/flyout/document_details/shared/components/alert_count_insight.tsx
Show resolved
Hide resolved
...urity_solution/public/flyout/document_details/shared/components/insight_distribution_bar.tsx
Outdated
Show resolved
Hide resolved
...s/security_solution/public/flyout/document_details/shared/components/alert_count_insight.tsx
Outdated
Show resolved
Hide resolved
...olution/public/cloud_security_posture/components/vulnerabilities/vulnerabilities_insight.tsx
Outdated
Show resolved
Hide resolved
...olution/public/cloud_security_posture/components/vulnerabilities/vulnerabilities_insight.tsx
Outdated
Show resolved
Hide resolved
...olution/public/cloud_security_posture/components/vulnerabilities/vulnerabilities_insight.tsx
Outdated
Show resolved
Hide resolved
...ution/public/cloud_security_posture/components/misconfiguration/misconfiguration_insight.tsx
Outdated
Show resolved
Hide resolved
...ution/public/cloud_security_posture/components/misconfiguration/misconfiguration_insight.tsx
Outdated
Show resolved
Hide resolved
...ution/public/cloud_security_posture/components/misconfiguration/misconfiguration_insight.tsx
Outdated
Show resolved
Hide resolved
@PhilippeOberti Thanks for all the feedback! I have updated the props and doc strings. Also moved the components into our flyout folder. I agree it is okay to stay in our folder, we have many components that we don't technically own the backend for (assistant, assignee etc.) |
Files by Code Ownerelastic/kibana-cloud-security-posture
elastic/security-threat-hunting-investigations & elastic/security-solution
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for making all the changes. Code looks great!
I left one last comment regarding the count shown next to the distribution chart. This is a non blocker (and could even be not desired)
...urity_solution/public/flyout/document_details/shared/components/insight_distribution_bar.tsx
Outdated
Show resolved
Hide resolved
💔 Build Failed
Failed CI Steps
Test Failures
Metrics [docs]Module Count
Async chunks
History
|
Starting backport for target branches: 8.15, 8.x |
…lastic#195509) ## Summary This PR adds alert count, misconfiguration and vulnerabilities insights to alert/event flyout. If data is not available, the insights are hidden. [Mocks](https://www.figma.com/design/ubvhBGHee58diJNvSiy0GZ/%5B8.%2B%5D-%5BAlerts%5D-Expandable-Event-Flyout?node-id=8017-179782&node-type=canvas&t=0YjHfPi9zOUFUScc-0) ![image](https://github.com/user-attachments/assets/ba706ab8-448a-4286-8229-c4c398136638) ### Checklist - [x] 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/packages/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 cd217c0)
💔 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 |
…yout (#195509) (#195825) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Solution] Add alert and cloud insights to document flyout (#195509)](#195509) <!--- 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-10T20:46:51Z","message":"[Security Solution] Add alert and cloud insights to document flyout (#195509)\n\n## Summary\r\n\r\nThis PR adds alert count, misconfiguration and vulnerabilities insights\r\nto alert/event flyout. If data is not available, the insights are\r\nhidden.\r\n\r\n\r\n[Mocks](https://www.figma.com/design/ubvhBGHee58diJNvSiy0GZ/%5B8.%2B%5D-%5BAlerts%5D-Expandable-Event-Flyout?node-id=8017-179782&node-type=canvas&t=0YjHfPi9zOUFUScc-0)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/ba706ab8-448a-4286-8229-c4c398136638)\r\n\r\n### Checklist\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"cd217c072fc786cb76ee47d885501688507c2dde","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["v9.0.0","Team:Threat Hunting","release_note:feature","Team:Threat Hunting:Investigations","backport:prev-major","8.16 candidate","v8.16.0"],"title":"[Security Solution] Add alert and cloud insights to document flyout","number":195509,"url":"https://github.com/elastic/kibana/pull/195509","mergeCommit":{"message":"[Security Solution] Add alert and cloud insights to document flyout (#195509)\n\n## Summary\r\n\r\nThis PR adds alert count, misconfiguration and vulnerabilities insights\r\nto alert/event flyout. If data is not available, the insights are\r\nhidden.\r\n\r\n\r\n[Mocks](https://www.figma.com/design/ubvhBGHee58diJNvSiy0GZ/%5B8.%2B%5D-%5BAlerts%5D-Expandable-Event-Flyout?node-id=8017-179782&node-type=canvas&t=0YjHfPi9zOUFUScc-0)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/ba706ab8-448a-4286-8229-c4c398136638)\r\n\r\n### Checklist\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"cd217c072fc786cb76ee47d885501688507c2dde"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195509","number":195509,"mergeCommit":{"message":"[Security Solution] Add alert and cloud insights to document flyout (#195509)\n\n## Summary\r\n\r\nThis PR adds alert count, misconfiguration and vulnerabilities insights\r\nto alert/event flyout. If data is not available, the insights are\r\nhidden.\r\n\r\n\r\n[Mocks](https://www.figma.com/design/ubvhBGHee58diJNvSiy0GZ/%5B8.%2B%5D-%5BAlerts%5D-Expandable-Event-Flyout?node-id=8017-179782&node-type=canvas&t=0YjHfPi9zOUFUScc-0)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/ba706ab8-448a-4286-8229-c4c398136638)\r\n\r\n### Checklist\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"cd217c072fc786cb76ee47d885501688507c2dde"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: christineweng <[email protected]>
Starting backport for target branches: 8.x |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
#196617) ## Summary This PR made some updates to the insights KPI following #195509 - Updated all the counts to be total alerts/misconfigurations/vulnerabilities - Clicking on the count badge opens timeline (alerts) or entity preview - Revert the order of the distribution bar for alerts to align with others https://github.com/user-attachments/assets/6d65503a-26b1-4db4-9118-a63ad66ac7b6 Latest design ![image](https://github.com/user-attachments/assets/6d01aaf7-d87d-4ba2-afae-0845e6d3efc7) ### 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#196617) ## Summary This PR made some updates to the insights KPI following elastic#195509 - Updated all the counts to be total alerts/misconfigurations/vulnerabilities - Clicking on the count badge opens timeline (alerts) or entity preview - Revert the order of the distribution bar for alerts to align with others https://github.com/user-attachments/assets/6d65503a-26b1-4db4-9118-a63ad66ac7b6 Latest design ![image](https://github.com/user-attachments/assets/6d01aaf7-d87d-4ba2-afae-0845e6d3efc7) ### 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 (cherry picked from commit 7195141)
elastic#196617) ## Summary This PR made some updates to the insights KPI following elastic#195509 - Updated all the counts to be total alerts/misconfigurations/vulnerabilities - Clicking on the count badge opens timeline (alerts) or entity preview - Revert the order of the distribution bar for alerts to align with others https://github.com/user-attachments/assets/6d65503a-26b1-4db4-9118-a63ad66ac7b6 Latest design ![image](https://github.com/user-attachments/assets/6d01aaf7-d87d-4ba2-afae-0845e6d3efc7) ### 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 (cherry picked from commit 7195141)
…PI count (#196617) (#196779) # Backport This will backport the following commits from `main` to `8.16`: - [[Security Solution] Document details flyout - update insight KPI count (#196617)](#196617) <!--- 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-17T22:57:52Z","message":"[Security Solution] Document details flyout - update insight KPI count (#196617)\n\n## Summary\r\n\r\nThis PR made some updates to the insights KPI following\r\nhttps://github.com//pull/195509\r\n\r\n- Updated all the counts to be total\r\nalerts/misconfigurations/vulnerabilities\r\n- Clicking on the count badge opens timeline (alerts) or entity preview\r\n- Revert the order of the distribution bar for alerts to align with\r\nothers\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6d65503a-26b1-4db4-9118-a63ad66ac7b6\r\n\r\nLatest design\r\n\r\n![image](https://github.com/user-attachments/assets/6d01aaf7-d87d-4ba2-afae-0845e6d3efc7)\r\n\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"71951416ca045cf0d2fee74d88faa0f717f487c6","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","v9.0.0","Team:Threat Hunting","Team:Threat Hunting:Investigations","v8.16.0"],"title":"[Security Solution] Document details flyout - update insight KPI count","number":196617,"url":"https://github.com/elastic/kibana/pull/196617","mergeCommit":{"message":"[Security Solution] Document details flyout - update insight KPI count (#196617)\n\n## Summary\r\n\r\nThis PR made some updates to the insights KPI following\r\nhttps://github.com//pull/195509\r\n\r\n- Updated all the counts to be total\r\nalerts/misconfigurations/vulnerabilities\r\n- Clicking on the count badge opens timeline (alerts) or entity preview\r\n- Revert the order of the distribution bar for alerts to align with\r\nothers\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6d65503a-26b1-4db4-9118-a63ad66ac7b6\r\n\r\nLatest design\r\n\r\n![image](https://github.com/user-attachments/assets/6d01aaf7-d87d-4ba2-afae-0845e6d3efc7)\r\n\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"71951416ca045cf0d2fee74d88faa0f717f487c6"}},"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/196617","number":196617,"mergeCommit":{"message":"[Security Solution] Document details flyout - update insight KPI count (#196617)\n\n## Summary\r\n\r\nThis PR made some updates to the insights KPI following\r\nhttps://github.com//pull/195509\r\n\r\n- Updated all the counts to be total\r\nalerts/misconfigurations/vulnerabilities\r\n- Clicking on the count badge opens timeline (alerts) or entity preview\r\n- Revert the order of the distribution bar for alerts to align with\r\nothers\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6d65503a-26b1-4db4-9118-a63ad66ac7b6\r\n\r\nLatest design\r\n\r\n![image](https://github.com/user-attachments/assets/6d01aaf7-d87d-4ba2-afae-0845e6d3efc7)\r\n\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"71951416ca045cf0d2fee74d88faa0f717f487c6"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: christineweng <[email protected]>
…I count (#196617) (#196780) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Solution] Document details flyout - update insight KPI count (#196617)](#196617) <!--- 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-17T22:57:52Z","message":"[Security Solution] Document details flyout - update insight KPI count (#196617)\n\n## Summary\r\n\r\nThis PR made some updates to the insights KPI following\r\nhttps://github.com//pull/195509\r\n\r\n- Updated all the counts to be total\r\nalerts/misconfigurations/vulnerabilities\r\n- Clicking on the count badge opens timeline (alerts) or entity preview\r\n- Revert the order of the distribution bar for alerts to align with\r\nothers\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6d65503a-26b1-4db4-9118-a63ad66ac7b6\r\n\r\nLatest design\r\n\r\n![image](https://github.com/user-attachments/assets/6d01aaf7-d87d-4ba2-afae-0845e6d3efc7)\r\n\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"71951416ca045cf0d2fee74d88faa0f717f487c6","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","v9.0.0","Team:Threat Hunting","Team:Threat Hunting:Investigations","v8.16.0"],"title":"[Security Solution] Document details flyout - update insight KPI count","number":196617,"url":"https://github.com/elastic/kibana/pull/196617","mergeCommit":{"message":"[Security Solution] Document details flyout - update insight KPI count (#196617)\n\n## Summary\r\n\r\nThis PR made some updates to the insights KPI following\r\nhttps://github.com//pull/195509\r\n\r\n- Updated all the counts to be total\r\nalerts/misconfigurations/vulnerabilities\r\n- Clicking on the count badge opens timeline (alerts) or entity preview\r\n- Revert the order of the distribution bar for alerts to align with\r\nothers\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6d65503a-26b1-4db4-9118-a63ad66ac7b6\r\n\r\nLatest design\r\n\r\n![image](https://github.com/user-attachments/assets/6d01aaf7-d87d-4ba2-afae-0845e6d3efc7)\r\n\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"71951416ca045cf0d2fee74d88faa0f717f487c6"}},"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/196617","number":196617,"mergeCommit":{"message":"[Security Solution] Document details flyout - update insight KPI count (#196617)\n\n## Summary\r\n\r\nThis PR made some updates to the insights KPI following\r\nhttps://github.com//pull/195509\r\n\r\n- Updated all the counts to be total\r\nalerts/misconfigurations/vulnerabilities\r\n- Clicking on the count badge opens timeline (alerts) or entity preview\r\n- Revert the order of the distribution bar for alerts to align with\r\nothers\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6d65503a-26b1-4db4-9118-a63ad66ac7b6\r\n\r\nLatest design\r\n\r\n![image](https://github.com/user-attachments/assets/6d01aaf7-d87d-4ba2-afae-0845e6d3efc7)\r\n\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"71951416ca045cf0d2fee74d88faa0f717f487c6"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: christineweng <[email protected]>
Summary
This PR adds alert count, misconfiguration and vulnerabilities insights to alert/event flyout. If data is not available, the insights are hidden.
Mocks
Checklist