-
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
fix(persistent): make persistent query namespace aware #7570
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.
I am not familiar with this piece of code. @abhimanyusinghgaur can review this PR.
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 3 of 3 files at r2.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @manishrjain, @NamanJain8, and @vvbalaji-dgraph)
systest/multi-tenancy/basic_test.go, line 408 at r2 (raw file):
require.Zerof(t, len(resp.Errors), resp.Errors.Error())
you can use common.RequireNoGQLErrors(t, resp)
for the same. That prints a better stack trace for debugging, if errors happen.
systest/multi-tenancy/basic_test.go, line 412 at r2 (raw file):
require.Zerof(t, len(resp.Errors), resp.Errors.Error())
common.RequireNoGQLErrors(t, resp)
Make persistent query namespace-aware. Also, there was a bug in a persistent query where an unauthorized user can add persistent queries.
This PR makes Persistent query namespace-aware. Also, there was a bug in a persistent query where an unauthorized user can add persistent queries.
This change is