-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Deprecate Empty Templates #30194
Deprecate Empty Templates #30194
Conversation
templates/scripts to be loaded on start up.
Pinging @elastic/es-core-infra |
@martijnvg Hey Martijn, if you're back from holiday, would appreciate you having a look at this when you have a spare moment. Thanks! |
5.6.10 seems like a long way to backport this. If you plan from removing from master I think it is fine to release this with 6.4. |
*/ | ||
private StoredScriptSource build() { | ||
private StoredScriptSource build(boolean ignore) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/ignore/ignoreEmpty/
maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I agree with @nik9000 comment about just getting this change in 6.x branch and master. |
@martijnvg @nik9000 Thanks for the reviews! Will push as soon as CI is completed. |
Deprecate the use of empty templates. Bug fix allows empty templates/scripts to be loaded on start up for upgrades/restarts, but empty templates can no longer be created.
* es/6.x: (44 commits) SQL: Remove dependency for server's version from JDBC driver (#30631) Make xpack modules instead of a meta plugin (#30589) Security: Remove SecurityLifecycleService (#30526) Build: Add task interdependencies for ssl configuration (#30633) Mute ShrinkIndexIT [ML] DeleteExpiredDataAction should use client with origin (#30646) Reindex: Fixed typo in assertion failure message (#30619) [DOCS] Fixes list of unconverted snippets in build.gradle Use readFully() to read bytes from CipherInputStream (#30640) Add Create Repository High Level REST API (#30501) [DOCS] Reorganizes RBAC documentation Test: increase search logging for LicensingTests Delay _uid field data deprecation warning (#30651) Deprecate Empty Templates (#30194) Remove unused DirectoryUtils class. (#30582) Mitigate date histogram slowdowns with non-fixed timezones. (#30534) [TEST] Remove AwaitsFix in IndicesOptionsTests#testSerialization S3 repo plugin populates SettingsFilter (#30652) Rest High Level client: Add List Tasks (#29546) Fixes IndiceOptionsTests to serialise correctly (#30644) ...
Deprecates empty templates. This will be followed up with another PR for just 7.0 that will remove the ability to add empty templates, and will drop empty templates during upgrades with a warning.
Also removes a backwards incompatible check for empty code strings being loaded from stored scripts. Search templates did not have an appropriate check for not allowing stored scripts to have an empty code string, so when an empty search template is added, future restarts of the node will fail.