Add archive action to 3.0.x branch

Created on 5 September 2023, 10 months ago
Updated 6 September 2023, 10 months ago

Problem/Motivation

I had installed this module, and then decided to upgrade from the 2.0.x branch to 3.0.x branch, since the workflow is slightly customized (add an In Review step). Afterwards, I ended up having fatal errors with a number of common operations. I'm not sure if it's because I had already enabled the archive action as a bulk operation, but I had fatal errors trying a number of common places that seem unrelated, such as uninstalling a module.

The errors looked like:
RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "moderated content bulk archive". in Drupal\user\Entity\Role->calculateDependencies() (line 207 of /home/ide/project/docroot/core/modules/user/src/Entity/Role.php).

I later noticed that the permissions and action class for the archive operation are not present in the 3.0.x branch.

Proposed resolution

Either provide this as an option (as it exists in the 2.0.x branch) or if it will only ever be available in a different form, create an update hook so sites upgrading from 2.0.x to 3.0.x don't experience fatal errors.

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada mandclu

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

Comments & Activities

Production build 0.69.0 2024