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

fix: @Setting annotations placement #4024

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Mar 19, 2024

What this PR changes/adds

Puts all the @Setting annotation into classes that implements SystemExtension

Why it does that

improve autodoc and fix compilation

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Linked Issue(s)

Closes # <-- insert Issue number if one exists

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt added documentation Improvements or additions to documentation build Anything related to the CI/CD Pipeline on Github Actions labels Mar 19, 2024
@ndr-brt ndr-brt requested a review from wolf4ood March 19, 2024 12:40
@@ -54,7 +56,7 @@

@Provider(isDefault = true)
public ConsumerPullTokenExpirationDateFunction tokenExpirationDateFunction(ServiceExtensionContext context) {
var validity = context.getSetting(TOKEN_VALIDITY_SECONDS, DEFAULT_TOKEN_VALIDITY_SECONDS);
var validity = context.getSetting(TOKEN_VALIDITY_SECONDS, Integer.parseInt(DEFAULT_TOKEN_VALIDITY_SECONDS));

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 96.89922% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 73.67%. Comparing base (7f20ba5) to head (aa7364d).
Report is 154 commits behind head on main.

Files Patch % Lines
...e/edc/connector/core/base/OkHttpClientFactory.java 83.33% 0 Missing and 1 partial ⚠️
...a/org/eclipse/edc/iam/did/web/WebDidExtension.java 0.00% 1 Missing ⚠️
...action/atomikos/DataSourceConfigurationParser.java 93.33% 1 Missing ⚠️
...ane/TransferDataPlaneDefaultServicesExtension.java 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4024      +/-   ##
==========================================
+ Coverage   71.74%   73.67%   +1.92%     
==========================================
  Files         919      985      +66     
  Lines       18457    19948    +1491     
  Branches     1037     1117      +80     
==========================================
+ Hits        13242    14696    +1454     
- Misses       4756     4776      +20     
- Partials      459      476      +17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ndr-brt ndr-brt merged commit 1055dac into eclipse-edc:main Mar 19, 2024
16 checks passed
@ndr-brt ndr-brt deleted the fix-settings branch March 19, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Anything related to the CI/CD Pipeline on Github Actions documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants