-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(GraphQL): fix auth query rewriting with ID filter #7740
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
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.
Should also be cherry-picked to 21.03?
Reviewed 5 of 5 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @minhaj-shakeel)
graphql/resolve/query_rewriter.go, line 640 at r1 (raw file):
ids := idFilter(extractQueryFilter(field), fieldType.IDField()) if authRw != nil && (authRw.isWritingAuth || authRw.filterByUid) &&
This if condition is so complex and hard to understand. Needs to be looked at and more comments added.
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, will create a cherry-pick after merging it.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @pawanrawal)
graphql/resolve/query_rewriter.go, line 640 at r1 (raw file):
Previously, pawanrawal (Pawan Rawal) wrote…
This
ifcondition is so complex and hard to understand. Needs to be looked at and more comments added.
Will try to add some comments here.
Fixes GRAPHQL-1159. (cherry picked from commit 355eea4)
everything else part of PR fix(GraphQL): fix auth query rewriting with ID filter (#7740) Fixes GRAPHQL-1159.
fix(GraphQL): fix auth query rewriting with ID filter (#7740) Fixes GRAPHQL-1159.
fix(GraphQL): fix auth query rewriting with ID filter (#7740) Fixes GRAPHQL-1159.
Fixes GRAPHQL-1159.
This change is