-
Notifications
You must be signed in to change notification settings - Fork 27
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
Issue 397 drop httr #401
Issue 397 drop httr #401
Conversation
Some comments
|
Along with tests, some documentation would need updates (references to |
It's looking really good now.
|
I'll look into documentation changes. |
@obregos @jubilee2 @nutterb This is a major change to the package that gets rid of httr dependence with is deprecated. It avoids going httr2 with massive dependencies chains by going directly with curl. As such it needs to have code reviewed and agreement that this is the direction we should be moving. This PR is ready for deeper review as tests are passing and documentation is updated. |
I get the following when running tests: I agree that we should move towards removing dependencies that are deprecated and avoiding introducing new dependencies. |
I remember reading about httr2 when it was first released and did a snort laugh because the dependency chain on it was so huge for what it does. But I definitely considered the httr problem to be a down-the-road problem. Some things I've observed in reviewing this code
If I were to go all out on nit picking this, I might say I haven't run the test suite independently. But with two users having reported successful tests I'm not too concerned with that. I'm updating my environment right now and could run tests tomorrow. But if you're wanting an reviewer to approve, I'd be comfortable signing this now. It's quality work. |
I briefly reviewed this pull request and noticed the following:
|
I did the OCDP edit in response to Benjamin;s comment. The httr bit comment from Jubilee requires a bit more thought. Do we want to move to |
I have followed the config information through the code and I think there are issues. It has grown a bit convoluted with some of the refactors. How I think it should work (and I could be wrong):
This gets rid of any modifications being done to httr_config at the user level, always uses the connection as the default config effectively caching it. I think this would be straightforward and simpler. |
Last licks. Looks good to me. Biggest change is the rcon$config is now the template packet for makeApiCall. |
I get the following when running tests: |
issue #397
Proof of concept for replacing "httr" for "curl". "RCurl" may be an even better option? Tests do not reflect new methods and behaviour (yet).