Skip to content
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

Merged
merged 8 commits into from
Mar 10, 2023

Conversation

mloufra
Copy link
Contributor

@mloufra mloufra commented Feb 7, 2023

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.

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

Good start, see comments inline.

@mloufra mloufra changed the title add sample for validator Add sample for validator Feb 8, 2023
@mloufra mloufra requested a review from dbwiddis February 9, 2023 17:20
@mloufra mloufra marked this pull request as ready for review February 9, 2023 17:21
dbwiddis
dbwiddis previously approved these changes Feb 16, 2023
Copy link
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 (pending merge on opensearch side) but one improvement suggested.

owaiskazi19
owaiskazi19 previously approved these changes Feb 17, 2023
Copy link
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.

Small nits. Rest LGTM!

dbwiddis
dbwiddis previously approved these changes Feb 26, 2023
Copy link
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 (don't merge until OS #6221 is merged)

@ryanbogan
Copy link
Member

@mloufra Can you rebase this PR with main?

mloufra added 8 commits March 10, 2023 21:33
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]>
@mloufra mloufra force-pushed the sample-custom-setting branch from 2d031f0 to d681330 Compare March 10, 2023 21:33
@mloufra
Copy link
Contributor Author

mloufra commented Mar 10, 2023

@mloufra Can you rebase this PR with main?

Done

@codecov-commenter
Copy link

Codecov Report

Merging #421 (d681330) into main (18b1802) will decrease coverage by 0.24%.
The diff coverage is 0.00%.

📣 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              
Impacted Files Coverage Δ
.../sample/helloworld/ExampleCustomSettingConfig.java 0.00% <0.00%> (ø)
...rch/sdk/sample/helloworld/HelloWorldExtension.java 57.14% <0.00%> (-9.53%) ⬇️

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

@ryanbogan ryanbogan merged commit 0da23e1 into opensearch-project:main Mar 10, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 10, 2023
* 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>
ryanbogan pushed a commit that referenced this pull request Mar 10, 2023
* 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>
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 16, 2023
* 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]>
Kuanysh-kst pushed a commit to Kuanysh-kst/opensearch-sdk-java that referenced this pull request Mar 18, 2023
* 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]>
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 19, 2023
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Demonstrate custom validators in HelloWorld Extension
6 participants