Voting starts in March for the Drupal Association Board election.
TypedConfigManager has this code in getDefinition():
// If we don't have definition, return the 'default' element. // This should map to 'undefined' type by default, unless overridden. $type = 'default';
If we don't have this fallback Drupal currently cannot be installed. If we record the items where fallback happens in a standard install, we get the following list in order of appearance:
action.configuration.node_delete_action action.configuration.node_make_unsticky_action array views.filter_value.language array array field.comment.settings field.comment.value field.comment.instance_settings update.settings
Fix most instances where schema is missing in the installer. The fix includes the following:
- missing action schemas for node delete and unsticky (later of which is actually there but misnamed)
- noexistent array type used in menu_ui.schema.yml
- add missing views language filter value schema
- add missing comment field schemas
- fix installer code to refresh config factory when updating update.settings
This fixes all but one of the items. views.filter_value.language will still show up because default views include language filters although language module is not enabled. Views handles this as optional elements but schema does not have a concept of optional elements. Solving that is out of scope here.
Note that it is not possible to include eg. throwing exceptions in the fallback as (a) we want contrib to still have optional schema which this very condition ensures (b) there are still tests that we don't want to provide schema for which is basically the same thing and (c) there are still a whole bunch of known issues of other missing items in the runtime (although those do not appear in the installer). Other elements that appear as fallbacks and solved elsewhere are listed in #16.
User interface changes
Minor API addition in FormBase: resetConfigFactory() method.
|#18||2268975-fix-missing-schema-14-fixes-only.patch||5.7 KB||Gábor Hojtsy|
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 71,653 pass(es). View
|#16||2268975-fix-missing-schema-14-test-only.patch||969 bytes||Gábor Hojtsy|
FAILED: [[SimpleTest]]: [PHP 5.4 MySQL] Drupal installation failed. View
|#14||2268975-fix-missing-schema-14.patch||6.64 KB||Gábor Hojtsy|
FAILED: [[SimpleTest]]: [PHP 5.4 MySQL] 66,612 pass(es), 210 fail(s), and 132 exception(s). View
|#12||2268975-fix-missing-schema-12.patch||6.73 KB||Gábor Hojtsy|
FAILED: [[SimpleTest]]: [PHP 5.4 MySQL] Unable to apply patch 2268975-fix-missing-schema-12.patch. Unable to apply patch. See the log in the details link for more information. View
|#12||interdiff.txt||2.41 KB||Gábor Hojtsy|