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

Adding validation on index settings #37

Merged
merged 1 commit into from
Jul 8, 2021
Merged

Adding validation on index settings #37

merged 1 commit into from
Jul 8, 2021

Conversation

gbbafna
Copy link
Collaborator

@gbbafna gbbafna commented Jul 1, 2021

Issue : #35

Description

Validates index settings value passed

Issues Resolved

#35

Check List

  • Commits are signed per the DCO using --signoff

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.

ankitkala
ankitkala previously approved these changes Jul 1, 2021
@@ -78,6 +79,11 @@ class TransportUpdateIndexReplicationAction @Inject constructor(transportService
}

private fun validateUpdateReplicationRequest(request: UpdateIndexReplicationRequest) {
IndexScopedSettings.DEFAULT_SCOPED_SETTINGS.validate(
Copy link
Member

Choose a reason for hiding this comment

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

Can we check this validation at the request level?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I plan to use SettingsModule instead of IndexScopedSettings in next PR . Hence this needs to be even moved down further where that module is available.

@gbbafna gbbafna dismissed stale reviews from saikaranam-amazon and ankitkala via 3494586 July 8, 2021 11:29
@gbbafna gbbafna merged commit 9e488b7 into opensearch-project:main Jul 8, 2021
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