Skip to content

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented May 17, 2017

Native scripts have been replaced in documentation by implementing
a ScriptEngine and they were deprecated in 5.5.0. This commit
removes the native script infrastructure for 6.0.

closes #19966

Native scripts have been replaced in documentation by implementing
a ScriptEngine and they were deprecated in 5.5.0. This commit
removes the native script infrastructure for 6.0.

closes elastic#19966
@rjernst rjernst added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >breaking v6.0.0 labels May 17, 2017
Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like all the removed lines! I'm fine with pushing folks over to a script engine. @imotov probably should have a look as well if just so that he knows this is happening.

static float[] floatArray = { Float.MAX_VALUE, Float.MIN_VALUE, 3.3f };
static double[] doubleArray = { Double.MAX_VALUE, Double.MIN_VALUE, 3.3d };

public void testNativeScript() throws InterruptedException, ExecutionException {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we have plenty of tests for script fields hanging around though there may not be any in core if you drop this. Is that a problem, do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't really testing script fields per say, but I will double check there is some test for script fields.

Copy link
Contributor

@imotov imotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rjernst rjernst merged commit 26e2e93 into elastic:master May 17, 2017
@rjernst rjernst deleted the remove_native_scripts branch May 17, 2017 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>breaking :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v6.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove native scripts and replace with script engine example
4 participants