Scripting: add available languages & contexts API (#49652)#49815
Merged
stu-elastic merged 5 commits intoelastic:7.xfrom Dec 4, 2019
Merged
Scripting: add available languages & contexts API (#49652)#49815stu-elastic merged 5 commits intoelastic:7.xfrom
stu-elastic merged 5 commits intoelastic:7.xfrom
Conversation
Adds `GET /_script_language` to support Kibana dynamic scripting
language selection.
Response contains whether `inline` and/or `stored` scripts are
enabled as determined by the `script.allowed_types` settings.
For each scripting language registered, such as `painless`,
`expression`, `mustache` or custom, available contexts for the language
are included as determined by the `script.allowed_contexts` setting.
Response format:
```
{
"types_allowed": [
"inline",
"stored"
],
"language_contexts": [
{
"language": "expression",
"contexts": [
"aggregation_selector",
"aggs"
...
]
},
{
"language": "painless",
"contexts": [
"aggregation_selector",
"aggs",
"aggs_combine",
...
]
}
...
]
}
```
Fixes: elastic#49463
Collaborator
|
Pinging @elastic/es-core-infra (:Core/Infra/Scripting) |
Contributor
|
Looks like a missed Map.of which isn't available in Java 8 is causing the issue. |
jdconrad
approved these changes
Dec 4, 2019
Contributor
jdconrad
left a comment
There was a problem hiding this comment.
LGTM once the compiler errors are resolved.
Contributor
Author
|
@elasticmachine run elasticsearch-ci/1 |
This file contains hidden or 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
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.
Adds
GET /_script_languageto support Kibana dynamic scriptinglanguage selection.
Response contains whether
inlineand/orstoredscripts areenabled as determined by the
script.allowed_typessettings.For each scripting language registered, such as
painless,expression,mustacheor custom, available contexts for the languageare included as determined by the
script.allowed_contextssetting.Response format:
Fixes: #49463
Backport