Drush commands to disable/enable all ECA models

Created on 24 August 2022, over 2 years ago
Updated 22 November 2024, 5 months ago

Problem/Motivation

There are situations, e.g. when calling migrate:import, where ECA should not be active. We already have a kill switch, but that can only be turned on in settings, and that's not easily possible when running scripts from the commands line.

Instead, invoking a drush command that disables all existing ECA models, would be much more convenient. Afterwards, enabling them all at once again with a drush command as well, will make things complete.

Proposed resolution

Implement 2 new drush commands utilizing the already existing enable/disable functions implemented in modellers.

Feature request
Status

Fixed

Version

1.1

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇵🇱Poland azovsky

    I am not sure why... but Drush 12 or 13 not see any ECA commands:

    E.g. for " drush eca:disable":

    There are no commands defined in the "eca" namespace.

    Drupal version : 10.3.9
    PHP version : 8.3.12
    Drush version : 13.3.3.0

Production build 0.71.5 2024