Skip to content

Update generated examples #2312

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 3 commits into from
Oct 2, 2023
Merged

Conversation

pquentin
Copy link
Member

Closes #2266

@picandocodigo Since Ruby appears to be the most up-to-date client regarding examples, would you mind looking if the generated files look good and tell me if more needs to be done to have up-to-date example in the docs?

It is insecure, though not in this specific context, but tools are
flagging this.
Copy link
Member

@picandocodigo picandocodigo left a comment

Choose a reason for hiding this comment

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

I think generally it looks good. I checked some of the code changes in the generated examples and they match with Ruby. A thing I'm doing when I generate the code is spin up Elasticsearch and run the generated example code against it. I log the successful runs and the errors to see if there's a client error or a server error (usually because a code example needs some setup). But I add all the successful requests since I'm sure those are fine, and can debug what's wrong with the rest using the logs.

Copy link
Member

@JoshMock JoshMock left a comment

Choose a reason for hiding this comment

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

I didn't look at every one, but spot-checked several and they look good to me.

@pquentin pquentin merged commit 65e0ea6 into elastic:main Oct 2, 2023
@pquentin pquentin deleted the stop-using-mktemp branch October 2, 2023 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

An improper method call in temporary file creation code
3 participants