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

refactor: make DataPlanePublicApiController use PipelineService #3630

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Nov 20, 2023

What this PR changes/adds

Make DataPlanePublicApiController go directly through PipelineService instead of passing through DataPlaneManager

Why it does that

avoid useless indirection

Further notes

  • refactored tests

Linked Issue(s)

Closes #3629

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

@ndr-brt ndr-brt added the refactoring Cleaning up code and dependencies label Nov 20, 2023
@@ -67,6 +65,9 @@ public class DataPlaneApiExtension implements ServiceExtension {
@Inject
private DataPlaneManager dataPlaneManager;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, because it is used by DataPlaneControlApiController

@codecov-commenter
Copy link

Codecov Report

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

Comparison is base (98cd0ec) 71.78% compared to head (e521590) 71.68%.
Report is 1 commits behind head on main.

Files Patch % Lines
...connector/dataplane/api/DataPlaneApiExtension.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    #3630      +/-   ##
==========================================
- Coverage   71.78%   71.68%   -0.10%     
==========================================
  Files         909      909              
  Lines       18134    18127       -7     
  Branches     1033     1032       -1     
==========================================
- Hits        13018    12995      -23     
- Misses       4672     4688      +16     
  Partials      444      444              

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

@ndr-brt ndr-brt force-pushed the 3629-make-public-controller-use-pipeline-service branch from e521590 to 8a2aa3e Compare November 20, 2023 11:23
@ndr-brt ndr-brt merged commit 8fb17e3 into eclipse-edc:main Nov 20, 2023
17 checks passed
@ndr-brt ndr-brt deleted the 3629-make-public-controller-use-pipeline-service branch November 20, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: make DataPlanePublicApiController use PipelineService
5 participants