-
Notifications
You must be signed in to change notification settings - Fork 141
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
[Backport 2.x] Manual backport for Adding schema validation and placeholders for index mappings #3342
Open
pyek-bot
wants to merge
4
commits into
opensearch-project:2.x
Choose a base branch
from
pyek-bot:backport_enhance_index_schema_2.x
base: 2.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[Backport 2.x] Manual backport for Adding schema validation and placeholders for index mappings #3342
pyek-bot
wants to merge
4
commits into
opensearch-project:2.x
from
pyek-bot:backport_enhance_index_schema_2.x
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opensearch-project#3240) * feat(index mappings): fetch mappings and version from json file instead of string constants Signed-off-by: Pavan Yekbote <[email protected]> * refactor: changing exception being thrown Signed-off-by: Pavan Yekbote <[email protected]> * chore: remove unused file Signed-off-by: Pavan Yekbote <[email protected]> * chore: fix typo in comment Signed-off-by: Pavan Yekbote <[email protected]> * chore: adding new line at the end of files Signed-off-by: Pavan Yekbote <[email protected]> * feat: add test cases Signed-off-by: Pavan Yekbote <[email protected]> * fix: remove test code Signed-off-by: Pavan Yekbote <[email protected]> * fix(test): in main the versions were not updated appropriately Signed-off-by: Pavan Yekbote <[email protected]> * refactor: move mapping templates under common module Signed-off-by: Pavan Yekbote <[email protected]> * refactor: ensure that conversationindexconstants reference mlindex enums rather than use their own mappings Signed-off-by: Pavan Yekbote <[email protected]> * refactor: update comment Signed-off-by: Pavan Yekbote <[email protected]> * feat: add enhancements to validate index schema and allow using placeholders Signed-off-by: Pavan Yekbote <[email protected]> * refactor: modifying comment Signed-off-by: Pavan Yekbote <[email protected]> * test: adding testcase for MLIndex to catch failures before runtime Signed-off-by: Pavan Yekbote <[email protected]> * refactor: rename dir from mappings to index-mappings Signed-off-by: Pavan Yekbote <[email protected]> * fix: add null checks Signed-off-by: Pavan Yekbote <[email protected]> * fix: modify mappin paths for placeholders Signed-off-by: Pavan Yekbote <[email protected]> * fix: adding dependencies for testing Signed-off-by: Pavan Yekbote <[email protected]> * fix(test): compare json object rather than strings to avoid eol character issue Signed-off-by: Pavan Yekbote <[email protected]> * refactor: combine if statements into single check Signed-off-by: Pavan Yekbote <[email protected]> * refactoring: null handling + clean code Signed-off-by: Pavan Yekbote <[email protected]> * spotless apply Signed-off-by: Pavan Yekbote <[email protected]> * tests: adding more UT Signed-off-by: Pavan Yekbote <[email protected]> * fix: dependencies to handle jarhell Signed-off-by: Pavan Yekbote <[email protected]> * spotless apply Signed-off-by: Pavan Yekbote <[email protected]> * refactor: add header and use single instance of mapper Signed-off-by: Pavan Yekbote <[email protected]> * fixed: doc syntax Signed-off-by: Pavan Yekbote <[email protected]> * refactor: renamed files, efficient loading of resources, better exception handling Signed-off-by: Pavan Yekbote <[email protected]> * refactor: cleaner comment Signed-off-by: Pavan Yekbote <[email protected]> --------- Signed-off-by: Pavan Yekbote <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: Pavan Yekbote <[email protected]>
pyek-bot
requested review from
b4sjoo,
dhrubo-os,
jngz-es,
model-collapse,
rbhavna,
ylwu-amzn,
zane-neo,
Zhangxunmt,
austintlee and
HenryL27
as code owners
January 7, 2025 20:22
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 7, 2025 20:23 — with
GitHub Actions
Inactive
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 7, 2025 20:23 — with
GitHub Actions
Inactive
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 7, 2025 20:23 — with
GitHub Actions
Inactive
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 7, 2025 20:23 — with
GitHub Actions
Inactive
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 7, 2025 20:23 — with
GitHub Actions
Inactive
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 7, 2025 20:23 — with
GitHub Actions
Inactive
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 7, 2025 21:22 — with
GitHub Actions
Inactive
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 7, 2025 21:22 — with
GitHub Actions
Inactive
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 7, 2025 21:22 — with
GitHub Actions
Inactive
dhrubo-os
previously approved these changes
Jan 9, 2025
Signed-off-by: Pavan Yekbote <[email protected]>
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 14, 2025 01:23 — with
GitHub Actions
Inactive
pyek-bot
had a problem deploying
to
ml-commons-cicd-env-require-approval
January 14, 2025 01:23 — with
GitHub Actions
Failure
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 14, 2025 01:23 — with
GitHub Actions
Inactive
pyek-bot
had a problem deploying
to
ml-commons-cicd-env-require-approval
January 14, 2025 01:23 — with
GitHub Actions
Error
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 14, 2025 01:23 — with
GitHub Actions
Inactive
pyek-bot
had a problem deploying
to
ml-commons-cicd-env-require-approval
January 14, 2025 01:23 — with
GitHub Actions
Error
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 14, 2025 03:25 — with
GitHub Actions
Inactive
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 14, 2025 03:25 — with
GitHub Actions
Inactive
pyek-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
January 14, 2025 03:25 — with
GitHub Actions
Inactive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Raising a manual backport for 35daf90 as the jackson dependencies use the versions from opensearch-core to maintain compatibility and this variable is not found in 2.x. I am introducing it via 2 cherry-picks and a minor change for the http5 dependency to be compatible.
Please check: #3310
Check List
--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.