Skip to content

Conversation

@jdconrad
Copy link
Contributor

This changes all the script context names specifically for runtime fields to be *_field such as long_field and geo_point_field, etc. This change is internal detail that will only be exposed through the Painless execute API as part of (#71374) and should not have bwc issues. I tested this change locally on a mixed cluster to ensure scripts stored with the old runtime fields context names are both still retrievable and delete-able. This works because the context name is only used during the request to check for valid compilation, but never actually stored as part of the cluster state.

@jdconrad jdconrad added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >refactoring v8.0.0 v7.13.0 labels Apr 12, 2021
@jdconrad jdconrad requested a review from nik9000 April 12, 2021 18:55
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Apr 12, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

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.

LGTM

@jdconrad
Copy link
Contributor Author

@nik9000 Thanks for the review and extra help! I will commit as soon as CI passes.

@jdconrad jdconrad merged commit 82d6668 into elastic:master Apr 12, 2021
jdconrad added a commit to jdconrad/elasticsearch that referenced this pull request Apr 12, 2021
…c#71581)

This changes all the script context names specifically for runtime fields to be *_field such as long_field 
and geo_point_field, etc. This change is internal detail that will only be exposed through the Painless 
execute API as part of (elastic#71374) and should not have bwc issues. I tested this change locally on a 
mixed cluster to ensure scripts stored with the old runtime fields context names are both still 
retrievable and delete-able. This works because the context name is only used during the request to 
check for valid compilation, but never actually stored as part of the cluster state.
jdconrad added a commit that referenced this pull request Apr 12, 2021
#71586)

This changes all the script context names specifically for runtime fields to be *_field such as long_field 
and geo_point_field, etc. This change is internal detail that will only be exposed through the Painless 
execute API as part of (#71374) and should not have bwc issues. I tested this change locally on a 
mixed cluster to ensure scripts stored with the old runtime fields context names are both still 
retrievable and delete-able. This works because the context name is only used during the request to 
check for valid compilation, but never actually stored as part of the cluster state.
@javanna
Copy link
Member

javanna commented Apr 13, 2021

thanks @jdconrad !

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 Team:Core/Infra Meta label for core/infra team v7.13.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants