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
setAiContextItemsDefaultScopeconfig action plugin (src/Plugin/ConfigAction/SetAiContextItemsDefaultScope.php) — the same one shipped by Varbase Recipes. It applies a defaultscopeto importedai_context_itementities 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-patchesrequirement fromcomposer.jsonso it resolves on every Varbase line (9.2.x, 10.1.x, 11.0.x) — patches are managed at the project level invardot/varbase-project. Keep thecomposer.jsonminimal (core + functional deps, noversionfield).
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
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 #2
rajab natshahComment #4
rajab natshahComment #6
rajab natshahComment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshah✅ Released varbase_ai-2.0.8