Skip to content

Show ml_score in the frontend findings list#149

Merged
ionfwsrijan merged 2 commits into
ionfwsrijan:mainfrom
Aditya8369:36
Jun 22, 2026
Merged

Show ml_score in the frontend findings list#149
ionfwsrijan merged 2 commits into
ionfwsrijan:mainfrom
Aditya8369:36

Conversation

@Aditya8369

@Aditya8369 Aditya8369 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Before opening: make sure there is an issue tracking this work, and link it below. PRs without a linked issue may be closed without review.

Linked issue

Closes #36

What this PR does

successfully surfaced the ranker's ML score next to severity badges in the Findings view, added sample data for visual testing, persisted the ML score in the SQLite database backend, and added a sorting toggle.

Type of change

  • Bug fix
  • New feature
  • ML model / training pipeline
  • Refactor (no behaviour change)
  • Documentation
  • Tests only

ML tier (if applicable)

  • Tier 1 — Triage
  • Tier 2 — Predictive
  • Tier 3 — Autonomous
  • Not ML-related

Stack affected

  • Backend
  • Frontend
  • Both

Changes

Backend

Added the ml_score column to the findings table in the database and handled automatic migrations. Updated scan tasks to insert the score and endpoints to retrieve it.

Frontend

Mapped ml_score from backend findings to frontend findings. Added mock scores to sample data to make visual testing instant.

New dependencies

NA

Database / schema changes

NA


Testing

How did you test this?

Backend tests were successfully run and passed.
Frontend production build compiled and completed successfully.

Checklist

  • Tested locally end-to-end (upload ZIP or GitHub URL → scan → findings returned correctly)
  • New ML model falls back gracefully when model file is absent
  • No new console.error or unhandled Python exceptions introduced
  • Added or updated tests where applicable
  • requirements.txt / package.json updated if new dependencies added
  • New model files (.pkl, .pt, etc.) are gitignored, not committed

Anything reviewers should focus on

NA

Screenshots (if UI changed)

NA

@github-actions github-actions Bot added backend Backend issues frontend Frontend issues ml ML related issues SSoC26 needs-work Work needed and removed needs-work Work needed labels Jun 22, 2026
@ionfwsrijan ionfwsrijan added the Medium Medium difficulty label Jun 22, 2026
@ionfwsrijan ionfwsrijan merged commit 8d0bf1d into ionfwsrijan:main Jun 22, 2026
11 checks passed
@Aditya8369 Aditya8369 deleted the 36 branch June 22, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend issues frontend Frontend issues Medium Medium difficulty ml ML related issues SSoC26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show ml_score in the frontend findings list

2 participants