feat(api): finding group first_seen_at semantics and resource delta (#10595)

This commit is contained in:
Adrián Peña authored and GitHub committed 2026-04-07 16:41:08 +02:00
1 parent 5e1e4bd8e4
commit abaacd7dbf
4 files changed
+47 -1

No files matched your search

+3 -1
View File
@@ -1824,7 +1824,9 @@ def aggregate_finding_group_summaries(tenant_id: str, scan_id: str):
filter=Q(status="FAIL", muted=False),
),
# Use prefixed names to avoid conflict with model field names
agg_first_seen_at=Min("first_seen_at"),
agg_first_seen_at=Min(
"first_seen_at", filter=Q(delta="new", muted=False)
),
agg_last_seen_at=Max("inserted_at"),
agg_failing_since=Min(
"first_seen_at", filter=Q(status="FAIL", muted=False)