Shopify / shopify-api-ruby

ShopifyAPI is a lightweight gem for accessing the Shopify admin REST and GraphQL web services.
MIT License
1.05k stars 468 forks source link

REST resource API rate limit information #1257

Closed lizkenyon closed 8 months ago

lizkenyon commented 9 months ago

When using the REST resources there is currently no way to access the rate limit information

Description

Fixes #1218

Please, include a summary of what the PR is for: Commit for adding resources

Commit for fixing flacky test

With this PR we uncovered several flaky tests, because to of the way they were updating context. We went with the easiest solution for now and set the context back to original after the test completes.

Commit for regenerating REST resources

Because some tests in the test suite use real resources instead of FakeResource we need to regenerate the REST resources to have the new variables for them to pass.

Commit for Docs

How has this been tested?

Please, describe the tests that you ran to verify your changes.

Checklist: