Problem/Motivation
On Varbase 11 with Trash 3.1.0 and Drupal Canvas, enabling Varbase AI Figma leaves the AI Context usage view (views.view.ai_context_usage) uninstalled. Every AI Context page then fails:
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "view.ai_context_usage.page_usage" does not exist.Trash 3.1 decorates the entity type manager, so it is now cleared after the Canvas block manager during a module install. Canvas rebuilds its block components at that point, Views data is built without the AI Context entity types, and core skips the view as not installable. Upstream: #3624638. This fails the functional testing job of #3629803.
Steps to reproduce
- Install Varbase 11 (Drupal 11.4.9, Trash 3.1.0, Canvas 1.12.0, AI Context 1.0.0-rc1, PHP 8.4).
- Run
drush en ai_figma varbase_ai_figma canvas_ai modeler_api -y, as the functional testing job does. - Open
/admin/config/ai/context/items: "The website encountered an unexpected error."
Proposed resolution
In varbase_ai_figma_install(), clear the Views data and create any AI Context view that is still missing, through the config installer. Remove it once a Trash release includes #3624638.
Remaining tasks
- ✅ File an issue
- ✅ Addition/Change/Update/Fix
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support
- ➖ User Guide Documentation support
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ❌ Reviewed by a human
- ❌ Code review by maintainers
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ❌ Update Release Notes
- ❌ Release
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Fixed the AI Context pages failing after install on Varbase sites with Trash 3.1 and Drupal Canvas.
Issue fork varbase_ai_figma-3629902
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 natshahMerged !17 into 1.0.x, with a green pipeline.
Comment #6
rajab natshah✅ Released varbase_ai_figma-1.0.5