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.
- Add Remove non-existent permissions function to be used for upgrades with missing static and dynamic permissions #10
- ✅ Released Vardot/module-installer-factory 1.0.3
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 permissionsand resolve any inconsistencies in entity and field definitions
Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #14
rajab natshahdrush varbase:remove-non-existent-permissionsRemove non-existent permissions, to be used for upgrades with missing static and dynamic permissions
drush varbase:entity-updateEntity 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 listin a Varbase site to see the followingComment #15
rajab natshahComment #16
rajab natshah✅ Released varbase_core-9.0.71
Comment #17
rajab natshah✅ Released varbase_core-9.1.7
Comment #18
rajab natshah✅ Released varbase_core-10.0.0-rc5
Comment #19
rajab natshahComment #21
rajab natshah✅ Released varbase-9.1.0
Comment #22
rajab natshah✅ Released varbase-10.0.0-rc1
Comment #23
rajab natshahComment #24
rajab natshah