-
Notifications
You must be signed in to change notification settings - Fork 58
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
Create SDKRestClient wrapper class around RestHighLevelClient #367
Create SDKRestClient wrapper class around RestHighLevelClient #367
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #367 +/- ##
============================================
+ Coverage 69.35% 70.89% +1.53%
- Complexity 126 128 +2
============================================
Files 27 27
Lines 558 584 +26
Branches 15 15
============================================
+ Hits 387 414 +27
Misses 162 162
+ Partials 9 8 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Daniel Widdis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits. This wrapper class would definitely ease the migration for a plugin to an extension. Thanks @dbwiddis for this!
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
* RestHighLevelClient Wrapper Signed-off-by: Daniel Widdis <[email protected]> * Address code review comments Signed-off-by: Daniel Widdis <[email protected]> * Add admin method returning the underlying SDKClient Signed-off-by: Daniel Widdis <[email protected]> --------- Signed-off-by: Daniel Widdis <[email protected]> (cherry picked from commit 6f26cae) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…408) * RestHighLevelClient Wrapper * Address code review comments * Add admin method returning the underlying SDKClient --------- (cherry picked from commit 6f26cae) Signed-off-by: Daniel Widdis <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…arch-project#367) * RestHighLevelClient Wrapper Signed-off-by: Daniel Widdis <[email protected]> * Address code review comments Signed-off-by: Daniel Widdis <[email protected]> * Add admin method returning the underlying SDKClient Signed-off-by: Daniel Widdis <[email protected]> --------- Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis [email protected]
Description
Creates a wrapper class translating the
Client
class method signatures toRestHighLevelClient
methods. Existing code making the various REST calls does not need to change (mostly) except for:Massively speeds the process of migrating existing plugins.
Notes:
Client
interface, to minimize the (deprecated) footprint to what is necessaryIssues Resolved
Part of #353
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.