Move command helper for optional update hooks to Varbase Core Commands Drush service for Drupal 10.3 support

Created on 2 September 2024, 16 days ago
Updated 17 September 2024, 1 day ago

Problem/Motivation

Applying an (optional) update hook is not working.
When I run the following drush command

./bin/drush varbase-up varbase_core varbase_core_optional_update_9003
Command "varbase-up" is not defined.

Proposed resolution

Move the varbaseApplyUpdate function in CommandHelper class to the VarbaseCoreCommands class.
Name the command as varbase:optional-update and the alias as varbase-up to keep old format too.

After the fix
./bin/drush varbase-up varbase_core varbase_core_optional_update_9003
./bin/drush varbase:optional-update varbase_core varbase_core_optional_update_9003

Optional hook updates can run recipes in the same way as the forced hook update
Using the Drupal Recipes system or the Update Helper format.

Forced update

drush updb

Optional update

drush varbase:optional-update <module> <update_hook>

Following with Varbase update types

  • ➖ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

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
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release varbase-10.0.2, varbase_core-10.0.32 , varbase-10.0.2 , varbase_core-9.1.43

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3471627 : Moved command helper for optional update hooks to Varbase Core Commands Drush service for Drupal 10.3 support
📌 Task
Status

Fixed

Version

10.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024