Problem/Motivation
I'm currently working on incorporating ECA into a Drupal site template, using more than a dozen ECA models. Three of them trigger fatal errors during the installation however. The errors thrown look like this:
ResponseText: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "eca_workflow_transition:session_acceptance" plugin does not exist. Valid plugin IDs for Drupal\Core\Action\ActionManager are: easy_email_send,...
Steps to reproduce
Use the development version of event_platform_starter which is currently at https://git.drupalcode.org/project/event_platform_starter/-/merge_reques... and requires https://git.drupalcode.org/sandbox/mandclu-3576733/-/commit/b125ca567af5.... I intend to promote this to a full project soon and cut a release soon but for now the project includes a later commit which includes the fix suggested in the MR here, so to reproduce the error it's helpful to use a version without the fix. This helper module can be pulled into a fresh install of Drupal CMS as a custom module for now. Run the installer and select the Event Platform site template. Observe that it throws three fatal errors.
Proposed resolution
Add a workflow_insert hook to the existing eca_workflow submodule.
Issue fork eca-3577088
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 #3
mandclu commentedThe MR created here seems to work, but the unit tests need some attention to pass again.
Comment #4
mandclu commentedThe tests are all passing now, so this is ready for review.
Comment #7
jurgenhaasThis is great, thanks @mandclu and @phenaproxima for providing this. I've re-targeted this for 3.1.x and will then backport to 3.0.x
Comment #9
jurgenhaas