You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
What is the current behavior?
When a new type is created within the schema, deployed and then used, I get Insufficient permissions errors.
What is the expected behavior?
I think there should be some sort of warning as part of deployment process that a created type is missing permissions and won't be accessible aside admin access. This is considerably harder compared to adding/updating types through the Console which took care of creating default permissions for type and relations as well.
Another solution that comes to my mind is a boilerplate generator for types (and some other objects) within CLI. I would just specify a name of the type and it to the schema with basic fields (id, createdAt, updatedAt) and with default permissions (could be separate switch argument). That would make things a lot easier.
The text was updated successfully, but these errors were encountered:
I would like some kind of yeoman like generator. I'm building one with snippets for Atom at the moment.
Regarding the permissions. I believe the decision to not have public permissions by default was a deliberate one (#459), because it's easier to forget to lock something down than running into 'Insufficient Permission' on first use.
marktani
changed the title
No default permissions = confusion
Add default permissions when adding a new type
Oct 12, 2017
What is the current behavior?
When a new type is created within the schema, deployed and then used, I get
Insufficient permissions
errors.What is the expected behavior?
I think there should be some sort of warning as part of deployment process that a created type is missing permissions and won't be accessible aside admin access. This is considerably harder compared to adding/updating types through the Console which took care of creating default permissions for type and relations as well.
Another solution that comes to my mind is a boilerplate generator for types (and some other objects) within CLI. I would just specify a name of the type and it to the schema with basic fields (id, createdAt, updatedAt) and with default permissions (could be separate switch argument). That would make things a lot easier.
The text was updated successfully, but these errors were encountered: