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

SBOM list page calls sbom packages API for each SBOM #304

Open
dejanb opened this issue Jan 8, 2025 · 0 comments · May be fixed by #306
Open

SBOM list page calls sbom packages API for each SBOM #304

dejanb opened this issue Jan 8, 2025 · 0 comments · May be fixed by #306
Assignees

Comments

@dejanb
Copy link

dejanb commented Jan 8, 2025

I just noticed that SBOM list page makes an API call like

http://localhost:3000/api/v1/sbom/{ID}/packages?limit=1&offset=0

for each SBOM. I assume this is to get the count of packages for SBOM? If so, this information should be available in the response of

http://localhost:3000/api/v1/sbom?limit=10&offset=0&sort=name:asc

If this is the sole reason for these API calls, removing them could improve the performance of the page a bit.

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 a pull request may close this issue.

2 participants