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

Adding support for extension to register transport actions #164

Merged
merged 11 commits into from
Oct 10, 2022
Merged

Adding support for extension to register transport actions #164

merged 11 commits into from
Oct 10, 2022

Conversation

saratvemulapalli
Copy link
Member

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.

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>
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>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
@saratvemulapalli saratvemulapalli marked this pull request as ready for review September 29, 2022 22:59
@saratvemulapalli saratvemulapalli requested a review from a team September 29, 2022 22:59
@saratvemulapalli saratvemulapalli marked this pull request as draft September 29, 2022 22:59
dbwiddis
dbwiddis previously approved these changes Sep 30, 2022
Copy link
Member

@dbwiddis dbwiddis left a 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);
Copy link
Member

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.

owaiskazi19
owaiskazi19 previously approved these changes Sep 30, 2022
@saratvemulapalli
Copy link
Member Author

This PR is waiting on : opensearch-project/OpenSearch#4598

@dbwiddis dbwiddis dismissed stale reviews from owaiskazi19 and themself via f70658d October 10, 2022 04:53
Copy link
Member

@dbwiddis dbwiddis left a 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-commenter
Copy link

Codecov Report

Merging #164 (f70658d) into main (8fbcc6e) will decrease coverage by 0.21%.
The diff coverage is 50.00%.

@@             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              
Impacted Files Coverage Δ
src/main/java/org/opensearch/sdk/Extension.java 40.00% <0.00%> (-4.45%) ⬇️
...main/java/org/opensearch/sdk/TransportActions.java 81.81% <ø> (ø)
...main/java/org/opensearch/sdk/ExtensionsRunner.java 62.77% <50.00%> (-0.47%) ⬇️
...rch/sdk/handlers/ExtensionsInitRequestHandler.java 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@owaiskazi19 owaiskazi19 merged commit 34332b3 into opensearch-project:main Oct 10, 2022
@saratvemulapalli
Copy link
Member Author

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

Thanks @dbwiddis for resolving the conflicts.

kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 17, 2023
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants