fix(dashboard): drop duplicates for rows (#7686)

This commit is contained in:
Pedro Martín
2025-05-08 10:35:19 +02:00
committed by GitHub
parent ed26c2c42c
commit e142a9e0f4
2 changed files with 4 additions and 1 deletions

View File

@@ -408,7 +408,9 @@ def display_data(
compliance_module = importlib.import_module(
f"dashboard.compliance.{current}"
)
data.drop_duplicates(keep="first", inplace=True)
data = data.drop_duplicates(
subset=["CHECKID", "STATUS", "MUTED", "RESOURCEID", "STATUSEXTENDED"]
)
if "threatscore" in analytics_input:
data = get_threatscore_mean_by_pillar(data)

View File

@@ -66,6 +66,7 @@ All notable changes to the **Prowler SDK** are documented in this file.
- Ensure that ContentType in upload_file matches the uploaded files format [(#7635)](https://github.com/prowler-cloud/prowler/pull/7635)
- Fix incorrect check inside 4.4.1 requirement for Azure CIS 2.0 [(#7656)](https://github.com/prowler-cloud/prowler/pull/7656).
- Remove muted findings on compliance page from Prowler Dashboard [(#7683)](https://github.com/prowler-cloud/prowler/pull/7683).
- Remove duplicated findings on compliance page from Prowler Dashboard [(#7686)](https://github.com/prowler-cloud/prowler/pull/7686).
---