b74f1e6cb2
This particular change focuses on upgrading the source of a watch when it comes to scripts that have no language specified explicitly. The default language in version 5 changed to painless from whatever is specified in `script.default_lang` setting (this defaulted to groovy). In order to make sure that scripts in watcher remain to work we should rewrite the search source upon startup and set the legacy default language explicitly. The legacy script language is now controlled by `script.legacy.default_lang` setting and that defaults to groovy. Changing the source upon startup should do the trick and only change the source of watches with scripts that don't have an explicit language set. For new watches the default language used in scripts is painless and because we now always serialize the language explicitly in scripts these watches won't be changed on startup. The upgrade logic added here tries to upgrade scripts in the following places in a watch: * script condition * script transform * any script defined inside of a search input Original commit: elastic/x-pack-elasticsearch@4d578819eb |
||
---|---|---|
.. | ||
license-tools | ||
qa | ||
x-dev-tools | ||
x-pack | ||
x-pack-transport | ||
build.gradle | ||
checkstyle_suppressions.xml |