-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove itemId from FieldAccessArgs #4935
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/keystonejs/keystone-next-docs/DFyu4jZodWsb5HthnidwoWnj4Q2c |
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.
What's the rationale behind this if they already receive the item?
Very good question 🤔 it ostensibly makes the arguments for On reflection, there are slight differences in the semantics of Once the API docs PR has landed I'll change this PR to remove |
Pull request was converted to draft
0437efd
to
794d76b
Compare
794d76b
to
059ca15
Compare
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.
Do you know if there is a FieldAccessArgs or something in @keystone-next/types that would also have itemId on it?
Co-authored-by: Mitchell Hamilton <[email protected]>
So... there are, but they're already a little bit broken and somewhat tricky to work with. I have another branch in the works which brings all this stuff up to date with reality, so I'll make sure that this change is reflected in there when it lands. |
Found this gap while documenting the access-control API in #4922