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

Applying json schema validation to index settings #330

Merged
merged 4 commits into from
Feb 16, 2023

Conversation

pandu-k
Copy link
Collaborator

@pandu-k pandu-k commented Feb 15, 2023

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug fix

  • What is the current behavior? (You can also link to an open issue here)
    [BUG] Add / Update document using REST API failing with internal server error #320

  • What is the new behavior (if this is a feature change)?
    Validation with helpful message +400 error if user creates an index with a malformed index settings object

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    No

  • Have unit tests been run against this PR? (Has there also been any additional testing?)
    Yes

  • Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)

@pandu-k pandu-k temporarily deployed to marqo-test-suite February 15, 2023 06:43 — with GitHub Actions Inactive
@pandu-k pandu-k temporarily deployed to marqo-test-suite February 15, 2023 06:44 — with GitHub Actions Inactive
src/marqo/tensor_search/models/settings_object.py Outdated Show resolved Hide resolved
tests/tensor_search/test_validation.py Outdated Show resolved Hide resolved
@pandu-k pandu-k temporarily deployed to marqo-test-suite February 15, 2023 22:34 — with GitHub Actions Inactive
@pandu-k pandu-k temporarily deployed to marqo-test-suite February 15, 2023 22:34 — with GitHub Actions Inactive
@pandu-k pandu-k merged commit 3e01b6b into mainline Feb 16, 2023
@pandu-k pandu-k deleted the validate_settings.py branch February 16, 2023 01:53
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.

2 participants