Currently if we run
drush cexp content_type.article
We get
The configurations for the following items have been created/updated. [ok]
content_type.article
field.node.body.article
field.node.field_tags.article
vocabulary.tags
field.node.field_image.article
image_style.large
image_style.medium
permission.create_article_content
permission.edit_own_article_content
permission.edit_any_article_content
permission.delete_own_article_content
permission.delete_any_article_content
variable.field_bundle_settings_node__article
variable.language_content_type_article
variable.node_options_article
variable.node_preview_article
variable.node_submitted_article
variable.comment_default_per_page_article
variable.comment_form_location_article
variable.comment_preview_article
variable.comment_subject_field_article
But when we run
drush cimp content_type.article
We get
The configurations for the following items have been imported.
variable.field_bundle_settings_node__article
variable.language_content_type_article
variable.node_options_article
variable.node_preview_article
variable.node_submitted_article
variable.comment_default_per_page_article
variable.comment_form_location_article
variable.comment_preview_article
variable.comment_subject_field_article
content_type.article
field.node.body.article
field.node.field_tags.article
field.node.field_image.article
permission.create_article_content
permission.edit_own_article_content
permission.edit_any_article_content
permission.delete_own_article_content
permission.delete_any_article_content
This means that
vocabulary.tags
image_style.large
image_style.medium
Were not created.
The main issue here is the that scanDirectory works. It is not a recursive function and therefore, new dependencies discovered during the file exploration are not always considered.
Comments
Comment #1
dagmarWell this was harder than I thinked. The same issue was occurring to revert. And also there was some inconsistences in the getDependencies(), getOptionalConfigurations() and loadFromStaging() functions that are fixed in this patch too.
Comment #2
dagmarCommitted e1006bb