Config schema is not valid in Drupal 11.0

Created on 15 November 2024, about 1 month ago

Overview

@jessebaker reported that Cypress tests fail to install on 11.0:

$ php ../../../core/scripts/test-site.php install --setup-file "modules/contrib/experience_builder/tests/src/TestSite/XBTestSetup.php" --install-profile "nightwatch_testing"  --base-url http://localhost:8888/ --db-url sqlite://localhost/sites/default/files/db.sqlite --json

In ConfigSchemaChecker.php line 98:
                                                                                                                                                                                             
  Schema errors for experience_builder.component.block.system_branding_block with the following errors: 0 [settings.settings] 'status' is a required key., 1 [settings.settings]   
  'info' is a required key., 2 [settings.settings] 'view_mode' is a required key., 3 [settings.settings] 'context_mapping' is a required key.

Since blocks as components landed, we are running into 📌 Make Block config entities fully validatable Fixed here - blocks no longer have 'status', 'info' and 'view_mode' keys, but the schema says they do in 11.0. This is solved in 11.1 - though not sure why it's not affecting 10.x?

Proposed resolution

Either: raise the minimum version to ^10.4 | ^11.1
Or: figure out a fix that works on both versions

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

Config management

Created by

🇬🇧United Kingdom longwave UK

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