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: DPS API controller #3955

Conversation

paullatzelsperger
Copy link
Member

@paullatzelsperger paullatzelsperger commented Mar 4, 2024

What this PR changes/adds

Implements the DataPlaneSignalingApi

Why it does that

Briefly state why the change was necessary.

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.

Note this PR is an exact duplicate of #3951. I ran into some weird git/caching issue, so I had to recreate the PR.

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
@paullatzelsperger paullatzelsperger force-pushed the feat/dps_api_controller branch 2 times, most recently from 81bc493 to 5520ce7 Compare March 4, 2024 15:57
@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.33%. Comparing base (7f20ba5) to head (b68a320).
Report is 116 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    #3955      +/-   ##
==========================================
+ Coverage   71.74%   73.33%   +1.58%     
==========================================
  Files         919      958      +39     
  Lines       18457    19254     +797     
  Branches     1037     1089      +52     
==========================================
+ Hits        13242    14119     +877     
+ Misses       4756     4674      -82     
- Partials      459      461       +2     

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

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 Note

Variable 'DataFlowSuspendMessage msg' is never read.
@paullatzelsperger paullatzelsperger force-pushed the feat/dps_api_controller branch 4 times, most recently from 47909da to 2ac797d Compare March 4, 2024 17:31
@paullatzelsperger paullatzelsperger force-pushed the feat/dps_api_controller branch from 2ac797d to b68a320 Compare March 4, 2024 17:50
@paullatzelsperger
Copy link
Member Author

Merging as this PR is a duplicate of an already approved one.

@paullatzelsperger paullatzelsperger merged commit 818e1e0 into eclipse-edc:main Mar 4, 2024
17 checks passed
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
2 participants