Skip to content

Update RuntimeField to use IInlineScript #5546

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

Merged
merged 1 commit into from
Apr 20, 2021

Conversation

stevejgordon
Copy link
Contributor

@stevejgordon stevejgordon commented Apr 20, 2021

Runtime fields now support parameters in their scripts which the current IStoredScript interface does not support. This change updates to prefer IInlineScript which better aligns to the functionality of scripts in runtime fields.

This is a breaking change but should have a limited impact on existing users and ultimately is worth making to allow consumers to fully utilise runtime fields. Only code currently using runtime fields and the object initialiser syntax will need to be updated. The change is required is to create an instance of InlineScript rather than PainlessScript.

Fixes #5537

@stevejgordon stevejgordon merged commit 8d04047 into 7.x Apr 20, 2021
@stevejgordon stevejgordon deleted the bug/runtime-fields-scripting branch April 20, 2021 07:45
stevejgordon added a commit that referenced this pull request Apr 23, 2021
stevejgordon added a commit that referenced this pull request Apr 23, 2021
stevejgordon added a commit that referenced this pull request Apr 23, 2021
* Update RuntimeField to use IInlineScript (#5546)

(cherry picked from commit 8d04047)

* Support for calculated numeric fields (#5622)

(cherry picked from commit b29f03d)

* Remove boost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant