Ater we’ve started using GraphQL in AdminUI (to display subitems) there is an unwanted consequence - adding a new Content Type and creating a Content Item of that type breaks AdminUI (subitems do not load) until the GraphQL schema & cache are regenerated.
That means that adding a new Content Type can no longer be performed by a site admin, but needs to be performed by a server admin (best during maintenence, to avoid clearing the cache in production when server is live).
Steps to reproduce:
- Login as admin
- Go to Admin -> Content Types
- Create a new Content Type in "Content" group, with "ezstring" fieldtype
- Go to Content -> Content Structure
- Create a new item of created Content Type under root
- Go to root node
Subitems are loaded correctly, including the new item
Subitems do not load, instead the error notification is shown: " Cannot load location ".
Error from logs:
Subitems work correctly after GraphQL schema and cache are regenerated.