Skip to content

Update HTTP.jl compat #19

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

Merged
merged 12 commits into from
Oct 26, 2022

Conversation

pankgeorg
Copy link
Contributor

@pankgeorg pankgeorg commented Jul 17, 2022

Queries seem to work but I haven't tested subscriptions at all
What do you think we should do here? Write some patch code to maintain compat or go all in HTTP 1.0?

Cheers, P!

@codecov-commenter
Copy link

codecov-commenter commented Jul 17, 2022

Codecov Report

Merging #19 (61fa476) into main (d6e6ac2) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #19      +/-   ##
==========================================
- Coverage   67.27%   67.27%   -0.01%     
==========================================
  Files          17       17              
  Lines         602      605       +3     
==========================================
+ Hits          405      407       +2     
- Misses        197      198       +1     
Impacted Files Coverage Δ
src/subscriptions.jl 88.50% <100.00%> (-0.78%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mmiller-max
Copy link
Collaborator

mmiller-max commented Jul 17, 2022

Thanks for this!

What do you think we should do here? Write some patch code to maintain compat or go all in HTTP 1.0?

I think go all in v1. Much simpler code for us to maintain and hopefully people are adopting the HTTP V1 across Julia. I think this will simplify this PR too :)

Co-authored-by: Mal Miller <59854849+mmiller-max@users.noreply.github.com>
@pankgeorg
Copy link
Contributor Author

I think go all in v1. Much simpler code for us to maintain and hopefully people are adopting the HTTP V1 across Julia.

Yes makes sense !

I think this will simplify this PR too :)

Sure, I started quite defensively to maintain compat but it's better to simplify since it's going to be the new HTTP only !

@pankgeorg
Copy link
Contributor Author

pankgeorg commented Aug 28, 2022

Simplified

image

to

image

@pankgeorg pankgeorg marked this pull request as ready for review August 28, 2022 16:20
@pankgeorg
Copy link
Contributor Author

@mmiller-max is there anything extra you want in this PR? Maybe I can help with that too!

@tanmaykm
Copy link

Thanks @pankgeorg and @mmiller-max! It would be great to have this released soon.

while !eof(ws)
data = readavailable(ws)
for data in ws
nothing;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does the semi colon add anything here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not really, it just looked nicer at the time 😅

Co-authored-by: Mal Miller <59854849+mmiller-max@users.noreply.github.com>
@mmiller-max
Copy link
Collaborator

Looks good to me. Just one question left to check and I'd ideally test it with a server that already had working subs. Please can you bump the version so once it's in we can get it released?

@mmiller-max
Copy link
Collaborator

Thanks again @pankgeorg !

@pfitzseb
Copy link

Bump.

Would be great to get this merged soon since we have a bunch of packages that are held back on the HTTP@v1 upgrade by GraphQLClient. Thanks!

@mmiller-max mmiller-max merged commit dc0f837 into DeloitteOptimalReality:main Oct 26, 2022
@mmiller-max
Copy link
Collaborator

Sorry for the delay here. Merged and registered!

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.

5 participants