-
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
Adding support for extension to register transport actions #164
Adding support for extension to register transport actions #164
Conversation
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
…aratvemulapalli/opensearch-sdk-java into tranport-action-for-helloworld
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
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.
Approved with a trivial suggestion that will probably make no difference in reality.
@@ -126,6 +121,7 @@ public ExtensionsRunner() throws IOException { | |||
.put(TransportSettings.PORT.getKey(), extensionSettings.getHostPort()) | |||
.build(); | |||
this.customSettings = Collections.emptyList(); | |||
this.transportActions = new TransportActions(Collections.EMPTY_MAP); |
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.
Prefer Collections.emptyMap()
here (which just wraps EMPTY_MAP
with an inferred <T>
cast) which is friendlier to code/IDEs and avoids downstream unchecked cast warnings.
This PR is waiting on : opensearch-project/OpenSearch#4598 |
into tranport-action-for-helloworld
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.
Resolved conflicts. This was previously approved by myself and @owaiskazi19 and needs to get merged ASAP as the build is broken and is blocking #172
Codecov Report
@@ Coverage Diff @@
## main #164 +/- ##
============================================
- Coverage 66.00% 65.79% -0.22%
Complexity 96 96
============================================
Files 25 25
Lines 456 459 +3
Branches 13 13
============================================
+ Hits 301 302 +1
- Misses 147 149 +2
Partials 8 8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Thanks @dbwiddis for resolving the conflicts. |
…h-project#164) * Adding support for extension to register transport actions Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> * Adding java doc Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> * Adding support for extension to register transport actions Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> * Rebasing Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> * Fixing gradle check and adding java docs Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> * Removed TransportAction Response Handler Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> * Fixing typo's Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> Co-authored-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Sarat Vemulapalli vemulapallisarat@gmail.com
Description
Adding support for hello world extension to write up custom transport actions.
Issues Resolved
#119
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.