feat(scanner): Store detected and effective license in database#4791
feat(scanner): Store detected and effective license in database#4791Joelp03 wants to merge 1 commit intoeclipse-apoapsis:mainfrom
Conversation
|
@Joelp03 Thank you for the contribution! I don't have time to review this now and I won't be available for review for the next week, so some hints for anyone who picks up the review:
|
Etsija
left a comment
There was a problem hiding this comment.
We use rebasing, and there should be no merge commits.
aca98ee to
f66517c
Compare
|
Thanks @Etsija |
For starters, you should run |
FYI, we have the |
Really?? Time to change docs then, as they are a mess when it comes to contributing guide: I found THREE separate places where guidance is given to the contributors, and NONE of them document usage of detekt correctly. |
What about this, which mentions In any case, PRs to improve the docs welcome 😉 |
|
Hi @Etsija and @sschuberth, I'm aware of the I've tried running Is there a specific command to auto-fix this custom rule, or could you point me to the exact import order configuration? Thanks! |
f66517c to
e250b1a
Compare
Not sure why |
e250b1a to
d77894a
Compare
Thanks. I've already signed the commit msg |
Store detected licenses and effective license for packages and projects during the scanner phase to make them easily available via API routes without having to traverse all license findings from scan results. - Add detectedLicenses and effectiveLicense columns to packages and projects tables (Flyway V139 migration) - Add fields to Package and Project models - Add DAO support for new columns with comma-separated serialization - Create LicenseComputation.kt with functions to compute licenses - Integrate license computation in ScannerWorker - Expose new fields in API v1 Package and Project responses - Add unit tests for DAO and LicenseComputation Signed-off-by: Joel Pimentel <joelpimentel1995@gmail.com> Resolves eclipse-apoapsis#4607.
d77894a to
e8fb184
Compare
Hi there.
This implementation resolves the issue of storing detected and effective licenses for packages and projects in the database during the scanning process, making them readily available for API routes without needing to iterate through all scan results.
Resolve #4607