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

👽 Use .formatted instead of format_error #1327

Merged
merged 2 commits into from
Aug 15, 2022

Conversation

nikolaik
Copy link
Contributor

@nikolaik nikolaik commented Jun 27, 2022

This stops using the deprecated format_error removed in graphql-core v3.2 graphql-python/graphql-core@09ff14f . GraphqlError.formatted has been a thing since at least v1.

This PR tries to solve the same thing as #1326 and #1320.

Looks like there a missing newline in test output. Not sure if to update the tests or the code.

@nikolaik nikolaik marked this pull request as ready for review June 28, 2022 16:15
@erikwrede
Copy link
Member

erikwrede commented Aug 15, 2022

Hey there, if someone is able to fix the test I can merge and push a release :)

Some of the test failures (with the = Nones missing) are not caused by this PR, but by this fix on graphene, released in 3.1.0:

graphql-python/graphene@03277a5

Copy link
Member

@erikwrede erikwrede left a comment

Choose a reason for hiding this comment

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

See my comment; once tests pass I'll merge if you tag me :)

@nikolaik nikolaik force-pushed the fix/graphql-core-32 branch from 26158f1 to 7aa2d61 Compare August 15, 2022 09:27
null default values
no more trailing newlines
@nikolaik nikolaik force-pushed the fix/graphql-core-32 branch from 7aa2d61 to dc87546 Compare August 15, 2022 09:35
Copy link
Member

@erikwrede erikwrede left a comment

Choose a reason for hiding this comment

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

LGTM

@erikwrede erikwrede merged commit 5f1731d into graphql-python:main Aug 15, 2022
@nikolaik
Copy link
Contributor Author

@erikwrede thanks! ❤

@erikwrede
Copy link
Member

Thank you! 🚀

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.

2 participants