-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Should we remove file-based scripts and templates? #21798
Copy link
Copy link
Closed
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustache>breakingfeedback_neededhelp wantedadoptmeadoptme
Description
We have largely removed support for file-based configuration (eg mappings, settings, index templates) in favour of storing this info in the cluster.
For scripts and mustache templates, we allow them to be passed inline or to be stored in the cluster state. We used to be concerned about locking down scripts in Groovy etc, but with Painless we have safe scripting. Are file based scripts now redundant?
The one upside of files is that scripts can be written with new lines and formatting, while with inline/stored scripts they have to be passed in in a single line of JSON with newlines escaped. However this could be solved by improving Console to do the multi->single line conversion automatically.
Any other reasons for keeping file scripts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustache>breakingfeedback_neededhelp wantedadoptmeadoptme
Type
Fields
Give feedbackNo fields configured for issues without a type.