[8.x] [Cloud Security] Fixed an issue with Host.name Alerts contextual flyout (#200626) (#200688)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Fixed an issue with Host.name Alerts contextual
flyout (#200626)](https://github.com/elastic/kibana/pull/200626)

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

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

<!--BACKPORT [{"author":{"name":"Rickyanto
Ang","email":"rickyangwyn@gmail.com"},"sourceCommit":{"committedDate":"2024-11-19T09:20:37Z","message":"[Cloud
Security] Fixed an issue with Host.name Alerts contextual flyout
(#200626)\n\n## Summary\r\n\r\nThis PR addresses issue with Alerts
flyout on host.name. Users are\r\nunable to to open Flyout via clicking
Expand flyout (Missing this) and\r\nalso unable to close Alerts
datagrid\r\n\r\n## Issue\r\n<img width=\"1728\" alt=\"Screenshot
2024-11-18 at 9 43
24 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/768729ac-b7e7-4bac-a6a6-253ad183b4bb\">\r\n\r\n##
Fix\r\n<img width=\"1725\" alt=\"Screenshot 2024-11-18 at 9 44
05 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/25044a1c-924f-48f1-8f41-51d5f5797b28\">","sha":"e05d83486b7f2229940d2c4d90549bf84cd23585","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Cloud
Security","backport:prev-minor","backport:version","v8.17.0"],"title":"[Cloud
Security] Fixed an issue with Host.name Alerts contextual
flyout","number":200626,"url":"https://github.com/elastic/kibana/pull/200626","mergeCommit":{"message":"[Cloud
Security] Fixed an issue with Host.name Alerts contextual flyout
(#200626)\n\n## Summary\r\n\r\nThis PR addresses issue with Alerts
flyout on host.name. Users are\r\nunable to to open Flyout via clicking
Expand flyout (Missing this) and\r\nalso unable to close Alerts
datagrid\r\n\r\n## Issue\r\n<img width=\"1728\" alt=\"Screenshot
2024-11-18 at 9 43
24 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/768729ac-b7e7-4bac-a6a6-253ad183b4bb\">\r\n\r\n##
Fix\r\n<img width=\"1725\" alt=\"Screenshot 2024-11-18 at 9 44
05 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/25044a1c-924f-48f1-8f41-51d5f5797b28\">","sha":"e05d83486b7f2229940d2c4d90549bf84cd23585"}},"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/200626","number":200626,"mergeCommit":{"message":"[Cloud
Security] Fixed an issue with Host.name Alerts contextual flyout
(#200626)\n\n## Summary\r\n\r\nThis PR addresses issue with Alerts
flyout on host.name. Users are\r\nunable to to open Flyout via clicking
Expand flyout (Missing this) and\r\nalso unable to close Alerts
datagrid\r\n\r\n## Issue\r\n<img width=\"1728\" alt=\"Screenshot
2024-11-18 at 9 43
24 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/768729ac-b7e7-4bac-a6a6-253ad183b4bb\">\r\n\r\n##
Fix\r\n<img width=\"1725\" alt=\"Screenshot 2024-11-18 at 9 44
05 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/25044a1c-924f-48f1-8f41-51d5f5797b28\">","sha":"e05d83486b7f2229940d2c4d90549bf84cd23585"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Rickyanto Ang <rickyangwyn@gmail.com>
This commit is contained in:
Kibana Machine 2024-11-19 22:06:09 +11:00 committed by GitHub
parent 0ee05fe587
commit 1cd1b5c2cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -225,7 +225,7 @@ export const AlertsPreview = ({
<EuiText
size="xs"
css={{
fontWeight: euiTheme.font.weight.semiBold,
fontWeight: euiTheme.font.weight.bold,
}}
>
<FormattedMessage

View file

@ -216,7 +216,10 @@ export const HostPanel = ({
<FlyoutNavigation
flyoutIsExpandable={
!isPreviewMode &&
(isRiskScoreExist || hasMisconfigurationFindings || hasVulnerabilitiesFindings)
(isRiskScoreExist ||
hasMisconfigurationFindings ||
hasVulnerabilitiesFindings ||
hasNonClosedAlerts)
}
expandDetails={openDefaultPanel}
/>