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 transportservice request #167

Merged
merged 18 commits into from
Oct 6, 2022
Merged

Refactor transportservice request #167

merged 18 commits into from
Oct 6, 2022

Conversation

mloufra
Copy link
Contributor

@mloufra mloufra commented Oct 6, 2022

Description

Creating a new method sendGenericRequestWithExceptionHandling to handle the duplicate code for transport request method sendClusterStateRequest, sendClusterSettingsRequest, sendLocalNodeRequest.

Issues Resolved

#116

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.

mloufra and others added 18 commits August 26, 2022 16:43
Signed-off-by: mloufra <[email protected]>
Signed-off-by: mloufra <[email protected]>
@mloufra mloufra marked this pull request as ready for review October 6, 2022 18:28
@mloufra mloufra requested a review from a team October 6, 2022 18:28
@codecov-commenter
Copy link

Codecov Report

Merging #167 (0a75f0b) into main (8822d95) will increase coverage by 0.20%.
The diff coverage is 77.77%.

@@             Coverage Diff              @@
##               main     #167      +/-   ##
============================================
+ Coverage     65.80%   66.00%   +0.20%     
- Complexity       95       96       +1     
============================================
  Files            25       25              
  Lines           465      456       -9     
  Branches         13       13              
============================================
- Hits            306      301       -5     
+ Misses          151      147       -4     
  Partials          8        8              
Impacted Files Coverage Δ
...main/java/org/opensearch/sdk/ExtensionsRunner.java 63.23% <77.77%> (+0.47%) ⬆️

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

@vibrantvarun vibrantvarun self-requested a review October 6, 2022 19:09
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.

LGTM!

Copy link
Member

@vibrantvarun vibrantvarun left a comment

Choose a reason for hiding this comment

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

Does the methods implemented below, have been tested by either mocking them or passing the dummy objects on the local machine, in order to ensure the right execution of it?

@mloufra mloufra merged commit 8fbcc6e into opensearch-project:main Oct 6, 2022
@mloufra mloufra deleted the refactor-transportservice branch October 6, 2022 23:05
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 17, 2023
* issue opensearch-project#28

Signed-off-by: mloufra <[email protected]>

* Update the lastest coomit

Signed-off-by: mloufra <[email protected]>

* Rename the method and fix the conflict

Signed-off-by: mloufra <[email protected]>

* fix merge conflict

Signed-off-by: mloufra <[email protected]>

* Add code coverage report

Signed-off-by: mloufra <[email protected]>

* Rebase the lastest commit

Signed-off-by: mloufra <[email protected]>

* update the lastest commit

Signed-off-by: mloufra <[email protected]>

* Refactor transportService request

Signed-off-by: mloufra <[email protected]>

* delete transportService object change

Signed-off-by: mloufra <[email protected]>

Signed-off-by: mloufra <[email protected]>
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.

4 participants