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

Fix(GraphQL): Refactor Mutation Rewriter for Add and Update Mutations #7409

Merged
merged 3 commits into from
Feb 9, 2021

Conversation

vmrajas
Copy link
Contributor

@vmrajas vmrajas commented Feb 9, 2021

Motivation:
Recently, two separate PRs for add and update mutation rewriting refactor were merged to graphql_mutation_refactor branch. This PR is about merging all those changes to maser.

Related PRs:

  1. Fix(GraphQL): Refactor Mutation Rewriting for Update Rewriter #7383
  2. Feat(GraphQL): Refactor Mutation Rewriting for AddRewriter #7257

Benchmarking Results for graphql/resolve/mutation_test.go:3LevelDeep10000
Master branch: (Before refactoring)
pkg: github.com/dgraph-io/dgraph/graphql/resolve
Benchmark3LevelDeep10000-8 1 22271327591 ns/op
PASS
ok github.com/dgraph-io/dgraph/graphql/resolve 22.418s

Current branch: (After refactoring)
pkg: github.com/dgraph-io/dgraph/graphql/resolve
Benchmark3LevelDeep10000-8 26 45202006 ns/op
PASS
ok github.com/dgraph-io/dgraph/graphql/resolve 2.708s

Fixes GRAPHQL-962 and GRAPHQL-872
Also fixes GRAPHQL-623, GRAPHQL-803 .


This change is Reviewable

* Add Existence Queries for Mutation Rewriting

* Add tests

* Add Error handling to getExistenceQueries

* Use new code for AddRewriter

* Fix Geo

* Fix tests

* Fix auth tests

* Fix resolve tests

* Fix add_mutation_test.yaml

* Add bug related tests

* Address more comments

* Rebase

* Final changes
* Fix auth tests

* Refactor Update Mutation Rewriting

* Fix update tests

* Add comments and remove unused code

* Address comments

* Address more comments
@vmrajas vmrajas requested a review from pawanrawal February 9, 2021 05:10
@vmrajas vmrajas requested a review from manishrjain as a code owner February 9, 2021 05:10
@github-actions github-actions bot added area/enterprise Related to proprietary features area/graphql Issues related to GraphQL support on Dgraph. labels Feb 9, 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 23 of 23 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @manishrjain)

@vmrajas vmrajas merged commit d080743 into master Feb 9, 2021
@vmrajas vmrajas deleted the graphql_mutation_refactor branch February 9, 2021 07:18
vmrajas added a commit that referenced this pull request Feb 9, 2021
…#7409)

* Feat(GraphQL): Refactor Mutation Rewriting for AddRewriter (#7257)

* Add Existence Queries for Mutation Rewriting

* Add tests

* Add Error handling to getExistenceQueries

* Use new code for AddRewriter

* Fix Geo

* Fix tests

* Fix auth tests

* Fix resolve tests

* Fix add_mutation_test.yaml

* Add bug related tests

* Address more comments

* Rebase

* Final changes

* Fix(GraphQL): Refactor Mutation Rewriting for Update Rewriter (#7383)

* Fix auth tests

* Refactor Update Mutation Rewriting

* Fix update tests

* Add comments and remove unused code

* Address comments

* Address more comments

* Fix ACL test

(cherry picked from commit d080743)
vmrajas added a commit that referenced this pull request Feb 10, 2021
…#7409) (#7413)

* Feat(GraphQL): Refactor Mutation Rewriting for AddRewriter (#7257)

* Add Existence Queries for Mutation Rewriting

* Add tests

* Add Error handling to getExistenceQueries

* Use new code for AddRewriter

* Fix Geo

* Fix tests

* Fix auth tests

* Fix resolve tests

* Fix add_mutation_test.yaml

* Add bug related tests

* Address more comments

* Rebase

* Final changes

* Fix(GraphQL): Refactor Mutation Rewriting for Update Rewriter (#7383)

* Fix auth tests

* Refactor Update Mutation Rewriting

* Fix update tests

* Add comments and remove unused code

* Address comments

* Address more comments

* Fix ACL test

(cherry picked from commit d080743)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/enterprise Related to proprietary features area/graphql Issues related to GraphQL support on Dgraph.
Development

Successfully merging this pull request may close these issues.

2 participants