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

feat(ruby): retry strategy #2383

Merged
merged 5 commits into from
Dec 18, 2023
Merged

feat(ruby): retry strategy #2383

merged 5 commits into from
Dec 18, 2023

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Dec 18, 2023

🧭 What and Why

🎟 JIRA Ticket: DI-1718

Bring in the retry strategy from the existing client, and try to make it work with the generated one.
The error handling is not perfect and will be improved in future PR.

@millotp millotp requested a review from a team as a code owner December 18, 2023 08:21
@millotp millotp requested review from damcou and shortcuts December 18, 2023 08:21
@millotp millotp self-assigned this Dec 18, 2023
Copy link

netlify bot commented Dec 18, 2023

Deploy Preview for api-clients-automation ready!

Name Link
🔨 Latest commit b9895d5
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/6580202f72454800092320eb
😎 Deploy Preview https://deploy-preview-2383--api-clients-automation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@algolia-bot
Copy link
Collaborator

algolia-bot commented Dec 18, 2023

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

huge!!

templates/ruby/api.mustache Show resolved Hide resolved
templates/ruby/api.mustache Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

I see some files out of the http folder, wdyt of having all of them there for easier scoping of what's not generated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did it to match the old client, I think what's inside http is what can be exchanged for a echo requester for example

Copy link
Member

Choose a reason for hiding this comment

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

not a blocker anyway but I feel like it's better if we scope everything related to the transporter in the same folder

Comment on lines 35 to 36
# TODO: what is this merge for ?
# request_options.params.merge!(request_options.data) if method == :GET
Copy link
Member

Choose a reason for hiding this comment

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

we proxy the POST payload in QP if it's a get request IIRC

Copy link
Member

Choose a reason for hiding this comment

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

or the other way around but I think there's something like that

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

clean!

@millotp millotp merged commit 1e7c50d into main Dec 18, 2023
27 checks passed
@millotp millotp deleted the feat/retry-ruby branch December 18, 2023 13:04
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.

3 participants