GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Scripting: Remove native scripts by rjernst · Pull Request #24726 · elastic/elasticsearch

Conversation

@rjernst

@rjernst rjernst commented May 17, 2017

Copy link
Copy Markdown
Member

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rjernst
Scripting: Remove native scripts
6650623
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
rjernst added 2 commits May 16, 2017 21:20
@rjernst
fix checkstyle
6a39083
@rjernst
add migration doc
3f791cd
nik9000
nik9000 approved these changes May 17, 2017
View reviewed changes

@nik9000 nik9000 left a comment

Copy link
Copy Markdown
Contributor

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.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread core/src/test/java/org/elasticsearch/script/ScriptFieldIT.java
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 {

@nik9000 nik9000 May 17, 2017

Copy link
Copy Markdown
Contributor

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.

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?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@rjernst rjernst May 17, 2017

Copy link
Copy Markdown
Member Author

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.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rjernst added 4 commits May 17, 2017 11:02
@rjernst
Merge branch 'master' into remove_native_scripts
2778bd5
@rjernst
fix tests
74b0634
@rjernst
Merge branch 'master' into remove_native_scripts
7968fb0
@rjernst
more test fixes
605c5ae
imotov
imotov approved these changes May 17, 2017
View reviewed changes

@imotov imotov left a comment

Copy link
Copy Markdown
Contributor

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rjernst
Merge branch 'master' into remove_native_scripts
3870c70
@rjernst
rjernst merged commit 26e2e93 into elastic:master May 17, 2017
@rjernst
rjernst deleted the remove_native_scripts branch May 17, 2017 21:49
@clintongormley clintongormley added v6.0.0-beta1 and removed v6.0.0 labels Jul 25, 2017
@p365labs p365labs mentioned this pull request Aug 30, 2017
Scripting cleanup, removed ScriptFile ruflin/Elastica#1364
Merged
verawu pushed a commit to verawu/elasticsearch that referenced this pull request Jul 21, 2026
@rjernst
Convert native script uses to mock scripts (elastic/x-pack-elasticsea…
495d6dc
…rch#1465)

This is the xpack side of elastic/elasticsearch#24726

Original commit: elastic/x-pack-elasticsearch@0428fe1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@nik9000 nik9000 nik9000 approved these changes
@imotov imotov imotov approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

>breaking :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v6.0.0-beta1

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Remove native scripts and replace with script engine example

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@rjernst @nik9000 @imotov @clintongormley
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.