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.
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
refactor(PackageBasedScanStorageReader)!: Align
read()
to take aPackage
#7641refactor(PackageBasedScanStorageReader)!: Align
read()
to take aPackage
#7641Changes from all commits
5ae52c3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 77 in helper-cli/src/main/kotlin/commands/GetPackageLicensesCommand.kt
Codecov / codecov/patch
helper-cli/src/main/kotlin/commands/GetPackageLicensesCommand.kt#L77
Check warning on line 123 in helper-cli/src/main/kotlin/commands/packageconfig/CreateCommand.kt
Codecov / codecov/patch
helper-cli/src/main/kotlin/commands/packageconfig/CreateCommand.kt#L123
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit and this read() function: I have difficulties understanding which parts of the package will be used to determine which scan results are being returned and how. Can you help?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's indeed a bit hard to understand as the relevant parts are not implemented yet... because they couldn't, as the ClearlyDefined scan storage provider did not have access to the necessary information before this change.
Basically, the ClearlyDefined implementation would need to have access to the VCS location, source artifact location (and maybe also the binary source artifact location) in order to create a proper Coordinate for querying harvested (scan) results. A Coordinate includes a ComponentType and Provider, and in order to determine these properly, more Package properties than just the Identifier are required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As
Package
contains many irrelevant properties I would prefer if the interface would only require the relevant values to have a cleaner API. But I would be fine with looking into it after fixing the ClearlyDefinedStorage.Check warning on line 66 in scanner/src/main/kotlin/storages/FileBasedStorage.kt
Codecov / codecov/patch
scanner/src/main/kotlin/storages/FileBasedStorage.kt#L66
Check warning on line 34 in scanner/src/main/kotlin/storages/NoStorage.kt
Codecov / codecov/patch
scanner/src/main/kotlin/storages/NoStorage.kt#L34
Check warning on line 143 in scanner/src/main/kotlin/storages/PostgresStorage.kt
Codecov / codecov/patch
scanner/src/main/kotlin/storages/PostgresStorage.kt#L143
Check warning on line 90 in scanner/src/main/kotlin/storages/Sw360Storage.kt
Codecov / codecov/patch
scanner/src/main/kotlin/storages/Sw360Storage.kt#L90
Check warning on line 93 in scanner/src/main/kotlin/storages/Sw360Storage.kt
Codecov / codecov/patch
scanner/src/main/kotlin/storages/Sw360Storage.kt#L93
Check warning on line 101 in scanner/src/main/kotlin/storages/Sw360Storage.kt
Codecov / codecov/patch
scanner/src/main/kotlin/storages/Sw360Storage.kt#L101