perf: use pre-fetched advisory severity summary on SBOM list [Backport release/0.5.z]#1152
Merged
Merged
Conversation
Contributor
Reviewer's GuideThis PR refactors the SBOM list vulnerabilities column to use pre-fetched advisory severity summaries from the SBOM list query instead of per-row fetching, and makes the vulnerability gallery tolerant of missing severity values. It also threads an Sequence diagram for SBOM list advisories prefetch flowsequenceDiagram
participant SbomTable
participant SbomSearchProvider
participant useFetchSBOMs
participant listSboms
SbomTable->>SbomSearchProvider: render SbomTable
SbomSearchProvider->>useFetchSBOMs: useFetchSBOMs(params, labels, disableQuery=false, advisories=true)
useFetchSBOMs->>listSboms: listSboms({ requestParams: { ... , advisories:true } })
listSboms-->>useFetchSBOMs: SBOM list with item.advisories
useFetchSBOMs-->>SbomSearchProvider: data
SbomSearchProvider-->>SbomTable: items with advisories
SbomTable->>SBOMVulnerabilities: SBOMVulnerabilities(advisories=item.advisories)
SBOMVulnerabilities->>VulnerabilityGallery: VulnerabilityGallery(severities=advisories)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
carlosthe19916
approved these changes
Jul 9, 2026
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release/0.5.z #1152 +/- ##
=================================================
- Coverage 51.30% 51.26% -0.04%
=================================================
Files 256 256
Lines 5518 5516 -2
Branches 1668 1671 +3
=================================================
- Hits 2831 2828 -3
- Misses 2422 2423 +1
Partials 265 265
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
release/0.5.zCherry-picked from fb9c2cf
Summary by Sourcery
Improve SBOM list performance by switching vulnerability display to use pre-fetched advisory severity summaries passed through the SBOM query and context, rather than fetching vulnerabilities individually for each SBOM row.
Enhancements: