Move frontend_editing_update_11004 to post update

Created on 13 December 2023, about 1 year ago
Updated 10 January 2024, 11 months ago

If you update frontend_editing as part of a Drupal 10 update frontend_editing_11004 runs before user_update_10000 which can lead to failing deployments.

In the past non-existing permission were allowed in roles, but in D10 they are not allowed anymore and when frontend_editing_update_11004 trys to add permissions before the old ones were cleaned up from user_update_10000 it can trigger an error like the following:

  >  [notice] Update started: frontend_editing_update_11004
  >  [error]  Adding non-existent permissions to a role is not allowed. The i
  ncorrect permissions are "clone faq content", "enter faq revision log entry
  ", "override faq authored by option", "override faq authored on option", "o
  verride faq published option", "view any unpublished faq content".
  >  [error]  Update failed: frontend_editing_update_11004

This can be prevented if frontend_editing_update_11004 runs after user_update_10000.

I'll provide a patch.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

leymannx Berlin

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

Comments & Activities

Production build 0.71.5 2024