Problem/Motivation
Every install of the Educare recipe logs Canvas component-version warnings:
[warning] Component version `31ecc6cc06f17d4e` not found for component `block.system_menu_block.secondary`, falling back to active version `7206ccf6a90c8941`. [warning] Component version `c336f6157683ac13` not found for component `block.views_block.news-latest`, falling back to active version `6815ab2dcfe29656`.
Canvas recovers by falling back to the active version, so the site installs and renders correctly — but the recipe is shipping version pins that do not exist, the warnings are noise on every install, and a fallback is not something a site template should rely on.
There are two distinct causes:
- Stale
active_versionin two component configs.canvas.component.block.views_block.news-latest.ymlandcanvas.component.block.system_menu_block.secondary.ymleach declare anactive_versionhash that no longer matches the hash Canvas derives from that component's ownversioned_properties.activesettings. - A dangling
component_versionreference.canvas.pattern.latest_news_posts.ymlpinsc336f6157683ac13for the news-latest block, a version that component never offers.
Steps to reproduce
- Install the Educare recipe on a fresh Varbase 11 site:
drush site:install recipes/educare. - Read the install output.
- Both warnings above appear (the news-latest one repeats for each placement).
Proposed resolution
Pin the versions that actually exist:
canvas.component.block.views_block.news-latest.yml—active_version4323a6a9e7c31f97→6815ab2dcfe29656canvas.component.block.system_menu_block.secondary.yml—active_version31ecc6cc06f17d4e→7206ccf6a90c8941canvas.pattern.latest_news_posts.yml—component_versionc336f6157683ac13→6815ab2dcfe29656
All three replacement hashes were confirmed deterministic before pinning: two independent fresh installs (the dev site and a separate browser-installed build) compute identical values, so this removes the warnings rather than moving them.
Verified after the change on a fresh drush site:install recipes/educare: zero component-version warnings, installation complete, and no regression — default theme vartheme_bs5_educare, 20 programs / 40 events / 15 news / 3 pages, 17 media, 12 Canvas pages, and /, /news, /programs, /events, /about all return 200.
Remaining tasks:
- ✅ File an issue
- ❌ Addition/Change/Update/Fix
- ❌ Testing to ensure no regression
- ❌ Automated unit testing coverage
- ❌ Automated functional testing coverage
- ❌ UX/UI designer responsibilities
- ❌ Readability
- ❌ Accessibility
- ❌ Performance
- ❌ Security
- ❌ Documentation
- ❌ Code review by maintainers
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ❌ Release notes snippet
- ❌ Release
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- N/A
Issue fork educare-3614521
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 #4
rajab natshah✅ Released educare-1.0.0-alpha1
Comment #5
rajab natshahComment #6
rajab natshah