Problem/Motivation

Varbase AI 2.0.x already requires Drupal ~11.4, but its composer.json pins vardot/varbase-patches: ~10.1.0. That ties it to the Varbase 10.1 line and makes it fail to resolve on a Varbase 9.2.x (Drupal ~11.4) site, whose vardot/varbase-patches is ~9.2.

Per the Varbase convention, vardot/varbase-patches is managed at the project level in vardot/varbase-project and should not be required by an individual module.

Steps to reproduce

On a Varbase 9.2.x site run composer require drupal/varbase_ai — it fails to resolve because vardot/varbase-patches ~10.1.0 conflicts with the site's vardot/varbase-patches ~9.2.

Proposed resolution

Follow the Varbase Recipes logic — make varbase_ai self-contained:

  • Add the setAiContextItemsDefaultScope config action plugin (src/Plugin/ConfigAction/SetAiContextItemsDefaultScope.php) — the same one shipped by Varbase Recipes. It applies a default scope to imported ai_context_item entities after a recipe's content step (Drupal core normalises map fields to {} on config/content import, so the scope cannot be shipped through the YAML — this is the behaviour the old patch provided).
  • Remove the vardot/varbase-patches requirement from composer.json so it resolves on every Varbase line (9.2.x, 10.1.x, 11.0.x) — patches are managed at the project level in vardot/varbase-project. Keep the composer.json minimal (core + functional deps, no version field).

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ 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

  • N/A

Issue fork varbase_ai-3609150

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’s picture

Issue summary: View changes

rajab natshah’s picture

Issue summary: View changes

  • rajab natshah committed ff188af1 on 2.0.x
    task: #3609150 Use the drupal/varbase_recipes module for the config...
rajab natshah’s picture

Status: Active » Needs review
rajab natshah’s picture

Assigned: Unassigned » josebc
Issue tags: +varbase-10.1.1, +varbase_ai-2.0.8
rajab natshah’s picture

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

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

✅ Released varbase_ai-2.0.8

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.