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
docs: annotate properly settings and refer to autodoc from the README files #4084
docs: annotate properly settings and refer to autodoc from the README files #4084
Conversation
… files (eclipse-edc#3986) * avoid outdatedness of the documentation of config params in README files
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.
We are always happy to welcome new contributors ❤️ To make things easier for everyone, please make sure to follow our contribution guidelines, check if you have already signed the ECA, and relate this pull request to an existing issue or discussion.
/** | ||
* Provides support for reading data from an HTTP endpoint and sending data to an HTTP endpoint. | ||
*/ | ||
@Provides(HttpRequestParamsProvider.class) | ||
@Extension(value = DataPlaneHttpExtension.NAME) | ||
public class DataPlaneHttpExtension implements ServiceExtension { | ||
public static final String NAME = "Data Plane HTTP"; | ||
private static final int DEFAULT_PART_SIZE = 5; | ||
private static final String DEFAULT_PARTITION_SIZE = "5"; |
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.
Please don't chnage the type and parse it below. The annotation type system is more restrictive, so create another constant that converts the typed int value to a string.
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.
Don't think it's possible to create another constant which converts the typed int value to string like this:
private static final String DEFAULT_PARTITION_SIZE_STRING = String.valueOf(DEFAULT_PARTITION_SIZE);
because in @Setting
we have to use compile-time constant.
The other option would be to hardcode it like private static final String DEFAULT_PARTITION_SIZE_STRING = "5"
or directly put "5"
in the @Setting
but like this we still have double-maintenance problem.
(The usage of string and parsing to int I saw in CoreDefaultServicesExtension
for example).
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.
you can do DEFAULT_PART_SIZE + ""
to convert to string
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.
Done. Should I also go and fix similar doc/config/parse stuff in CoreDefaultServicesExtension
and other places throughout the project, to make it uniform? Or rather new issue(s) should be created, to avoid broad-scoped PR?
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.
I'm OK to include it here if the changes are small.
...c-api/src/main/java/org/eclipse/edc/connector/dataplane/api/DataPlanePublicApiExtension.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Jim Marino <jim.marino@gmail.com>
is this ready for review or still a draft? |
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #4084 +/- ##
==========================================
+ Coverage 71.74% 74.68% +2.93%
==========================================
Files 919 979 +60
Lines 18457 20087 +1630
Branches 1037 1131 +94
==========================================
+ Hits 13242 15002 +1760
+ Misses 4756 4591 -165
- Partials 459 494 +35 ☔ View full report in Codecov by Sentry. |
It's ready, two checks have failed though, one is for lack of PR label (i looked for a way to add |
I added the label, regarding the dependencies check, you can copy the output of the job from the github action console log and paste in your DEPENDECIES file, that will solve the problem. |
All done. Should I squash all of the commits into 1 after approvals before merging or the one who merges the PR will do that? |
it's not necessary because we will squash them at the merge. |
extensions/control-plane/transfer/transfer-data-plane/README.md
Outdated
Show resolved
Hide resolved
thanks |
What this PR changes/adds
@Setting
.@Setting
Why it does that
Further notes
Other configuration params not reported in the original issue were also corrected as described.
Linked Issue(s)
Closes #3986