Problem/Motivation

After creating a block and exporting the configuration files with "drush cex" the translation of some other blocks is modified.

This is how the confugaration file of the created block looks like:

uuid: 62628811-2335-460d-ae2a-08706c7c88f2
langcode: de
status: true
dependencies:
  content:
    - 'block_content:basic:0ec94dc3-c928-4f63-a223-4c09a0953cc9'
  module:
    - block_content
  theme:
    - universaldenker
id: displayad1
theme: universaldenker
region: footer
weight: -12
provider: null
plugin: 'block_content:0ec94dc3-c928-4f63-a223-4c09a0953cc9'
settings:
  id: 'block_content:0ec94dc3-c928-4f63-a223-4c09a0953cc9'
  label: 'Display Ad 1'
  label_display: '0'
  provider: block_content
  status: true
  info: ''
  view_mode: full
visibility: {  }

Creating this block also caused changes in other blocks:

For example in block.block.userlogin.yml:

settings:
  id: user_login_block
  label: 'Log into an avatar'

was changed to:

settings:
  id: user_login_block
  label: 'In einen Avatar einloggen'

Or in block.block.new_content_block.yml:

settings:
  id: 'views_block:new_content-block_1'
  label: ''
  label_display: visible
  provider: views
  views_label: ''
  items_per_page: none

was changed to:

settings:
  id: 'views_block:new_content-block_1'
  label: 'Neue Inhalte'
  label_display: visible
  provider: views
  views_label: 'Neue Inhalte'
  items_per_page: none

Or in block.block.feedback_form.yml:

  module:
    - ctools
    - webform

was changed to:

  module:
    - node
    - webform

Steps to reproduce

I used the system: Drupal 9.3.0-beta2, PHP 8.0.7, Database: 10.3.30-MariaDB-1:10.3.30+maria~focal-log

  1. Export configuration files with drush. No changes.
  2. Go to "/admin/structure/block/block-content"
  3. Create a basic block ("/block/add/basic")
  4. Call the block "Display Ad 1" (id is: displayad1)
  5. Insert this content:
    <ins class="adsbygoogle"
    style="display:inline-block;width:728px;height:90px"
    data-ad-client="ca-pub-1234567890123456"
    data-ad-slot="1234567890"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
  6. Place the block somewhere inside the footer
  7. Export configurations with drush.
  8. Git shows changed config files that do not belong to the above displayad1 block

Comments

Universaldenker created an issue. See original summary.

larowlan’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Bug Smash Initiative

Are you saying that these changes weren't consistent with the values in the database?

Universaldenker’s picture

Yes, actually the mentioned changes of other blocks should not appear after the "drush cex". There should be only one configuration file exported (for the created block). I don't know why its happening...

larowlan’s picture

So is the title of those blocks not what you're seeing exported?

drush cex exports from the active storage (database) to a file storage.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

danielveza’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Tried to reproduce

  • Installed 10.1 with the minimal profile
  • Enabled the Custom block module
  • Created a new block type called basic
  • Exported config
  • Created a new block type with mostly the same content as the example
  • Exported config - No changes were exported.

This issue has been 11 months with no updates, and I can't reproduce. As far as I'm aware, this newly created block shouldn't be exported anyway, because its a content entity, not a config entity.

I also feel like if this was a widespread issue, it would have been reported many times as it would be a pretty critial issue if this was happening widespread, since it would break the whole config-export system.

Because of that I'm marking this issue as closesd (cannot reproduce).