Problem/Motivation

Have you faced an issue with missing static or dynamic permissions while updating?
or after disabling/uninstalling a module?

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

Proposed resolution

drush varbase:remove-non-existent-permissions

Remove non-existent permissions, to be used for upgrades with missing static and dynamic permissions

drush varbase:entity-update

Entity updates to clear up any mismatched entity and/or field definitions. Fix changes were detected in the entity type and field definitions.

Run ./bin/drush varbase list in a Varbase site to see them after updates.

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
  • ➖ UX/UI designer responsibilities
  • ➖ 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.17, varbase_core-9.0.71, varbase-9.1.0, varbase_core-9.1.7, varbase-10.0.0-rc1, varbase_core-10.0.0-rc5

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 #3397695: Added Varbase Drush commands to address non-existent permissions and resolve any inconsistencies in entity and field definitions

Comments

Rajab Natshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

  • Rajab Natshah committed 1594b7f8 on 9.1.x
    Issue #3397695: Add  Varbase Drush commands to address non-existent...

  • Rajab Natshah committed bb24d108 on 9.0.x
    Issue #3397695: Add  Varbase Drush commands to address non-existent...

  • Rajab Natshah committed 958e2822 on 10.0.x
    Issue #3397695: Add  Varbase Drush commands to address non-existent...

  • Rajab Natshah committed df686a5c on 10.0.x
    Issue #3397695: Add  Varbase Drush commands to address non-existent...

  • Rajab Natshah committed cd8f3966 on 9.1.x
    Issue #3397695: Add  Varbase Drush commands to address non-existent...

  • Rajab Natshah committed cfbe5e03 on 9.0.x
    Issue #3397695: Add Varbase Drush commands to address non-existent...

  • Rajab Natshah committed 42f7505d on 9.0.x
    Issue #3397695: Add Varbase Drush commands to address non-existent...

  • Rajab Natshah committed 99059be7 on 9.1.x
    Issue #3397695: Add Varbase Drush commands to address non-existent...

  • Rajab Natshah committed f4a37ed2 on 10.0.x
    Issue #3397695: Add Varbase Drush commands to address non-existent...

  • Rajab Natshah committed 1ee9da72 on 10.0.x
    Issue #3397695: Add Varbase Drush commands to address non-existent...
rajab natshah’s picture

drush varbase:remove-non-existent-permissions

Remove non-existent permissions, to be used for upgrades with missing static and dynamic permissions

drush varbase:entity-update

Entity updates to clear up any mismatched entity and/or field definitions. Fix changes were detected in the entity type and field definitions.

Run ./bin/drush list in a Varbase site to see the following

varbase:                                                                                                                                                                        
  varbase:entity-update (edupdb)                                                       Entity updates to clear up any mismatched entity and/or field definitions Fix changes    
                                                                                       were detected in the entity type and field definitions.                                  
  varbase:remove-non-existent-permissions (rnep)                                       Remove non-existent permissions, to be used for upgrades with missing static and dynamic 
                                                                                       permissions.   
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes

✅ Released varbase_core-9.0.71

rajab natshah’s picture

Issue summary: View changes

✅ Released varbase_core-9.1.7

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-9.1.0

rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-10.0.0-rc1

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes