-
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
[Cloud Security] [Posture Dashboard] Update links to the findings page with groupBy option #176463
[Cloud Security] [Posture Dashboard] Update links to the findings page with groupBy option #176463
Conversation
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
To update your PR or re-run it, just comment with: |
type: CIS_AWS, | ||
name: 'Amazon Web Services (AWS)', | ||
provider: 'aws', | ||
name: getBenchmarkApplicableTo(CIS_AWS), | ||
provider: CLOUD_PROVIDERS.AWS, | ||
}, | ||
{ | ||
type: CIS_GCP, | ||
name: 'Google Cloud Platform (GCP)', | ||
provider: 'gcp', | ||
name: getBenchmarkApplicableTo(CIS_GCP), | ||
provider: CLOUD_PROVIDERS.GCP, | ||
}, | ||
{ | ||
type: CIS_AZURE, | ||
name: 'Azure', | ||
provider: 'azure', | ||
name: getBenchmarkApplicableTo(CIS_AZURE), | ||
provider: CLOUD_PROVIDERS.AZURE, | ||
}, | ||
{ | ||
type: CIS_K8S, | ||
name: 'Kubernetes', | ||
benchmarkId: 'cis_k8s', | ||
name: getBenchmarkApplicableTo(CIS_K8S), | ||
benchmarkId: CIS_K8S, | ||
}, | ||
{ | ||
type: CIS_EKS, | ||
name: 'Amazon Elastic Kubernetes Service (EKS)', | ||
benchmarkId: 'cis_eks', | ||
name: getBenchmarkApplicableTo(CIS_EKS), | ||
benchmarkId: CIS_EKS, |
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.
i see that its not new, but can we change it so all of those uses benchmarkId to keep it consistent? not urgent
return navToFindingsByCloudProvider(benchmark.provider); | ||
} | ||
if (benchmark.benchmarkId) { | ||
navToFindingsByCisBenchmark(benchmark.benchmarkId); | ||
return navToFindingsByCisBenchmark(benchmark.benchmarkId); |
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.
why do we need to return here? no one takes in the value and the functions themselves do not return anything. i think this is redundant.
@@ -57,7 +57,7 @@ const useNavigate = (pathname: string, dataViewId = SECURITY_DEFAULT_DATA_VIEW_I | |||
const { services } = useKibana(); | |||
|
|||
return useCallback( | |||
(filterParams: NavFilter = {}) => { | |||
(filterParams: NavFilter = {}, groupBy?: string[]) => { |
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.
might be to read and use if this function will receive an object, not urgent since it will require some refactoring
…e with groupBy option (elastic#176463)
…e with groupBy option (elastic#176463)
Summary
It closes #173496
This PR updates the Cloud Posture Dashboard links to the findings page to leverage the new Grouping visualization.
Account Evaluated section links and Benchmarks on the Cloud Tab redirect to the Findings page Grouped by Cloud Account.
Account Evaluated section links and Benchmarks on the Kubernetes Tab redirect to the Findings page Grouped by Kubernetes Cluster.
Recording
Cloud Tab
Screen.Recording.2024-02-07.at.5.43.00.PM.mov
Kubernetes Tab
Screen.Recording.2024-02-07.at.5.43.27.PM.mov