-
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
Add sample for validator #421
Add sample for validator #421
Conversation
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.
Good start, see comments inline.
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
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
src/main/java/org/opensearch/sdk/sample/helloworld/ExampleCustomSettingConfig.java
Outdated
Show resolved
Hide resolved
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 (pending merge on opensearch side) but one improvement suggested.
src/main/java/org/opensearch/sdk/sample/helloworld/ExampleCustomSettingConfig.java
Outdated
Show resolved
Hide resolved
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.
Small nits. Rest LGTM!
src/main/java/org/opensearch/sdk/sample/helloworld/ExampleCustomSettingConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/sdk/sample/helloworld/ExampleCustomSettingConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/sdk/sample/helloworld/HelloWorldExtension.java
Show resolved
Hide resolved
15367b9
to
3c0b93b
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 (don't merge until OS #6221 is merged)
3c0b93b
to
2d031f0
Compare
@mloufra Can you rebase this PR with main? |
Signed-off-by: Frank Lou <[email protected]>
Signed-off-by: Frank Lou <[email protected]>
Signed-off-by: Frank Lou <[email protected]>
Signed-off-by: Frank Lou <[email protected]>
Signed-off-by: Frank Lou <[email protected]>
Signed-off-by: Frank Lou <[email protected]>
Signed-off-by: Frank Lou <[email protected]>
Signed-off-by: Frank Lou <[email protected]>
2d031f0
to
d681330
Compare
Done |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #421 +/- ##
============================================
- Coverage 67.90% 67.67% -0.24%
Complexity 200 200
============================================
Files 35 36 +1
Lines 860 863 +3
Branches 26 26
============================================
Hits 584 584
- Misses 266 269 +3
Partials 10 10
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
* add sample for validator Signed-off-by: Frank Lou <[email protected]> * addressing comment Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * add test Signed-off-by: Frank Lou <[email protected]> * add test case for validator Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * fix merge conflict Signed-off-by: Frank Lou <[email protected]> --------- Signed-off-by: Frank Lou <[email protected]> (cherry picked from commit 0da23e1) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* add sample for validator * addressing comment * address comment * add test * add test case for validator * address comment * address comment * fix merge conflict --------- (cherry picked from commit 0da23e1) Signed-off-by: Frank Lou <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* add sample for validator Signed-off-by: Frank Lou <[email protected]> * addressing comment Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * add test Signed-off-by: Frank Lou <[email protected]> * add test case for validator Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * fix merge conflict Signed-off-by: Frank Lou <[email protected]> --------- Signed-off-by: Frank Lou <[email protected]> Signed-off-by: Nurym <[email protected]>
* add sample for validator Signed-off-by: Frank Lou <[email protected]> * addressing comment Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * add test Signed-off-by: Frank Lou <[email protected]> * add test case for validator Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * fix merge conflict Signed-off-by: Frank Lou <[email protected]> --------- Signed-off-by: Frank Lou <[email protected]> Signed-off-by: Kuanysh <[email protected]>
* add sample for validator Signed-off-by: Frank Lou <[email protected]> * addressing comment Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * add test Signed-off-by: Frank Lou <[email protected]> * add test case for validator Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * address comment Signed-off-by: Frank Lou <[email protected]> * fix merge conflict Signed-off-by: Frank Lou <[email protected]> --------- Signed-off-by: Frank Lou <[email protected]> Signed-off-by: Nurym <[email protected]>
Signed-off-by: Frank Lou [email protected]
Description
Create a sample Setting in Hello World Extension package, and using the RegexValidator form the Setting on Opensearch side the validate the value of sample Setting.
Needs OS #6221 to be merged first.
Issues Resolved
Fixes #350
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.