Closed jameslamb closed 4 years ago
I pushed https://github.com/civisanalytics/civis-r/pull/235 to address the most recent review comments
@jameslamb, would you care to merge this? (no rush, I just noticed this was still open)
@jameslamb, would you care to merge this? (no rush, I just noticed this was still open)
@mheilman I don't have permission to merge pull requests in this repository. That has to be done by a maintainer.
Oh, my bad, sorry. I forgot about that! I thought you could merge if it was approved by a maintainer or something.
In this PR, I'd like to propose swapping out calls to
httr::POST()
etc. withhttr::RETRY()
. It looks like you're already usingRETRY()
in a lot of places, which is awesome! This PR just changes the few remaining places where you weren't.This will make the package more resilient to transient problems like brief network outages or periods where the service(s) it hits are overwhelmed. In my experience, using retry logic almost always improves the user experience with HTTP clients.
I also noticed that you are mocking
httr::VERB()
but that it's never called in the code, so I removed those mocks.I'm working on https://github.com/chircollab/chircollab20/issues/1 as part of Chicago R Collab, an R 'unconference' in Chicago.
Thanks for your time and consideration!