Problems when upgrading from 2.x to 3.x

Created on 2 December 2024, 20 days ago

Problem/Motivation

When upgrading from 2.0.0 to 3.0.0-beta2, we encountered errors in our update hooks:

>  [error]  Adding non-existent permissions to a role is not allowed. The incorrect permissions are "administer search api exclude entity".

Steps to reproduce

1. On a site with 2.x, add an update hook in a site module that changes permissions or enables modules
2. Upgrade to 3.x in the same release as the custom update hook

Proposed resolution

Change the hook_post_update_NAME implementation added in 🐛 Permission "administer search api exclude entity" is confusing Fixed .

That will allow other modules to use hook_update_dependencies to run after the permission change from this module.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom malcomio

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024