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: Deprecate native scripts by rjernst · Pull Request #24692 · elastic/elasticsearch

Conversation

@rjernst

@rjernst rjernst commented May 15, 2017

Copy link
Copy Markdown
Member

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@rjernst
Scripting: Deprecate native scripts
10cca16
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
@rjernst rjernst added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >deprecation v5.5.0 v6.0.0 labels May 15, 2017
@rjernst

rjernst commented May 16, 2017

Copy link
Copy Markdown
Member Author

@elasticmachine retest this please

All reactions

Sorry, something went wrong.

Uh oh!

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

@rjernst
rjernst requested a review from imotov May 16, 2017 08:11
@nik9000

nik9000 commented May 16, 2017

Copy link
Copy Markdown
Contributor

LGTM so long as you add something to the release notes on backport.

All reactions

Sorry, something went wrong.

Uh oh!

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

imotov
imotov reviewed May 16, 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.

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.

Sorry, something went wrong.

Uh oh!

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

All reactions
@rjernst

rjernst commented May 16, 2017

Copy link
Copy Markdown
Member Author

@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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@rjernst
add deprecated annotation to NativeScriptFactory
c818ea5
imotov
imotov approved these changes May 16, 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.

Thanks! LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions
@rjernst

rjernst commented May 16, 2017

Copy link
Copy Markdown
Member Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@rjernst
rjernst merged commit 25dd644 into elastic:master May 16, 2017
@rjernst
rjernst deleted the deprecate_native_scripts branch May 16, 2017 18:57
@rjernst

rjernst commented May 16, 2017

Copy link
Copy Markdown
Member Author

Also note that this change will show up under deprecations in the 5.5.0 release notes, since this PR is marked with the deprecation label.

All reactions

Sorry, something went wrong.

Uh oh!

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

rjernst added a commit that referenced this pull request May 16, 2017
@rjernst
Scripting: Deprecate native scripts (#24692)
89bd168
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
@clintongormley clintongormley added v6.0.0-beta1 and removed v6.0.0 labels Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@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

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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.