-
Notifications
You must be signed in to change notification settings - Fork 57
Upgrade graphene to v3 #143
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
Upgrade graphene to v3 #143
Conversation
This hack is not compliant with the spec but doesn't break anything per se. This originally came about when we first writing the preview compatibility with Gatsby. I know more about the GraphQL AST now and could probably write a parser that only imports the one that are used TBH (Obviously this would be taken care of in the Gatsby package). |
d7f2307
to
5391a26
Compare
I currently catch the |
This reverts commit 65fc193.
108502a
to
60a669a
Compare
12bae71
to
c62bdac
Compare
Tests finally pass 🎉 It would be nice to have a review at this stage (@zerolab @ruisaraiva19 @NathHorrigan). |
To follow up on this: graphql-python/graphene#1300 |
https://github.com/graphql-python/graphene-django/releases/tag/v3.0.0 Relevant PR: graphql-python/graphene-django#1281 via #241 (comment) /ht @PeterDekkers @fabienheureux any chance you have the time to look at the final tweaks here? |
Thanks for the nudge @zerolab, I will have some time in about ten days to finish this up. |
@fabienheureux Do you have any time to pick this up? I'm in the midst of implementing some federated fields to another api and I would really like to use gql >=3 with aiohttp support, but I'm getting a conflict with graphql-core. I'm happy to look into it as well if you're busy on other things. |
@fabienheureux I did some work on your branch and pushed it to my fork. see: https://github.com/dopry/wagtail-grapple/commits/feature/graphene-v3-upgrade |
Will close this in favour of #285 |
Thanks a lot for picking this up @zerolab, sorry got a bit busy with client work lately. |
Co-Authored-By: Darrel O'Pry <[email protected]> Co-Authored-By: Fabien Le Frapper <[email protected]>
Graphene v3 is almost there...since this summer.
In fact the release is blocked by several things:
So this is more likely we are a bit far from getting an official graphene v3 release, but I use it on production on a django / graphene project without major issues, and this project does not use dataloaders or other fancy features from graphene (that are poorly supported in graphene v3), so the upgrade should be really safe.
/7c72a38af6bc74ff7919b1ccd3a76db4acad5f4e/src/graphql/validation/rules/no_unused_fragments.py#L10
By the way, this does not follow GraphQL spec, so we could maybe plan on update this code ? Any idea @NathHorrigan @zerolab ? Spec for reference https://spec.graphql.org/June2018/#sec-Fragments-Must-Be-Used
@register_singular_query_field
function is broken@register_query_field
function is brokenFixes #241