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

Created on 22 June 2023, over 1 year ago
Updated 24 June 2023, over 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.71.5 2024