Skip to content

Label what the dashboard's two severity panels count (SECFOO-36) - #33

Merged
vsn411 merged 3 commits into
secfoo-com:mainfrom
Varunpoojari:fix/secfoo-36-severity-panel-labels
Nov 1, 2026
Merged

vsn411 merged 3 commits into
secfoo-com:mainfrom
Varunpoojari:fix/secfoo-36-severity-panel-labels

Conversation

@Varunpoojari

@Varunpoojari Varunpoojari commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

What

Fixes SECFOO-36: on the dashboard overview, "Findings by severity" and "Top findings" showed different severity counts for the same project (e.g. SQL injection written as High in the report but Critical, CVSS 9.1, in Top findings).

Why they differ

They count different things, so the numbers are not wrong, only unlabelled:

  • Findings by severity sums the severity counts parsed from each run's report headings (count_severities(), stored per run), across all runs. Repeat scans count again.
  • Top findings lists open, de-duplicated Critical/High items from every activity, and bands SAST findings by CVSS score (cvss.rating()).

Driving both from one source would mean redesigning how the bar chart counts, so this PR takes the ticket's second option: label each panel.

Changes

  • overview.html: a caption under "Findings by severity" and an extra sentence in the "Top findings" intro saying what each panel counts.
  • tests/test_web/test_routes.py: test_overview_severity_panels_explain_what_they_count checks that the captions render.

Testing

Full suite: 809 passed, 4 failed. The same 4 architecture-diagram tests fail on main without this change because mermaid.min.js is not installed locally (secfoo vendor mermaid in CI). No regressions.

Varunpoojari and others added 3 commits October 21, 2026 04:46
"Findings by severity" sums the severity written in each run's report across
all runs, while "Top findings" lists open, de-duplicated items with SAST
findings banded by CVSS. They legitimately differ, so each panel now says
what it counts. Adds a test that checks both captions render.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01E2g1gSvhdvPtBcKPvSBRqw
@vsn411
vsn411 merged commit a4edbe4 into secfoo-com:main Nov 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants