Skip to content
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

LicenseClassifications: Exclude properties from serialization #5882

Merged
merged 3 commits into from
Sep 29, 2022

Conversation

fviernau
Copy link
Member

See individual commits.

This enables using the serialization in oss-review-toolkit/ort-config#59.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Signed-off-by: Frank Viernau <frank_viernau@epam.com>
A `license-classifications.yml` is supposed to contain only the
two properties defined in the constructor of the class. So, exclude all
other properties from serialization.

Note that just `@JsonIgnore` cannot be used instead of
`@get:JsonIgnore`, as that causes a compile error, see [1].

[1] FasterXML/jackson-module-kotlin#25

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
@fviernau fviernau requested a review from a team as a code owner September 29, 2022 09:13
@fviernau fviernau enabled auto-merge (rebase) September 29, 2022 09:16
@codecov
Copy link

codecov bot commented Sep 29, 2022

Codecov Report

Base: 67.87% // Head: 57.92% // Decreases project coverage by -9.94% ⚠️

Coverage data is based on head (6b5894d) compared to base (a1d83f0).
Patch coverage: 55.07% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5882      +/-   ##
============================================
- Coverage     67.87%   57.92%   -9.95%     
- Complexity     2172     2265      +93     
============================================
  Files           272      329      +57     
  Lines         15984    19119    +3135     
  Branches       2870     3753     +883     
============================================
+ Hits          10849    11075     +226     
- Misses         3994     6896    +2902     
- Partials       1141     1148       +7     
Flag Coverage Δ
funTest-analyzer-docker 74.75% <67.76%> (+0.29%) ⬆️
funTest-non-analyzer 46.24% <42.92%> (+0.11%) ⬆️
test 27.94% <34.48%> (-4.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
advisor/src/main/kotlin/advisors/NexusIq.kt 0.00% <ø> (ø)
advisor/src/main/kotlin/advisors/OssIndex.kt 87.23% <ø> (ø)
.../curation/ClearlyDefinedPackageCurationProvider.kt 46.42% <0.00%> (+3.57%) ⬆️
...in/kotlin/curation/Sw360PackageCurationProvider.kt 0.00% <0.00%> (ø)
analyzer/src/main/kotlin/managers/Bundler.kt 51.92% <0.00%> (ø)
analyzer/src/main/kotlin/managers/Cargo.kt 58.37% <0.00%> (-28.77%) ⬇️
analyzer/src/main/kotlin/managers/GoDep.kt 56.84% <ø> (-1.86%) ⬇️
analyzer/src/main/kotlin/managers/GoMod.kt 60.66% <ø> (-1.24%) ⬇️
analyzer/src/main/kotlin/managers/Gradle.kt 49.39% <ø> (-7.95%) ⬇️
analyzer/src/main/kotlin/managers/Maven.kt 56.32% <0.00%> (-24.01%) ⬇️
... and 254 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fviernau fviernau merged commit e8c786d into main Sep 29, 2022
@fviernau fviernau deleted the fix-license-classification-serialization branch September 29, 2022 10:14
fviernau added a commit to oss-review-toolkit/ort-config that referenced this pull request Sep 29, 2022
This revision has the fix for serializing license classifications, see
oss-review-toolkit/ort#5882.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
fviernau added a commit to oss-review-toolkit/ort-config that referenced this pull request Oct 10, 2022
This revision has the fix for serializing license classifications, see
oss-review-toolkit/ort#5882.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
fviernau added a commit to oss-review-toolkit/ort-config that referenced this pull request Oct 10, 2022
This revision has the fix for serializing license classifications, see
oss-review-toolkit/ort#5882.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants