Problem/Motivation
In #3552023: Recipes should support skipping config actions on entities that don't exist, the recipe system added support for "optional" config actions -- that is, config actions that don't run if the entity they are targeting doesn't exist.
The problem is, we forgot to update the recipe validation logic to account for the possibility of config action entity names starting with ?. This means, if you try to use this syntax, the recipe will immediately break with a message like this:
Config actions cannot be applied to ?user.role.content_editor because the ?user extension is not installed, and is not installed by this recipe or any of the recipes it depends on.
Proposed resolution
Fix the validation logic to strip out the leading ? from config action targets.
Issue fork drupal-3557156
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3557156-the--optional
changes, plain diff MR !13763
Comments
Comment #3
phenaproximaComment #4
nicxvan commentedLooks reasonable, test only fails as expected and coverage looks complete.
Comment #7
alexpottCommitted 556dded and pushed to 11.x. Thanks!
Committed 70e5d0d and pushed to 11.3.x. Thanks!