Switch from Drupal module load Include to native PHP include once for Varbase Workflow to include all helpers and updates

Created on 7 December 2023, 12 months ago
Updated 12 December 2023, 12 months ago

Problem/Motivation

Follow up issue after
πŸ“Œ Refactor updates for Varbase Workflow by moving hook updates to include/updates with load Include based on major branches Fixed

The \Drupal::moduleHandler()->loadInclude function operates slowly and necessitates the installation of the associated module to ensure proper formatting and logical functioning.

Proposed resolution

Change to

// Include all helpers and updates.
include_once __DIR__ . '/includes/helpers.inc';
include_once __DIR__ . '/includes/updates.inc';

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-9.0.17 β†’ , varbase_workflow-2.0.20 β†’ , varbase-9.1.0 β†’ , varbase_workflow-2.1.1 β†’ , varbase-10.0.0-rc1 β†’ , varbase_workflow-3.0.2 β†’

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 #3406686 β†’ : Switched from Drupal module load Include to native PHP include once for Varbase Workflow to include all helpers and updates
πŸ› Bug report
Status

Fixed

Version

3.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