Problem/Motivation
Installing Drupal CMS with Educare in a language other than English can stop with an InvalidConfigException. On 1.0.10 with Português (Portugal), canvas.content_template.node.program.full asks for a component_version of block.system_breadcrumb_block that does not exist.
Drupal Canvas versions a block component with a hash that includes the translated block label. When Canvas makes the component before the recipe runs, a non-English site has only the translated version, while the recipe pins the English one. It depends on timing, so a different block can fail on each run. English installs are not affected.
Same bug as The Rightup #3636517, reported there by xpete.
Steps to reproduce
- Start the Drupal CMS installer.
- Pick Português (Portugal) as the language.
- Pick the Educare site template.
- The install stops with the
InvalidConfigExceptionabove.
Proposed resolution
In recipe.yml, keep the English version of each pinned block component whose label is translated, beside the version Canvas made (simpleConfigUpdate on versioned_properties). This is the fix The Rightup merged in MR !100. Leaving component_version out is not possible, because Canvas requires it in config component trees.
Blocks covered: breadcrumb, webform block, and the events latest, events related, news latest and news related view blocks.
Tested locally: Português (Portugal) and English drush installs finish, and the home page and content pages return 200.
Remaining tasks
- ✅ File an issue
- ✅ Addition/Change/Update/Fix: MR !105
- ❌ Testing to ensure no regression
- ➖ Automated unit testing coverage
- ➖ Automated functional testing coverage
- ➖ UX/UI designer responsibilities
- ➖ Readability
- ➖ Accessibility
- ➖ Performance
- ➖ Security
- ➖ Developer Documentation
- ➖ User Guide Documentation
- ❌ Reviewed by human
- ❌ Code review by maintainers
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ✅ Release notes snippet
- ✅ Release educare-1.0.11
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Fix the install stopping on a Canvas block component version when the language is not English.
Issue fork educare-3638219
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rajab natshahComment #4
rajab natshahComment #6
rajab natshah✅ Released in educare 1.0.11