-
Notifications
You must be signed in to change notification settings - Fork 32
chore: add new field custom_license_refs into license entity #1912
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
base: main
Are you sure you want to change the base?
Conversation
Reviewer's GuideThis PR introduces support for custom license references in the SBOM ingestion pipeline by extending the SPDX parsing logic, enhancing the LicenseCreator to track and construct custom refs, updating the database schema and entity model, and adding an end-to-end test to validate persistence. Entity relationship diagram for updated License table with custom_license_refserDiagram
LICENSE {
UUID id PK
TEXT text
TEXT[] spdx_licenses
TEXT[] spdx_license_exceptions
TEXT[] custom_license_refs
}
Entity relationship diagram for License and LicensingInfoserDiagram
LICENSE {
UUID id PK
TEXT[] custom_license_refs
}
LICENSING_INFOS {
TEXT license_id PK
TEXT name
}
LICENSE ||--o{ LICENSING_INFOS : references
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
98a7fe9 to
aa4dcfc
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1912 +/- ##
==========================================
+ Coverage 68.25% 68.40% +0.14%
==========================================
Files 367 368 +1
Lines 23216 23324 +108
Branches 23216 23324 +108
==========================================
+ Hits 15847 15954 +107
Misses 6488 6488
- Partials 881 882 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b03c3b8 to
b73244f
Compare
b73244f to
531eb69
Compare
2a9bee1 to
ed6b409
Compare
ed6b409 to
af2ea57
Compare
Summary by Sourcery
Capture custom licenseRef expressions from SPDX data, map them to readable identifiers using licensing_infos, and store them in a new custom_license_refs column on the license table, with a migration and test to validate the feature
New Features:
Enhancements:
Tests:
Chores: