Skip to content

Added createComponent to Extension interface#146

Merged
dbwiddis merged 12 commits intoopensearch-project:mainfrom
ryanbogan:create_component_extension_interface
Oct 12, 2022
Merged

Added createComponent to Extension interface#146
dbwiddis merged 12 commits intoopensearch-project:mainfrom
ryanbogan:create_component_extension_interface

Conversation

@ryanbogan
Copy link
Copy Markdown
Member

@ryanbogan ryanbogan commented Sep 16, 2022

Signed-off-by: Ryan Bogan rbogan@amazon.com

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.

…n abstract class

Signed-off-by: Ryan Bogan <rbogan@amazon.com>
@owaiskazi19
Copy link
Copy Markdown
Member

Will review this after createComponent workflow is merged and integrated.

Copy link
Copy Markdown
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.

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.

Signed-off-by: Ryan Bogan <rbogan@amazon.com>
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
@ryanbogan ryanbogan marked this pull request as ready for review October 5, 2022 17:14
@ryanbogan ryanbogan requested a review from a team October 5, 2022 17:14
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
dbwiddis
dbwiddis previously approved these changes Oct 6, 2022
Copy link
Copy Markdown
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 but needs some followup in new issues.

Signed-off-by: Ryan Bogan <rbogan@amazon.com>
ryanbogan and others added 4 commits October 10, 2022 15:54
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
…t#169)

* Remove duplicate copies of registries in handlers

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Move ExtensionRestResponse to OpenSearch

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add a POST request to parse content

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add a DELETE request corresponding to the POST

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add consumed params and content to Extension Responses

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Update tests and OpenAPI spec

Signed-off-by: Daniel Widdis <widdis@gmail.com>

Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
…ava into create_component_extension_interface
@dbwiddis dbwiddis merged commit fb90df4 into opensearch-project:main Oct 12, 2022
@dbwiddis dbwiddis mentioned this pull request Oct 12, 2022
@ryanbogan ryanbogan deleted the create_component_extension_interface branch October 12, 2022 16:14
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 17, 2023
* Added createComponent to Extension interface and created BaseExtension abstract class

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Fixed minor error

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Changed create component arguments

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Addressed PR Comments

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Fixed minor errors

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Return consumed params and content from extensions (opensearch-project#169)

* Remove duplicate copies of registries in handlers

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Move ExtensionRestResponse to OpenSearch

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add a POST request to parse content

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add a DELETE request corresponding to the POST

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add consumed params and content to Extension Responses

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Update tests and OpenAPI spec

Signed-off-by: Daniel Widdis <widdis@gmail.com>

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Fixed minor errors

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Addressed PR Comments

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

Signed-off-by: Ryan Bogan <rbogan@amazon.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Co-authored-by: Daniel Widdis <widdis@gmail.com>
caokyhieu pushed a commit to caokyhieu/opensearch-sdk-java that referenced this pull request Aug 15, 2025
* Added createComponent to Extension interface and created BaseExtension abstract class

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Fixed minor error

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Changed create component arguments

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Addressed PR Comments

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Fixed minor errors

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Return consumed params and content from extensions (opensearch-project#169)

* Remove duplicate copies of registries in handlers

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Move ExtensionRestResponse to OpenSearch

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add a POST request to parse content

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add a DELETE request corresponding to the POST

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add consumed params and content to Extension Responses

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Update tests and OpenAPI spec

Signed-off-by: Daniel Widdis <widdis@gmail.com>

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Fixed minor errors

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Addressed PR Comments

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

Signed-off-by: Ryan Bogan <rbogan@amazon.com>
Signed-off-by: Daniel Widdis <widdis@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.

3 participants