-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Scripting: Deprecate native scripts #24692
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
Conversation
Native scripts are no longer documented and instead using a ScriptEngine is recommended. This change adds a deprecation warning for removal in 6.0. relates elastic#19966
@elasticmachine retest this please |
LGTM so long as you add something to the release notes on backport. |
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.
The logging looks good, but I agree with @nik9000, release notes would be useful. I think it might be also helpful to deprecate NativeScriptFactory interface. Otherwise, new users might discover that native scripts are deprecated only after implementing one of them.
@nik9000 What do you mean by "release notes"? The migration docs are for 6.0, in which I will add a note with a followup PR which removes native scripts on master. |
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.
Thanks! LGTM
I spoke with @nik9000 about release notes, and he did indeed mean migration docs. We have not used these for deprecations in the past, at least not in any consistent fashion. I will add a migration note in the followup removing native scripts as I noted above. |
Also note that this change will show up under deprecations in the 5.5.0 release notes, since this PR is marked with the |
Native scripts are no longer documented and instead using a ScriptEngine is recommended. This change adds a deprecation warning for removal in 6.0. relates #19966
Native scripts are no longer documented and instead using a ScriptEngine
is recommended. This change adds a deprecation warning for removal in
6.0.
relates #19966