Sites created with Sector 9.3.0 or later contain deprecated config

Created on 2 October 2023, about 1 year ago
Updated 29 February 2024, 9 months ago

Problem/Motivation

The node_type conditional plugin was deprecated in 9.3.0 https://www.drupal.org/node/2983299

Core provided the post update hook block_post_update_replace_node_type_condition to update usage of the plugin for all block config.

Pathauto (in version 1.10 - also included in Sector 9.3.0) provided the update hook pathauto_update_8108 to fix pathauto config.

Sites created before Sector 9.3.0 will not be impacted as the normal update process will have updated site config.

The config provided by Sector was not updated in 9.3.0 so sites installed after 9.3.0 continue to use the deprecated plugin for Sector provided config. This presents an issue when updating to Drupal 10 as the deprecated plugin is removed.

Steps to reproduce

  • Install Sector 9
  • View config for block.block.views_block__sector_resource_block_2_4, pathauto.pattern.sector_resources, pathauto.pattern.page and pathauto.pattern.page.sector_news

Proposed resolution

Rerun these updates in an update hook from Sector.

For sites created before Sector 9.3.0 - there will be no impact as the update hooks should not find any config to change. For sites created using Sector 9.3.0 or later the config will be fixed.

Remaining tasks

  • Review / Test
  • Commit
  • Release
🐛 Bug report
Status

Closed: won't fix

Version

9.5

Component

Code

Created by

🇳🇿New Zealand ericgsmith

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024