Switch Varbase Search to add permissions using the Module Installer Factory to support Drupal 10

Created on 22 June 2023, about 1 year ago
Updated 24 June 2023, about 1 year ago

Problem/Motivation

When installing Varbase Search 9.0.x under Drupal 10

RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "search content". in Drupal\user\Entity\Role->calculateDependencies() (line 207 of /var/www/html/dev/v9t10c1/docroot/core/modules/user/src/Entity/Role.php).

Proposed resolution

Switch Varbase Search to add permissions using the Module Installer Factory to support Drupal 10

  // Add permissions.
  ModuleInstallerFactory::addPermissions('varbase_search');

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
  • βœ… 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.14 β†’ , varbase_search-9.0.4 β†’

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 #3368783 β†’ : Switched Varbase Search to add permissions using the Module Installer Factory to support Drupal 10
πŸ“Œ Task
Status

Fixed

Version

9.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.69.0 2024