Skip to content

[Feature/extensions] Adding support for Extension Create Components [environment settings and add setting update consumers]#4517

Merged
owaiskazi19 merged 26 commits intoopensearch-project:feature/extensionsfrom
joshpalis:create-components
Sep 23, 2022
Merged

[Feature/extensions] Adding support for Extension Create Components [environment settings and add setting update consumers]#4517
owaiskazi19 merged 26 commits intoopensearch-project:feature/extensionsfrom
joshpalis:create-components

Conversation

@joshpalis
Copy link
Copy Markdown
Member

@joshpalis joshpalis commented Sep 14, 2022

Description

Adds support for extensions to request environment setting values from opensearch, to add setting update consumers to cluster settings, and to receive update setting requests from Opensearch whenever a setting is updated.

Companion PR : opensearch-project/opensearch-sdk-java#138

Note : Currently in a draft state until opensearch-project/opensearch-sdk-java#79 is resolved

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

…dated unit tests

Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
…er settings from which they would like to retrieve values for

Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
…Draft, as getSettings support still needs to be finalized

Signed-off-by: Joshua Palis <jpalis@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 14, 2022

Codecov Report

Merging #4517 (26362e4) into feature/extensions (edde6a4) will increase coverage by 0.00%.
The diff coverage is 79.35%.

@@                  Coverage Diff                   @@
##             feature/extensions    #4517    +/-   ##
======================================================
  Coverage                 70.57%   70.58%            
- Complexity                57370    57523   +153     
======================================================
  Files                      4642     4650     +8     
  Lines                    276302   276603   +301     
  Branches                  40389    40422    +33     
======================================================
+ Hits                     195012   195246   +234     
- Misses                    64936    65067   +131     
+ Partials                  16354    16290    -64     
Impacted Files Coverage Δ
...arch/extensions/UpdateSettingsResponseHandler.java 0.00% <0.00%> (ø)
.../opensearch/extensions/ExtensionsOrchestrator.java 69.84% <61.29%> (+3.37%) ⬆️
...g/opensearch/extensions/UpdateSettingsRequest.java 63.33% <63.33%> (ø)
...h/extensions/AddSettingsUpdateConsumerRequest.java 75.75% <75.75%> (ø)
...nsearch/extensions/EnvironmentSettingsRequest.java 76.00% <76.00%> (ø)
...nsions/settings/RegisterCustomSettingsRequest.java 78.57% <78.57%> (ø)
...rg/opensearch/env/EnvironmentSettingsResponse.java 80.00% <80.00%> (ø)
...g/opensearch/common/settings/WriteableSetting.java 93.63% <93.63%> (ø)
...opensearch/extensions/ExtensionStringResponse.java 100.00% <100.00%> (ø)
...rch/extensions/rest/RestActionsRequestHandler.java 100.00% <100.00%> (ø)
... and 506 more

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

…tion

Signed-off-by: Joshua Palis <jpalis@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Joshua Palis <jpalis@amazon.com>
…rder to make this setting object source clear

Signed-off-by: Joshua Palis <jpalis@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

@joshpalis joshpalis changed the title Adding support for Extension Create Components [environment settings and add setting update consumers] [Feature/extensions] Adding support for Extension Create Components [environment settings and add setting update consumers] Sep 16, 2022
Signed-off-by: Joshua Palis <jpalis@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

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.

Existing code LGTM with one inline comment.

The Request and Response objects with writeTo methods and constructors from InputStreams need test classes. Should be a few examples of the pattern (instantiate with the constructor with objects, then writeTo a byte stream and construct from that byte stream and verify equality.

@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Joshua Palis <jpalis@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

@joshpalis joshpalis requested a review from dbwiddis September 20, 2022 18:10
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

… the issue

Re-run gradle check
Signed-off-by: Joshua Palis <jpalis@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Joshua Palis <jpalis@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

Copy link
Copy Markdown
Member

@owaiskazi19 owaiskazi19 left a comment

Choose a reason for hiding this comment

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

A small comment. Rest LGTM!

@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

@joshpalis joshpalis requested review from saratvemulapalli and removed request for saratvemulapalli September 23, 2022 15:41
Signed-off-by: Joshua Palis <jpalis@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

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