openfga / sdk-generator

OpenFGA Client SDK Generator
Apache License 2.0
14 stars 30 forks source link

feat(python): support auto-retry of failed network requests #335

Closed evansims closed 3 months ago

evansims commented 3 months ago

Description

This PR rolls up the changes in the following PRs from the Python SDK and updates the generator to incorporate those updates:

To summarize, these changes introduce auto-retry support for failed requests (429, 500, 502, ...) to the /oauth/token auth endpoint, and enhance existing auto-retry of failed requests to the OpenFGA server to cover 5xx series error responses. In both cases, 501 is excluded from retries.

This PR also updates the makefile to generate a more robust code coverage report when running unit tests of the Python SDK. There is 100% coverage of these changes.

References

Review Checklist