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: implement DataPlaneSignalingAPI #3951

Conversation

paullatzelsperger
Copy link
Member

@paullatzelsperger paullatzelsperger commented Mar 4, 2024

What this PR changes/adds

This PR implements the actual API controller of the Signaling API that delegates down to collaborator services

Why it does that

Full functionality of the signaling API

Further notes

  • terminating DataFlows for which no source was found, is now possible. Previously that would have resulted in a failure.
  • terminating DataFlows now takes an optional reason argument that gets persisted in the data flow entity.

Linked Issue(s)

Closes #3911

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

@paullatzelsperger paullatzelsperger added enhancement New feature or request api Feature related to the (REST) api dpf Feature related to the Data Plane Framework labels Mar 4, 2024
Comment on lines +111 to +113
var msg = typeTransformerRegistry.transform(suspendMessage, DataFlowSuspendMessage.class)
.onFailure(f -> monitor.warning("Error transforming %s: %s".formatted(DataFlowSuspendMessage.class, f.getFailureDetail())))
.orElseThrow(InvalidRequestException::new);

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'DataFlowSuspendMessage msg' is never read.
@codecov-commenter
Copy link

codecov-commenter commented Mar 4, 2024

Codecov Report

Attention: Patch coverage is 78.87324% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 73.32%. Comparing base (7f20ba5) to head (1457529).
Report is 115 commits behind head on main.

Files Patch % Lines
.../eclipse/edc/connector/dataplane/spi/DataFlow.java 0.00% 5 Missing ⚠️
...figuration/SignalingApiConfigurationExtension.java 50.00% 2 Missing ⚠️
.../dataplane/api/DataPlaneSignalingApiExtension.java 0.00% 2 Missing ⚠️
...controller/v1/DataPlaneSignalingApiController.java 94.59% 1 Missing and 1 partial ⚠️
.../eclipse/edc/connector/dataplane/spi/Endpoint.java 0.00% 2 Missing ⚠️
.../api/controller/DataPlaneControlApiController.java 0.00% 1 Missing ⚠️
...nector/dataplane/spi/manager/DataPlaneManager.java 0.00% 1 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3951      +/-   ##
==========================================
+ Coverage   71.74%   73.32%   +1.57%     
==========================================
  Files         919      958      +39     
  Lines       18457    19233     +776     
  Branches     1037     1087      +50     
==========================================
+ Hits        13242    14102     +860     
+ Misses       4756     4670      -86     
- Partials      459      461       +2     

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

@paullatzelsperger paullatzelsperger force-pushed the feat/3911_implement_signaling_api_controller branch from f1f45f5 to e7a79ad Compare March 4, 2024 14:27
@paullatzelsperger paullatzelsperger deleted the feat/3911_implement_signaling_api_controller branch March 4, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Feature related to the (REST) api dpf Feature related to the Data Plane Framework enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DPS: implement the Data plane Signaling API
4 participants