1
API-only flag on Collections and Fields
Source: directus/directus#3611 · opened by @unknown
System collections and their default fields prohibits changes by Users. New fields can be added to capture additional information, e.g. tags, without affecting its core functionalities.
It would be nice to have the similar preventative mechanism applied to application-core schema. As title suggested, an api_only attribute can be added to collection and field meta. This field is rendered as read-only in the App.
If it is set on a collection, no changes to the collection and its fields can be made via the App UI. This would supersed the field-level attribute of the same collection.
If it is set on a field, no changes can be made to the field and its collection is protected from being deleted. New fields can still be added/updated/deleted for this collection.
This is a useful feature to prevent admin mistakes from breaking integration with the front-end and other (micro) services.
It would be nice to have the similar preventative mechanism applied to application-core schema. As title suggested, an api_only attribute can be added to collection and field meta. This field is rendered as read-only in the App.
If it is set on a collection, no changes to the collection and its fields can be made via the App UI. This would supersed the field-level attribute of the same collection.
If it is set on a field, no changes can be made to the field and its collection is protected from being deleted. New fields can still be added/updated/deleted for this collection.
This is a useful feature to prevent admin mistakes from breaking integration with the front-end and other (micro) services.
No pledges yet. Be the first to back this.
Comments
Similar requests
Restrict "Show Hidden Collections" to Admin Users
25 votes · 0 comments
Allow editing on the system fields
50 votes · 0 comments
Access Policy for Data Model / Content Collection Groups (Folders)
2 votes · 0 comments
Get all related collections/items for m2o,m2m without reverse fields
2 votes · 0 comments
Add Fields Exclusion in Rest API
3 votes · 0 comments
No comments yet.