-
Notifications
You must be signed in to change notification settings - Fork 246
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
chore: deprecate provider_id field in ContractRequest #3948
chore: deprecate provider_id field in ContractRequest #3948
Conversation
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.
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.
hey @Pluci I think the objective here would be not just to deprecate a constant, but also update the api spec (currently that field is mandatory on the management api) and also remove the providerId
field from the ContractRequest
POJO and ensure that the information is extracted from the enclosed policy
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 #3948 +/- ##
==========================================
- Coverage 71.74% 65.42% -6.32%
==========================================
Files 919 976 +57
Lines 18457 19706 +1249
Branches 1037 1107 +70
==========================================
- Hits 13242 12893 -349
- Misses 4756 6377 +1621
+ Partials 459 436 -23 ☔ View full report in Codecov by Sentry. |
hi @ndr-brt, thank you for the suggestions. I'm going to fix those as well. |
...ava/org/eclipse/edc/connector/api/management/contractnegotiation/ContractNegotiationApi.java
Outdated
Show resolved
Hide resolved
...tor/api/management/contractnegotiation/transform/JsonObjectToContractRequestTransformer.java
Show resolved
Hide resolved
.../src/main/java/org/eclipse/edc/connector/contract/spi/types/negotiation/ContractRequest.java
Show resolved
Hide resolved
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.
already mergeable, I will wait for the validator refactor and the dependencies file fix
…dator for the deprecated fields
...n/validator-core/src/main/java/org/eclipse/edc/validator/jsonobject/JsonObjectValidator.java
Fixed
Show fixed
Hide fixed
...n/validator-core/src/main/java/org/eclipse/edc/validator/jsonobject/JsonObjectValidator.java
Fixed
Show fixed
Hide fixed
...n/validator-core/src/main/java/org/eclipse/edc/validator/jsonobject/JsonObjectValidator.java
Outdated
Show resolved
Hide resolved
…rt LogDeprecatedValue" This reverts commit b3cdbbc.
… validator's verify method
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.
2 nits, please fix checkstyle issues and dependecies file and we'll be ready to go 👍
...r-core/src/main/java/org/eclipse/edc/validator/jsonobject/validators/LogDeprecatedValue.java
Outdated
Show resolved
Hide resolved
...r-core/src/main/java/org/eclipse/edc/validator/jsonobject/validators/LogDeprecatedValue.java
Outdated
Show resolved
Hide resolved
…cumentation in regard to LogDeprecatedValue
The failing unit test is working fine in the local environment, so I have no idea why it's failing on the CI/CD pipeline. |
sincerely I got no clue, also on my machine it works correctly, anyway, please try to change line 80 of that test this way: |
…ocol is not blank
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.
LGTM
What this PR changes/adds
Deprecated provider_id field in ContractRequest
Why it does that
Clean up.
Linked Issue(s)
Closes #3929
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.