Problem/Motivation
In https://git.drupalcode.org/project/distributions_recipes/-/merge_request..., Wim asked for us to validate that the config actions listed in the config.actions section of recipe.yml all exist.
This is problematic because the actions might not exist until all the modules in the recipe's stack -- that is, everything in the recipe's install list, as well as the install lists of every recipe it implicitly depends on -- are enabled. There is currently no way to "defer" validation to that point. And we don't need to do that -- after all, if a config action doesn't exist, the config action manager will throw an exception, and the recipe should be rolled back. So we should at least ensure we add test coverage.
Issue fork distributions_recipes-3423523
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:
Comments
Comment #2
phenaproximaComment #3
phenaproximaComment #4
narendrarComment #5
wim leersLet's start with adding test coverage for this, so we can ensure the DX is informative, and actually points the Recipe author in the right direction? 😊
Comment #7
narendrarWhile working on this issue it seems that the failing test is already handling the PluginNotFoundException.
https://git.drupalcode.org/issue/distributions_recipes-3423523/-/jobs/94...
Not sure if the changes I did are required or not.
Comment #8
phenaproximaYou know, that's a good point...what if we changed this line in RecipeCommand:
to this:
...and just let the plugin system do its thing? Rather than trying to introduce some sort of complicated validation? We could keep the expanded test coverage.
Comment #9
phenaproximaNo complaints here; just retitling for clarity on the actual resolution.
Does need an issue summary update, though.
Comment #10
phenaproximaComment #11
alexpottCommitted and pushed f4b42298b1e to 11.x and 87ae57111d8 to 10.3.x. Thanks!