Improve developer experience for 10.3.x upgrade by informing where typed config fails

Created on 2 July 2024, 5 months ago
Updated 26 July 2024, 4 months ago

Problem/Motivation

assert($typed_config instanceof Mapping) in system.post_update.php gives a failure, but it is difficult for less experienced developers to know what caused that failure.

The failure is frequently caused by contributed modules and a quick search for 'assert($typed_config instanceof Mapping' in google reveals many modules have had this issue. Letting the developer know what the failure is could make the process much easier for them to find the culprit module.

Steps to reproduce

Attempt to run update database with a contrib module that fails this assertion

Proposed resolution

Add a description to the assertion

Remaining tasks

Review merge request
Backport to 10.3.x

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

None

✨ Feature request
Status

Fixed

Version

10.3 ✨

Component
SystemΒ  β†’

Last updated 3 days ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom scott_euser

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