mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
fix(overview): risk severity must show only fails (#9452)
Co-authored-by: Pepe Fagoaga <pepe@prowler.com>
This commit is contained in:
+3
-2
@@ -6,8 +6,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
|
||||
|
||||
|
||||
+2
@@ -11,6 +11,8 @@ export const RiskSeverityChartDetailSSR = async ({
|
||||
searchParams: SearchParamsProps | undefined | null;
|
||||
}) => {
|
||||
const filters = pickFilterParams(searchParams);
|
||||
// Filter by FAIL findings
|
||||
filters["filter[status]"] = "FAIL";
|
||||
|
||||
const [findingsBySeverity, providersData] = await Promise.all([
|
||||
getFindingsBySeverity({ filters }),
|
||||
|
||||
@@ -84,6 +84,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()}`);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user