Remove invalid configuration

Created on 22 July 2019, over 5 years ago
Updated 2 April 2023, almost 2 years ago

Problem

Prior to 1.2, invalid condition configuration and dependency was created for items implementing condition plug-ins (e.g. blocks, block visibility groups, asset injector) when no term condition was actually configured. This caused:

  • Blocks to not appear on non-node pages (e.g. views, user)
  • Configuration to be improperly removed if Term Condition was uninstalled

Example invalid config:

dependencies:
  module:
    - system
    - term_condition
...

visibility:
  term:
    id: term
    negate: false
    tid: null
    context_mapping:
      node: '@node.node_route_context:node'

Propose Solution

Implement hook_update to remove the invalid config

Patch to follow.

πŸ“Œ Task
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States justcaldwell Austin, Texas

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡³πŸ‡ΏNew Zealand dieuwe Auckland, NZ

    I'm closing all old issues for the 8.x-1.x-dev branch. If this issue is still relevant, please update and re-open it for the 2.0.x-dev branch.

Production build 0.71.5 2024