-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
graphql: support existing gqlschema nodes without xid #5457
Conversation
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.
Is this a bugfix? If yes, then is it possible to add a testcase for this?
Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @abhimanyusinghgaur and @MichaelJCompton)
graphql/admin/admin.go, line 472 at r1 (raw file):
qry := &gql.GraphQuery{ Attr: existingSchemaVar,
It would be helpful to write down the final query in comments that would be built here.
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.
Added a testcase which checks that the GqlSchema node always has dgraph.graphql.xid
with value dgraph.graphql.schema
after graphql layer has started properly.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @MichaelJCompton and @pawanrawal)
graphql/admin/admin.go, line 472 at r1 (raw file):
Previously, pawanrawal (Pawan Rawal) wrote…
It would be helpful to write down the final query in comments that would be built here.
Done.
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.
Reviewed 2 of 2 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @MichaelJCompton)
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.
Yeah, this kind of thing might be hard to test in our testing setup ... ideally, we'd have some way where we could roll through an update from one version to the next. So I guess you could have a test with a 20.03.1 version, then restart on a 20.03.3 and see if it all updates smoothly. I don't think it's worth building that out just for this case. But I think it's a test we should have in general that runs from a 20.03.x to a 20.03.x+1 cause that gives us an assurance that a customer can upgrade smoothly.
Also, merging this, means we are committing to fixing this #5235 asap.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @MichaelJCompton)
This PR adds support for adding xid to existing gqlschema nodes as it was not taken into consideration in dgraph-io#5054. Fixes #GRAPHQL-417.
This PR adds support for adding xid to existing gqlschema nodes as it was not taken into consideration in #5054.
Fixes #GRAPHQL-417.
This change is