acquia / reservoir

A back end for your front end: a content repository. Powered by Drupal 8, JSON API and OAuth2.
244 stars 30 forks source link

Demo content types + content should be optional during the installation process #54

Open danepowell opened 7 years ago

danepowell commented 7 years ago

Reservoir provides a default article content type for demo purposes. Many (most?) production sites won't use this particular content type, so it should be able to be deleted.

The problem is that Reservoir creates a "hello world" article at install time. So using any sort of standard configuration management workflow, when you install the site (or immediately after you install the site) and you try to import site configuration (which would delete the article content type), the import fails because content already exists:

Entities exist of type Content and Content type Article. These entities need to be deleted before importing.

I think the best solution would be to make the creation of demo / dummy content optional (perhaps by creating a separate reservoir_demo module).

wimleers commented 7 years ago

+1

wimleers commented 7 years ago

Expanded the scope even a bit further as you can see :)

wimleers commented 7 years ago

This is one of the reasons I opened #12 btw.