fix(targets): the targets list counts findings live #358

Merged
sharang merged 1 commits from fix/target-findings-count into main 2026-09-23 20:39:19 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 561d090846 fix(targets): the targets list counts findings live
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 7m3s
The stored findings_count only moves when a scan runs, so findings
entered by hand, imported or deleted left the list wrong (0 for a
target with only manual findings). The list now counts each target's
findings in one aggregation and falls back to the stored count if the
query fails.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-09-23 22:09:12 +02:00