-
Notifications
You must be signed in to change notification settings - Fork 256
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
refactor: make resource manifest generator handle TransferProcess #3979
Conversation
*/ | ||
|
||
boolean canGenerate(DataRequest dataRequest, DataAddress assetAddress, Policy policy); | ||
boolean canGenerate(TransferProcess transferProcess, DataAddress assetAddress, Policy policy); |
Check notice
Code scanning / CodeQL
Useless parameter Note
*/ | ||
|
||
boolean canGenerate(DataRequest dataRequest, DataAddress assetAddress, Policy policy); | ||
boolean canGenerate(TransferProcess transferProcess, DataAddress assetAddress, Policy policy); |
Check notice
Code scanning / CodeQL
Useless parameter Note
*/ | ||
@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
*/ | ||
@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
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ 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. |
46d485b
to
621aaff
Compare
…tead of DataRequest
621aaff
to
1e561b2
Compare
What this PR changes/adds
First refactoring step to inline
DataRequest
, makeResourceManifestGenerator
and relative consumer/provider interfaces to acceptTransferProcess
instead ofDataRequest
** Breaking change ** for those who implemented a custom
ConsumerResourceDefinitionGenerator
or aProviderResourceDefinitionGenerator
, pretty straightforward to adaptWhy 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.