-
Notifications
You must be signed in to change notification settings - Fork 59
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
Move extension settings reading into the BaseExtension #205
Move extension settings reading into the BaseExtension #205
Conversation
Codecov Report
@@ Coverage Diff @@
## main #205 +/- ##
=========================================
Coverage 65.86% 65.86%
Complexity 103 103
=========================================
Files 25 25
Lines 501 501
Branches 17 17
=========================================
Hits 330 330
Misses 159 159
Partials 12 12
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Looking good! A few more tweaks needed!
src/main/java/org/opensearch/sdk/sample/helloworld/HelloWorldExtension.java
Show resolved
Hide resolved
src/main/java/org/opensearch/sdk/sample/helloworld/HelloWorldExtension.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/sdk/sample/helloworld/HelloWorldExtension.java
Outdated
Show resolved
Hide resolved
Thank you for you comment @dbwiddis |
2c4311a
to
b71a1b5
Compare
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.
LGTM! Great job, I think this will really simplify the experience for users!
@owaiskazi19 FYI, once this is merged you may want to simplify the AD Extension constructor as well.
@dbwiddis can you resolve the comments if they look good to you? Also, let's hold merging this until we fix the build error |
Done. |
Signed-off-by: mloufra <[email protected]>
Signed-off-by: mloufra <[email protected]>
Signed-off-by: mloufra <[email protected]>
Signed-off-by: mloufra <[email protected]>
Signed-off-by: mloufra <[email protected]>
Signed-off-by: mloufra <[email protected]>
b71a1b5
to
51a0e23
Compare
@dbwiddis I'll let you merge this one based on the sequence to avoid merge conflicts |
…oject#205) * move extensionSetting to BaseExtension Signed-off-by: mloufra <[email protected]> * address comment Signed-off-by: mloufra <[email protected]> * address comment Signed-off-by: mloufra <[email protected]> * fix spotless error Signed-off-by: mloufra <[email protected]> * fix setting initialization error Signed-off-by: mloufra <[email protected]> * add new constructor in BaseExtensions Signed-off-by: mloufra <[email protected]> Signed-off-by: mloufra <[email protected]>
Signed-off-by: mloufra [email protected]
Description
Move the
extensionSettings
field and the initialization in the constructor and all the exception handling inHelloWorldExtension
toBaseExtension
.Issues Resolved
Fixes #182
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.