Skip to content

Fix Painless execute API #2808

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
Aug 26, 2024
Merged

Fix Painless execute API #2808

merged 1 commit into from
Aug 26, 2024

Conversation

pquentin
Copy link
Member

According to https://github.com/elastic/elasticsearch/blob/44758b3823a4982e9c62598f184cf90b67ab5d2a/modules/lang-painless/src/main/java/org/elasticsearch/painless/action/PainlessExecuteAction.java#L167-L223 all context_setup fields are optional, but docs say that index and document are required, all YAML tests include them and context_setup itself is already optional. As a result, I left them required.

Copy link
Contributor

Following you can find the validation results for the API you have changed.

API Status Request Response
scripts_painless_execute 🟢 4/4 4/4

You can validate this API yourself by using the make validate target.

Copy link
Contributor

@l-trotta l-trotta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pquentin pquentin merged commit a3e4773 into main Aug 26, 2024
6 checks passed
@pquentin pquentin deleted the fix-painless-execute branch August 26, 2024 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants