Relax field-level meta validation constraints#20578
Relax field-level meta validation constraints#20578urmichm wants to merge 3 commits intoopensearch-project:mainfrom
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThese changes relax validation constraints for field-level Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
Signed-off-by: Michael Urmich <urmich.m@gmail.com>
|
❗ AI-powered Code-Diff-Analyzer found issues on commit 5f656fd.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
❌ Gradle check result for 5f656fd: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 5f656fd: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for e2080f7: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Mikhail Urmich <32458509+urmichm@users.noreply.github.com>
|
❗ AI-powered Code-Diff-Analyzer found issues on commit 6ee1908.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
I shall add some more explanation on why relaxing the restrictions won't impact on the cluster stage. We keep the Example: {
"settings": { ... },
"mappings": {
"properties": {
"secret_text": {
"type": "text",
"meta": {
// this 'meta' block will be rejected due to field below
"description": "This text has already too many chars and will not be allowed."
}
}, ........
},
"_meta": {
"fields_description": {
// the whole '_meta' block will be allowed with this nested parameter
"secret_text" : "This text has already too many chars and will not be allowed."
},
...
}
}
}@sandeshkr419 please share your feedback :) |
Description
Restrictions on the field-level
metahave been relaxed:meta's values must be Strings of any lengthmeta's values can not be nullsmeta's keys must be Strings of any lengthRelated Issues
Resolves #19884
Check List
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.