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
- Export configuration files with drush. No changes.
- Go to "/admin/structure/block/block-content"
- Create a basic block ("/block/add/basic")
- Call the block "Display Ad 1" (id is: displayad1)
- 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>
- Place the block somewhere inside the footer
- Export configurations with drush.
- Git shows changed config files that do not belong to the above displayad1 block
Comments
Comment #2
larowlanAre you saying that these changes weren't consistent with the values in the database?
Comment #3
Universaldenker commentedYes, 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...
Comment #4
larowlanSo is the title of those blocks not what you're seeing exported?
drush cex exports from the active storage (database) to a file storage.
Comment #8
danielvezaTried to reproduce
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).