-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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(contentful): Add restricted content model names #30234
fix(contentful): Add restricted content model names #30234
Conversation
Thank you!! But I think this won't work. Did you try it out? |
@@ -22,6 +22,8 @@ const restrictedNodeFields = [ | |||
`id`, | |||
`internal`, | |||
`parent`, | |||
`Entity`, | |||
`Reference`, |
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.
This restricts field names, but we need to restrict Content Type names
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 was analyzing the code, but I could not figure out how to restrict the Content Type names. Could you give a hint?
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 don't know either :D
My PR at #30715 should address this now properly :) |
Closing in favor of #30715 |
Description
This PR adds 2 restricted model names to
restrictedNodeFields
array so that when one uses those 2 model names, the error notifies the developer about it. Those 2 model names areReference
andEntity
. The related issue explains why those 2 names cannot be used.Related issues
Fixes #30089