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: Convert CompiledTemplate to a ScriptContext #25032

Merged
merged 2 commits into from
Jun 2, 2017

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Jun 2, 2017

This commit creates TemplateScript and associated classes so that
templates no longer need a special ScriptService.compileTemplate method.
The execute() method is equivalent to the old run() method.

relates #20426

This commit creates TemplateScript and associated classes so that
templates no longer need a special ScriptService.compileTemplate method.
The execute() method is equivalent to the old run() method.

relates elastic#20426
@rjernst rjernst added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >non-issue v6.0.0 labels Jun 2, 2017
@talevy
Copy link
Contributor

talevy commented Jun 2, 2017

With this change, would it make sense to revisit ingest/InternalTemplateService.java.
I can investigate how much of a performance difference there is from that extra regex/is_mustache check. If it is not significant, may make sense to remove. What do you think? cc @martijnvg

@rjernst
Copy link
Member Author

rjernst commented Jun 2, 2017

@talevy yes InternalTemplateService should go and I'm happy to do that as a followup.

@talevy
Copy link
Contributor

talevy commented Jun 2, 2017

@rjernst I can do it

Copy link
Contributor

@jdconrad jdconrad 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 0d8216d into elastic:master Jun 2, 2017
@rjernst rjernst deleted the script11 branch June 2, 2017 20:41
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 >non-issue v6.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants