Closed findings not shown if created in a different month than mitigated #12534
Closed
jugalb-icpl
started this conversation in
General
Replies: 2 comments
-
@Maffooch I think this makes sense, just checking if you agree? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is fixed via #12599 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
📌 Issue: Closed Findings Not Shown Unless Created in Same Month
🐞 Problem
In the
simple_metrics
dashboard, the "Closed" count only includes findings that were both created and mitigated in the same month. This leads to inaccurate reporting, as any findings mitigated in the selected month — but created earlier — are completely excluded.🔍 Root Cause
The code filters findings using only the
date
(created date), like so:Later, it tries to count "Closed" findings with:
However, since the total queryset only includes findings created in the selected month, it misses any that were created earlier but mitigated during the selected month.
Expected Behavior
The "Closed" count should include all findings that were mitigated (closed) in the selected month/year, regardless of when they were created.
Beta Was this translation helpful? Give feedback.
All reactions