Currently we are having some trouble handling webform module configuration on our various environments.
When running a configuration import
drupal config:import --directory=$SYNC_DIR on our dev environments with a fresh database from production we receive the following error:
[ERROR] An error occurred while trying to write the config file: "Entities exist of type Webform submission and Webform Borough Newsletter. These entities need to be deleted before importing."
This particular web form (Borough Newsletter) has not been exported as config from production and has no associated yaml file, additionally it has some submissions in the database. When we remove all submissions of this particular webform the import completes, but removes any webforms not stored as config (no surprise there). We also tried to use the Config Ignore to prevent webforms from importing configuration, but we still got the above error. I have three main questions:
Our webforms are created on production by non-developers. Is the proper workflow to start exporting webform config from prod and bring it to our dev environments top down?
What exactly was the cause of the error we got during import (mentioned above)?
How come we still get an import error when we explicitly attempted to block any webform config from being imported? Was it due to a dependency on webforms from some other configuration item?
Webform Module Version: 8.x-5.3
Drupal Core Version: 8.6.17
Thank you in advance!