Skip to content

fix(Rest): Add vulnerability count number to project detail tabs.#4031

Open
nikkuma7 wants to merge 1 commit intomainfrom
fix/projectVulnerbilitycount
Open

fix(Rest): Add vulnerability count number to project detail tabs.#4031
nikkuma7 wants to merge 1 commit intomainfrom
fix/projectVulnerbilitycount

Conversation

@nikkuma7
Copy link
Copy Markdown
Contributor

@nikkuma7 nikkuma7 commented Apr 5, 2026

Please provide a summary of your changes here.

  • Which issue is this pull request belonging to and how is it solving it? (Refer to issue here)
  • Did you add or update any new dependencies that are required for your change?

Issue: Close ##4025

Suggest Reviewer

You can suggest reviewers here with an @mention.

How To Test?

Url: Get : http://localhost:8080/resource/api/projects/{ID}/vulnerabilitiesCount

1: Navigate to the Project detail page.
2: Look at the left sidebar — find the "Vulnerabilities" tab item.
3: Verify a vulnerability number is visible next to the label showing.

6: Click the Vulnerabilities tab and verify the content still loads correctly.
7: Test with a project that has no vulnerabilities — badge should show 0 / 0 in red.

How should these changes be tested by the reviewer?
Have you implemented any additional tests?

Checklist

Must:

  • All related issues are referenced in commit messages and in PR

@nikkuma7 nikkuma7 changed the title fix(Rest): add vulnerability count badge to project detail tabs fix(Rest): Add vulnerability count number to project detail tabs. Apr 5, 2026
return new ResponseEntity<>(resources, status);
}

@Operation(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need an endpoint for all metric data in the project sidebar

@nikkuma7 nikkuma7 added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs code review needs general test This is general testing, meaning that there is no org specific issue to check for

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants