Branding block should include config dependency on system.site config

Created on 13 January 2017, over 7 years ago
Updated 14 November 2023, 11 months ago

Problem/Motivation

When using drush config-set system.site name "Test 1", the site name unreliably updates, meaning, sometimes it updates right away and sometimes a cache-rebuild (drush cr) is required. The active config store is updated, but the block itself is not.

Proposed resolution

Adding a dependency to the configuration item "system.site" to block.block.bartik_branding.yml causes the block to update immediately if the configuration for the site name is updated via drush config-set:

dependencies:
  module:
    - system
  theme:
    - bartik
  config:
    - system.site

Remaining tasks

I have only tested this by adding this dependency to my exported config YAML file for block.block.bartik_branding.yml; next step is to create a patch that adds this dependency to the original Bartik block branding configuration file, which I understand from this issue ( https://www.drupal.org/node/2642590 ), might be moving.

Need advice as to whether or not to wait for that issue to close or to go ahead with a patch in its current location.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
System 

Last updated 1 day ago

No maintainer
Created by

🇺🇸United States Amber Himes Matz Portland, OR USA

Live updates comments and jobs are added and updated live.
  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024