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

Rate limiting #61

Closed
wants to merge 17 commits into from
Closed

Rate limiting #61

wants to merge 17 commits into from

Conversation

adamwolf
Copy link

I'm trying to help with getting @simonneutert's rate limiting work for #11 over the finish line.

I'm handy with git, so feel free to ask me to rebase/squash/do whatever!

I'm not sure about all the choices I made handling the feedback from #50, especially the ResponseWrap/RaiseError thing.

Related:

@dblock
Copy link
Owner

dblock commented Jun 22, 2022

@adamwolf Rebase this change so that it doesn't have any conflicts and get it to green, I'll take a look at the PR once it's there! Feel free to squash all the changes, but you don't have to.

simonneutert and others added 17 commits June 22, 2022 15:24
* Added changelog entry
* Changed some switch-cases on foo.class.name to if foo.is_a?
* Removed old ruby.yml workflow file
I'm not 100% sure this is what was meant vs adding this
to Model.
To do this, I tweaked RaiseError a bit.  I'm not sure if there's
a better way, or if this is not worth the change, or ....
@adamwolf
Copy link
Author

I rebased and the tests are green locally. Github says it needs maintainer approval to run workflows since I'm a first-time contributor here.

@dangerpr-bot
Copy link

1 Warning
⚠️ [DEPRECATION] check is deprecated. Please use check! instead.

Generated by 🚫 Danger

Copy link
Owner

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Excellent work!

  1. Needs documentation in README.
  2. Update https://github.com/dblock/strava-ruby-client/blob/master/UPGRADING.md that explains any interface changes as low level APIs return a different type of object.
  3. Could use some more tests for responses that don't have .ratelimit.
  4. Get it to green, see CI failures on various rubies (you should be able to see actions run on your own fork if it limits them in the PR because of the first time contributor thing).

end
end
end
# rubocop:enable Style/MissingRespondToMissing
Copy link
Owner

Choose a reason for hiding this comment

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

We should implement respond_to here as well, shouldn't we?

@dblock
Copy link
Owner

dblock commented Dec 29, 2022

Thanks @simonneutert for finishing this up! See #50.

@dblock dblock closed this Dec 29, 2022
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.

4 participants