-
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
refactor(api): move data plane select functionality to control api #4189
refactor(api): move data plane select functionality to control api #4189
Conversation
DataPlaneInstance select(DataAddress source, DataAddress destination, @Nullable String selectionStrategy, @Nullable String transferType); | ||
|
||
@Deprecated(since = "0.6.4") | ||
default DataPlaneInstance select(DataAddress source, DataAddress destination, @Nullable String selectionStrategy, @Nullable String transferType) { |
Check notice
Code scanning / CodeQL
Useless parameter Note
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #4189 +/- ##
==========================================
+ Coverage 71.74% 74.99% +3.25%
==========================================
Files 919 1015 +96
Lines 18457 20631 +2174
Branches 1037 1161 +124
==========================================
+ Hits 13242 15473 +2231
+ Misses 4756 4651 -105
- Partials 459 507 +48 ☔ View full report in Codecov by Sentry. |
d7bad75
to
1044d45
Compare
1044d45
to
1833335
Compare
What this PR changes/adds
Add
select
andgetAll
functionality to dataplane selectorcontrol-api
, and deprecateselect
on themanagement-api
Why it does that
Separation of responsibilities.
Further notes
DataPlaneSelectorService
returnServiceResult
, this makes the interaction of theRemote
implementation more consistent, because there could be situations (unlike with theEmbedded
one) where the communication with the server fails.destination
from the dataplane selection request, because it is not really necessary (source and transferType are enough)DataPlaneSignalingFlowController
I left a TODO for a refactoring about the way the DataPlaneClient is created (in my opinion dataplaneselection should be encapsulated in the factory, so the condition "is data plane embedded" will be more explicit and testableLinked Issue(s)
Closes #4177
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.