Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimplament vulnerability endpoint logic #1098

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Reimplament vulnerability endpoint logic #1098

merged 1 commit into from
Dec 13, 2024

Conversation

dejanb
Copy link
Contributor

@dejanb dejanb commented Dec 13, 2024

The idea is to change the API to return list of purl statuses for every sbom that is returned.

The new statuses should be under advisory->sboms->purl_statuses

I intentionally left statuses for now in order not to break current UI. We can change that later on, once UI catches up

@carlosthe19916 Please give it a try and let me know if this is something you can work with

I'll go document and clean code some more next

Copy link
Member

@carlosthe19916 carlosthe19916 left a comment

Choose a reason for hiding this comment

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

@dejanb Thanks for the quick PR. I tested it and it looks great. I can use that for the UI!!

I intentionally left statuses for now in order not to break current UI. We can change that later on, once UI catches up

Thank, but after testing this PR I realized the amount of changes I will need to do in the UI is minimal. So we can either remove the current statuses field or put the current purl_statuses into that field. Whatever makes more sense for you!

@dejanb dejanb force-pushed the sbom-vuln-purls-db branch from 1334f93 to a3670a2 Compare December 13, 2024 12:05
@dejanb dejanb marked this pull request as ready for review December 13, 2024 12:06
@dejanb dejanb added this pull request to the merge queue Dec 13, 2024
Merged via the queue into main with commit 7c2c140 Dec 13, 2024
3 checks passed
@dejanb dejanb deleted the sbom-vuln-purls-db branch December 13, 2024 13:05
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