refactor(hardened): remove UBI recommendation code and configuration#647
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRefactors the trusted-content integration by removing the legacy UBI-based image recommendation configuration and plumbing in favor of the hardened image provider, simplifying report templating and preserving UI compatibility with a static empty imageMapping. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
The Hummingbird-powered Hardened Images provider now serves dynamic image recommendations, making the static UBI config-based mappings redundant. This removes the UBIRecommendation config interface, getUBIRecommendation() method, UBI properties from application.properties, and related test code. The imageMapping template parameter is set to "[]" to preserve UI compatibility. Implements TC-4971 Assisted-by: Claude Code
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #647 +/- ##
============================================
- Coverage 57.19% 56.97% -0.23%
+ Complexity 878 871 -7
============================================
Files 92 92
Lines 5021 4999 -22
Branches 690 688 -2
============================================
- Hits 2872 2848 -24
- Misses 1841 1842 +1
- Partials 308 309 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Verification Report for TC-4971 (commit ad6eae7)
Overall: WARNScope Containment is WARN because All functional checks pass. CI green. All 11 acceptance criteria satisfied. This comment was AI-generated by sdlc-workflow/verify-pr v0.13.2. |
Summary
imageMappingtemplate parameter to"[]"to preserve UI compatibilityChanges
UBIRecommendation.javaconfig interface andubi/package@Injectfield,getUBIRecommendation()method, andmergedRecommendations.putAll()call fromTrustifyIntegration.java@Injectfield, andgetImageMapping()method fromReportTemplate.javatrustedcontent.recommendation.ubi.*properties fromapplication.propertiestestProcessRecommendationsWithSbomIdtest fromTrustifyResponseHandlerTest.javaRecommendationAggregation.javacomment to remove UBI referencebatch_report.jsonto remove UBI recommendation fixture dataCONVENTIONS.mddirectory tree to removeubi/entryImplements TC-4971
Summary by Sourcery
Remove legacy UBI-based image recommendation support in favor of the hardened image provider while preserving report template compatibility.
Enhancements:
Documentation:
Tests: