-
Notifications
You must be signed in to change notification settings - Fork 764
Update mutation.py to serialize Enum objects into input values #1431
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
Conversation
Thanks @allen-munsch! Would you be able to add a unit test for this? It would be great to ensure we handle this example and prevent any future regressions. (Also, please run pre-commit formatting on the file per the failed CI job.) |
@sjdemartini I added a unit test, and ran the precommit hook. Looked like it was all green locally. Thank you for spending the time to review this. Much appreciated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for updating with a test! Really appreciate the contributions here 😄
…um objects into input values for ChoiceFields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for the quick followup and in investigating that question. That's great you were able to make that test surface the original bug on master! And I like how simple the fix ended up being! LGTM!
Co-authored-by: Steven DeMartini <[email protected]>
@sjdemartini No problem. It really means a lot you were working through the backlog of issues. So I wanted to make sure I didn't let this one sit around. Cheers! |
…ql-python#1431) * Fix for issue graphql-python#1385: Update mutation.py to serialize Enum objects into input values for ChoiceFields * Update graphene_django/rest_framework/mutation.py Co-authored-by: Steven DeMartini <[email protected]> --------- Co-authored-by: Steven DeMartini <[email protected]>
#1385