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

feat: bring back the custom DataSink overload #3627

Conversation

paullatzelsperger
Copy link
Member

What this PR changes/adds

This PR brings back the overloaded method in the DataPlaneManager that takes a DataSink parameter.
If specified, the DataPlaneManager(Impl) will immediately delegate to the PipelineService.

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.

@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (fa978df) 71.78% compared to head (5dbad32) 71.76%.

Files Patch % Lines
...aplane/framework/pipeline/PipelineServiceImpl.java 12.50% 7 Missing ⚠️

❗ 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.
📢 Have feedback on the report? Share it here.

@paullatzelsperger paullatzelsperger marked this pull request as ready for review November 20, 2023 07:29
@paullatzelsperger paullatzelsperger marked this pull request as draft November 20, 2023 08:07
@paullatzelsperger paullatzelsperger marked this pull request as ready for review November 20, 2023 09:38
@paullatzelsperger paullatzelsperger force-pushed the feat/bring_back_custom_sink branch 4 times, most recently from 3d5ccc9 to 85e86c1 Compare November 20, 2023 10:27
@paullatzelsperger paullatzelsperger force-pushed the feat/bring_back_custom_sink branch from 85e86c1 to 5dbf964 Compare November 20, 2023 10:27
* @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);
Copy link
Member

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?

@paullatzelsperger paullatzelsperger merged commit c9e23ec into eclipse-edc:main Nov 20, 2023
16 checks passed
@paullatzelsperger paullatzelsperger deleted the feat/bring_back_custom_sink branch November 20, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants