Skip to content

Fix(GraphQL): Make mutation rewriting tests more robust #7768

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 2 commits into from
Apr 30, 2021

Conversation

vmrajas
Copy link
Contributor

@vmrajas vmrajas commented Apr 30, 2021

Motivation:
Auth Mutation rewriting tests now also ensure that the mutation returned a false for success in case of error. This PR fixes related tests.
This PR also fixes a potential bug where in in spite of failing on auth, the mutation would have succeeded without throwing an error.


This change is Reviewable

@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label Apr 30, 2021
Copy link
Contributor

@pawanrawal pawanrawal left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 5 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @abhimanyusinghgaur)

@vmrajas vmrajas merged commit 07bfbf8 into master Apr 30, 2021
@vmrajas vmrajas deleted the rajas/fix_rewriter_tests branch April 30, 2021 07:10
all-seeing-code pushed a commit that referenced this pull request Nov 22, 2022
* Make mutation rewriting tests more robust

* Fix lint
meghalims pushed a commit that referenced this pull request Nov 29, 2022
* Make mutation rewriting tests more robust
* Fix lint
* Cherry pick: #7768

Co-authored-by: vmrajas <rajas@dgraph.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graphql Issues related to GraphQL support on Dgraph.
Development

Successfully merging this pull request may close these issues.

2 participants