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

refactor: make resource manifest generator handle TransferProcess #3979

Merged

Conversation

ndr-brt
Copy link
Member

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

What this PR changes/adds

First refactoring step to inline DataRequest, make ResourceManifestGenerator and relative consumer/provider interfaces to accept TransferProcess instead of DataRequest
** Breaking change ** for those who implemented a custom ConsumerResourceDefinitionGenerator or a ProviderResourceDefinitionGenerator, pretty straightforward to adapt

Why it does that

refactoring

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)

Part of #3732

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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@ndr-brt ndr-brt added refactoring Cleaning up code and dependencies breaking-change Will require manual intervention for version update labels Mar 8, 2024
@ndr-brt ndr-brt requested a review from wolf4ood March 8, 2024 08:25
*/

boolean canGenerate(DataRequest dataRequest, DataAddress assetAddress, Policy policy);
boolean canGenerate(TransferProcess transferProcess, DataAddress assetAddress, Policy policy);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'transferProcess' is never used.
*/

boolean canGenerate(DataRequest dataRequest, DataAddress assetAddress, Policy policy);
boolean canGenerate(TransferProcess transferProcess, DataAddress assetAddress, Policy policy);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'policy' is never used.
*/
@Nullable
ResourceDefinition generate(DataRequest dataRequest, DataAddress assetAddress, Policy policy);
ResourceDefinition generate(TransferProcess transferProcess, DataAddress assetAddress, Policy policy);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'assetAddress' is never used.
*/
@Nullable
ResourceDefinition generate(DataRequest dataRequest, DataAddress assetAddress, Policy policy);
ResourceDefinition generate(TransferProcess transferProcess, DataAddress assetAddress, Policy policy);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'policy' is never used.
@codecov-commenter
Copy link

codecov-commenter commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.39%. Comparing base (7f20ba5) to head (1e561b2).
Report is 126 commits behind head on main.

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3979      +/-   ##
==========================================
+ Coverage   71.74%   73.39%   +1.64%     
==========================================
  Files         919      961      +42     
  Lines       18457    19392     +935     
  Branches     1037     1093      +56     
==========================================
+ Hits        13242    14232     +990     
+ Misses       4756     4696      -60     
- Partials      459      464       +5     

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

@ndr-brt ndr-brt changed the title 3732 purge data request part one refactor: make resource manifest generator handle TransferProcess Mar 8, 2024
@ndr-brt ndr-brt force-pushed the 3732-purge-data-request-part-one branch from 46d485b to 621aaff Compare March 8, 2024 08:45

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…tead of DataRequest
@ndr-brt ndr-brt force-pushed the 3732-purge-data-request-part-one branch from 621aaff to 1e561b2 Compare March 8, 2024 08:59
@ndr-brt ndr-brt merged commit 2887028 into eclipse-edc:main Mar 8, 2024
17 checks passed
@ndr-brt ndr-brt deleted the 3732-purge-data-request-part-one branch March 8, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Will require manual intervention for version update refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants