Skip to content
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

Scripting: Use ParameterMap for deprecated ctx var in update scripts #34065

Merged
merged 1 commit into from
Sep 26, 2018

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Sep 25, 2018

This commit removes the sysprop controlling whether ctx is in params for
update scripts and replaces it with use of the new ParameterMap, which
outputs a deprecation warning whenever params.ctx is used.

This commit removes the sysprop controlling whether ctx is in params for
update scripts and replaces it with use of the new ParameterMap, which
outputs a deprecation warning whenever params.ctx is used.
@rjernst rjernst added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v7.0.0 >refactoring v6.5.0 labels Sep 25, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@rjernst
Copy link
Member Author

rjernst commented Sep 25, 2018

@elasticmachine test this please

Copy link
Member

@original-brownbear original-brownbear 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 be84759 into elastic:master Sep 26, 2018
@rjernst
Copy link
Member Author

rjernst commented Sep 26, 2018

Backport of this is pending on #33602 being backported.

@rjernst rjernst deleted the script_update_ctx_in_params branch September 26, 2018 05:16
@original-brownbear
Copy link
Member

Backport done in in #34068 :)

rjernst added a commit that referenced this pull request Sep 26, 2018
…34065)

This commit removes the sysprop controlling whether ctx is in params for
update scripts and replaces it with use of the new ParameterMap, which
outputs a deprecation warning whenever params.ctx is used.
kcm pushed a commit that referenced this pull request Oct 30, 2018
…34065)

This commit removes the sysprop controlling whether ctx is in params for
update scripts and replaces it with use of the new ParameterMap, which
outputs a deprecation warning whenever params.ctx is used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >refactoring v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants