Skip to content

Adding vulnerability sorting by project count - #7334

Open
krishardy wants to merge 1 commit into
DependencyTrack:mainfrom
krishardy:feat/sortable-vulnerability-project-count
Open

krishardy wants to merge 1 commit into
DependencyTrack:mainfrom
krishardy:feat/sortable-vulnerability-project-count

Conversation

@krishardy

@krishardy krishardy commented Sep 18, 2026 •

Copy link
Copy Markdown

Description

This makes the following improvement in the Vulnerability view in the UI:

  • The vulnerability list is sortable by the number of affected projects

Addressed Issue

N/A

Additional Details

Moved the getVulnerabilities() logic to a SqlQuery instead of building it piecemeal in code.
Tests have been written and pass.
Companion UI PR: DependencyTrack/frontend#1859

Checklist

  • I have read and understand the contributing guidelines
  • [n/a] This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • [n/a] This PR introduces changes to the database model, and I have updated the migration changelog accordingly
  • [n/a] This PR introduces new or alters existing behavior, and I have updated the documentation accordingly
  • [n/a] This PR is a substantial change (per the ADR criteria), and I have added an ADR under docs/adr/

@owasp-dt-bot

owasp-dt-bot commented Sep 18, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 7 complexity

Metric Results
Complexity 7

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Signed-off-by: Kris Hardy <hardyrk@gmail.com>
@krishardy
krishardy force-pushed the feat/sortable-vulnerability-project-count branch from 996582a to 79b6ae0 Compare September 25, 2026 05:03

This branch has not been deployed

No deployments
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