Repository navigation
Label what the dashboard's two severity panels count (SECFOO-36) - #33
Merged
vsn411 merged 3 commits intoNov 1, 2026
Merged
Conversation
"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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
count_severities(), stored per run), across all runs. Repeat scans count again.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_countchecks that the captions render.Testing
Full suite: 809 passed, 4 failed. The same 4 architecture-diagram tests fail on
mainwithout this change becausemermaid.min.jsis not installed locally (secfoo vendor mermaidin CI). No regressions.