-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Describe your issue or idea
If you create a module and put config in its /config directory, the config is copied to active during module install. However, the sync step is not run.
This leads to an inconsistent state, if the config requires database tables. For example, if a module includes configuration for fields, database tables need to be created for the fields to actually work. These would normally be created during the sync step, but this step is not run, so the field data tables are not created and the fields do not work.
Steps to reproduce (if reporting a bug)
- In one Backdrop installation, create a field for a content type.
- Copy the resulting field bundle and field instance config to the /config directory of a custom module (you might also need the content type it is on).
- In a second Backdrop installation, install this module.
- Attempt to create content for the content type including this field.
Actual behavior (if reporting a bug)
The field will not work correctly. If you try to add content to the content type of that field, you will see the field on the content editing form, but if you save, you will get a database error, because the field data tables do not exist in the database.
Expected behavior (if reporting a bug)
The field should work correctly. I.e., if you put config in /config for a module, and it is copied to active config storage, the sync step should be run so that the configuration actually works.
Next Steps
We have a PR that seems to work, but we need someone to write tests.