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

  1. Install Varbase 11 (Drupal 11.4.9, Trash 3.1.0, Canvas 1.12.0, AI Context 1.0.0-rc1, PHP 8.4).
  2. Run drush en ai_figma varbase_ai_figma canvas_ai modeler_api -y, as the functional testing job does.
  3. 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.
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 5eeb6197 on 1.0.x
    fix: #3629902 Install the AI Context views skipped on install with Trash...
rajab natshah’s picture

Status: Active » Fixed

Merged !17 into 1.0.x, with a green pipeline.

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.

rajab natshah’s picture

Status: Fixed » Closed (fixed)

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