fix(overview): risk severity must show only fails (#9448)

This commit is contained in:
Pepe Fagoaga
2025-12-04 10:25:45 +01:00
committed by GitHub
parent 6dff4bfd8b
commit 340454ba68
3 changed files with 8 additions and 2 deletions

View File

@@ -20,8 +20,9 @@ All notable changes to the **Prowler UI** are documented in this file.
### 🐞 Fixed
- Models list in Lighthouse selector when default model is not set for provider [(9402)](https://github.com/prowler-cloud/prowler/pull/9402)
- Sort compliance cards by name from the compliance overview [(9422)](https://github.com/prowler-cloud/prowler/pull/9422)
- Models list in Lighthouse selector when default model is not set for provider [(#9402)](https://github.com/prowler-cloud/prowler/pull/9402)
- Sort compliance cards by name from the compliance overview [(#9422)](https://github.com/prowler-cloud/prowler/pull/9422)
- Risk severity chart must show only FAIL findings [(#9448)](https://github.com/prowler-cloud/prowler/pull/XXXX)
### Security

View File

@@ -10,6 +10,8 @@ export const RiskSeverityChartDetailSSR = async ({
searchParams: SearchParamsProps | undefined | null;
}) => {
const filters = pickFilterParams(searchParams);
// Filter by FAIL findings
filters["filter[status]"] = "FAIL";
const findingsBySeverity = await getFindingsBySeverity({ filters });

View File

@@ -47,6 +47,9 @@ export const RiskSeverityChart = ({
// Add exclude muted findings filter
params.set("filter[muted]", "false");
// Filter by FAIL findings
params.set("filter[status__in]", "FAIL");
// Navigate to findings page
router.push(`/findings?${params.toString()}`);
};