-
Notifications
You must be signed in to change notification settings - Fork 245
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
feat: bring back the custom DataSink overload #3627
feat: bring back the custom DataSink overload #3627
Conversation
...rc/main/java/org/eclipse/edc/connector/dataplane/framework/manager/DataPlaneManagerImpl.java
Fixed
Show fixed
Hide fixed
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3627 +/- ##
==========================================
- Coverage 71.78% 71.76% -0.03%
==========================================
Files 909 909
Lines 18134 18144 +10
Branches 1033 1033
==========================================
+ Hits 13018 13021 +3
- Misses 4672 4679 +7
Partials 444 444 ☔ View full report in Codecov by Sentry. |
3d5ccc9
to
85e86c1
Compare
85e86c1
to
5dbf964
Compare
* @param sink The data sink that will receive the transferred data. | ||
* @return A CompletableFuture wrapping a StreamResult indicating the success or failure of the transfer. | ||
*/ | ||
CompletableFuture<StreamResult<Object>> transfer(DataFlowRequest request, DataSink sink); |
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.
Shouldn't this be moved down on PipelineService
interface?
What this PR changes/adds
This PR brings back the overloaded method in the
DataPlaneManager
that takes aDataSink
parameter.If specified, the
DataPlaneManager
(Impl
) will immediately delegate to thePipelineService
.This effectively restores the behaviour before #3486
Why it does that
For streaming, e.g. HTTP, we need to be able to supply just any random data sink
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.