Drupal-console: [config:export:content:type] --remove-uuid --remove-config-hash options work half the time

Created on 22 Oct 2018  路  5Comments  路  Source: hechoendrupal/drupal-console

When I issue this command, half the files still have uuid and hash-code inside them:
vendor/bin/drupal config:export:content:type product --module="demo" --remove-uuid --remove-config-hash --optional-config

The files without x still has UUID and default_config_hash inside:

x core.entity_form_display.node.product.default.yml
x core.entity_view_display.node.product.default.yml
x core.entity_view_display.node.product.teaser.yml
  core.entity_view_mode.node.teaser.yml
x field.field.node.product.body.yml
x field.field.node.product.field_category.yml
x field.field.node.product.field_text.yml
  field.storage.node.body.yml
  field.storage.node.field_category.yml
  field.storage.node.field_text.yml
x node.type.product.yml
  taxonomy.vocabulary.tags.yml

Also, I am prompted Export content type in module as an optional configuration (yes/no) [yes]:, which shouldn't be necessary, according to the documentation.

If I add =yes like this, I am not prompted:
vendor/bin/drupal config:export:content:type product --module="demo" --remove-uuid --remove-config-hash --optional-config=yes

bug

Most helpful comment

PR https://github.com/hechoendrupal/drupal-console/pull/3989

Fixed.
I found and fixed also another bug. When we run the command in non-interaction mode optional-config option is not applied.
Also I refactored a little bit the code

All 5 comments

I can confirm I had encountered the same behavior
drupal 8.6.3 drupal/console 1.8.0

@gitressa Thank you for the report. I will check it.

PR https://github.com/hechoendrupal/drupal-console/pull/3989

Fixed.
I found and fixed also another bug. When we run the command in non-interaction mode optional-config option is not applied.
Also I refactored a little bit the code

Thanks for fixing it @LOBsTerr, and for working on Drupal Console!

Closing this issue.

Was this page helpful?
0 / 5 - 0 ratings