Change config schema from sequence to mapping (D10.3 compatibility)

Created on 26 June 2024, 5 months ago
Updated 6 August 2024, 4 months ago

Problem/Motivation

When updating to core 10.3, the system_post_update_add_langcode_to_all_translatable_config throws an AssertionError when trying to update the view_custom_table.tables:

AssertionError: assert($typed_config instanceof Mapping) in assert() (line 264 of /core/modules/system/system.post_update.php).

Steps to reproduce

  • Install the latest stable version of the module on a D10.2.x site
  • Update the core to D10.3.0
  • Run drush updb

Proposed resolution

Proposing a patch that will convert the configuration object from sequence to mapping, based also on the documentation here https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-...
No update hook seems to be needed, as the configuration objects that are created with or without the the patch are the same.

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

Changes the view_custom_table.tables configuration object from sequence to mapping.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇴Norway efpapado

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024