Add sync engine to import licenses and obligations from LicenseDB#4292
Open
Sandipmandal25 wants to merge 1 commit into
Open
Conversation
168db4d to
1a3d626
Compare
GMishx
reviewed
Jun 25, 2026
GMishx
left a comment
Member
There was a problem hiding this comment.
Minor code refactoring suggestions. Rest looks good.
1a3d626 to
5c1db3d
Compare
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
Adds the LicenseDB sync engine as the second part of the SW360 and LicenseDB integration.
This builds on the HTTP client added in #4268 and adds the complete flow for fetching licenses and obligations from LicenseDB and storing them in SW360.
Changes
importAllLicenseDBLicenses()inLicenseDatabaseHandlerLICENSEDB_REST/api/v1/obligations/export/api/v1/licenses/exportexternalIds["licensedb-id"]checked,FSFLibre,whitelist, and manually added obligationslicensedb-sync-stateCouchDB documentLicenseDBDataMapperto map LicenseDB DTOs to SW360 Thrift objectsRISK,RESTRICTION,RIGHT, andOBLIGATIONEndpoint
POST /api/licenses/import/LicenseDBSuggested reviewers