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:

  1. Stale active_version in two component configs. canvas.component.block.views_block.news-latest.yml and canvas.component.block.system_menu_block.secondary.yml each declare an active_version hash that no longer matches the hash Canvas derives from that component's own versioned_properties.active settings.
  2. A dangling component_version reference. canvas.pattern.latest_news_posts.yml pins c336f6157683ac13 for the news-latest block, a version that component never offers.

Steps to reproduce

  1. Install the Educare recipe on a fresh Varbase 11 site: drush site:install recipes/educare.
  2. Read the install output.
  3. 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.ymlactive_version 4323a6a9e7c31f976815ab2dcfe29656
  • canvas.component.block.system_menu_block.secondary.ymlactive_version 31ecc6cc06f17d4e7206ccf6a90c8941
  • canvas.pattern.latest_news_posts.ymlcomponent_version c336f6157683ac136815ab2dcfe29656

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

Command icon 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

rajab natshah created an issue. See original summary.

  • rajab natshah committed 8282bc0a on 1.0.x
    fix: #3614521 Pin Canvas component versions that actually exist
    
rajab natshah’s picture

Assigned: Unassigned » josebc
Status: Active » Needs review
Issue tags: +educare-1.0.0-alpha1
rajab natshah’s picture

Assigned: josebc » mohammed j. razem
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.