-
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
Added createComponent to Extension interface #146
Added createComponent to Extension interface #146
Conversation
…n abstract class Signed-off-by: Ryan Bogan <[email protected]>
Will review this after createComponent workflow is merged and integrated. |
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.
Great start!
As you can see from my comments, you need to add the createComponents() to the interface and then implement (override) it here. You may not need all the same arguments as the plugins, but it's a reasonable start.
Then ExtensionsRunner will call this method during initialization, passing its own objects here.
src/main/java/org/opensearch/sdk/sample/helloworld/HelloWorldExtension.java
Show resolved
Hide resolved
src/test/java/org/opensearch/sdk/sample/helloworld/TestHelloWorldExtension.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[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.
LGTM but needs some followup in new issues.
src/main/java/org/opensearch/sdk/sample/helloworld/HelloWorldExtension.java
Show resolved
Hide resolved
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
…t#169) * Remove duplicate copies of registries in handlers Signed-off-by: Daniel Widdis <[email protected]> * Move ExtensionRestResponse to OpenSearch Signed-off-by: Daniel Widdis <[email protected]> * Add a POST request to parse content Signed-off-by: Daniel Widdis <[email protected]> * Add a DELETE request corresponding to the POST Signed-off-by: Daniel Widdis <[email protected]> * Add consumed params and content to Extension Responses Signed-off-by: Daniel Widdis <[email protected]> * Update tests and OpenAPI spec Signed-off-by: Daniel Widdis <[email protected]> Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
src/main/java/org/opensearch/sdk/sample/helloworld/HelloWorldExtension.java
Show resolved
Hide resolved
Signed-off-by: Ryan Bogan <[email protected]>
f2399fb
to
6eab1a5
Compare
…ava into create_component_extension_interface
* Added createComponent to Extension interface and created BaseExtension abstract class Signed-off-by: Ryan Bogan <[email protected]> * Fixed minor error Signed-off-by: Ryan Bogan <[email protected]> * Changed create component arguments Signed-off-by: Ryan Bogan <[email protected]> * Addressed PR Comments Signed-off-by: Ryan Bogan <[email protected]> * Fixed minor errors Signed-off-by: Ryan Bogan <[email protected]> * Return consumed params and content from extensions (opensearch-project#169) * Remove duplicate copies of registries in handlers Signed-off-by: Daniel Widdis <[email protected]> * Move ExtensionRestResponse to OpenSearch Signed-off-by: Daniel Widdis <[email protected]> * Add a POST request to parse content Signed-off-by: Daniel Widdis <[email protected]> * Add a DELETE request corresponding to the POST Signed-off-by: Daniel Widdis <[email protected]> * Add consumed params and content to Extension Responses Signed-off-by: Daniel Widdis <[email protected]> * Update tests and OpenAPI spec Signed-off-by: Daniel Widdis <[email protected]> Signed-off-by: Daniel Widdis <[email protected]> * Fixed minor errors Signed-off-by: Ryan Bogan <[email protected]> * Addressed PR Comments Signed-off-by: Ryan Bogan <[email protected]> Signed-off-by: Ryan Bogan <[email protected]> Signed-off-by: Daniel Widdis <[email protected]> Co-authored-by: Daniel Widdis <[email protected]>
Signed-off-by: Ryan Bogan [email protected]
Description
Adds createComponent to Extension interface and createsBaseExtension abstract class
Note: This is dependent on getSettings, so it will remain a draft PR for now.
Issues Resolved
#136
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.