Allow customizing the namespace and destination when exporting a model as recipe with drush

Created on 16 October 2024, 6 months ago

Problem/Motivation

I couldn't find where my ECA models exported as recipes with the drush command eca:model:export were ending up on my pc (when developing locally with DDEV - for the record, the current default is temporary://recipe, which you can find with ddev ssh; cd ../../../tmp/recipe), and the standard of where to store recipes is still not well established, so I suggest we let users define the destination and the namespace (which is relevant for the composer package) when exporting with drush.

I would also suggest to change the default destination from temporary://recipe to ../recipes/[model_id], because the former requires changing the settings.php file to customize it and doesn't include the model being exported (so that the next export will override the same destination), and because the standard location for recipes seems to be ../recipes (relative to the web root) nowadays, but I didn't include this change in the Merge Request since it's debatable.

As always, thanks for the great suite of modules and the infinite support you're providing @jurgenhaas 💙

Proposed resolution

Adding 2 options for the drush command, destination and namespace, such that I can run ddev drush eca:model:export my_process --destination=../recipes/my_process --namespace=my_org.

MR coming (this is my first ever issue fork & merge request on Gitlab so pls be patient 😅)..

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇮🇹Italy kopeboy Milan

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

Merge Requests

Comments & Activities

  • Issue created by @kopeboy
  • 🇮🇹Italy kopeboy Milan

    Should be ok 🙃🤞🏻

  • Pipeline finished with Failed
    6 months ago
    Total: 451s
    #311657
  • 🇩🇪Germany jurgenhaas Gottmadingen

    MR coming (this is my first ever issue fork & merge request on Gitlab so pls be patient 😅)..

    Well done! This is an excellent premiere.

    I left an inline comment in your MR which should be addressed. Nothing major, so you're close to the finish line.

  • Pipeline finished with Success
    6 months ago
    Total: 871s
    #312815
  • Pipeline finished with Skipped
    6 months ago
    #312871
  • Pipeline finished with Skipped
    6 months ago
    #312872
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Congratulations to your first MR, just merged it. Well done!

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Failed
    4 months ago
    Total: 555s
    #363322
  • Pipeline finished with Failed
    4 months ago
    Total: 553s
    #363323
  • Pipeline finished with Failed
    4 months ago
    Total: 783s
    #367747
  • Pipeline finished with Failed
    4 months ago
    Total: 839s
    #367764
  • Pipeline finished with Failed
    4 months ago
    Total: 917s
    #370972
  • Pipeline finished with Failed
    4 months ago
    Total: 671s
    #371030
  • Pipeline finished with Canceled
    4 months ago
    Total: 65s
    #371109
  • Pipeline finished with Failed
    4 months ago
    Total: 672s
    #371110
  • Pipeline finished with Failed
    4 months ago
    Total: 685s
    #371116
  • Pipeline finished with Failed
    4 months ago
    Total: 707s
    #371583
  • Pipeline finished with Failed
    4 months ago
    Total: 972s
    #371626
  • Pipeline finished with Failed
    4 months ago
    Total: 746s
    #372792
  • Pipeline finished with Failed
    4 months ago
    Total: 773s
    #372812
  • Pipeline finished with Failed
    4 months ago
    Total: 706s
    #372846
  • Pipeline finished with Failed
    4 months ago
    Total: 794s
    #375181
  • Pipeline finished with Failed
    3 months ago
    Total: 1219s
    #387162
  • Pipeline finished with Failed
    3 months ago
    Total: 824s
    #387480
  • Pipeline finished with Failed
    3 months ago
    Total: 737s
    #387535
  • Pipeline finished with Failed
    3 months ago
    Total: 802s
    #389107
  • Pipeline finished with Failed
    3 months ago
    Total: 898s
    #390601
  • Pipeline finished with Failed
    3 months ago
    Total: 689s
    #390623
  • Pipeline finished with Failed
    3 months ago
    Total: 711s
    #390694
  • Pipeline finished with Failed
    3 months ago
    Total: 705s
    #390731
  • Pipeline finished with Failed
    3 months ago
    Total: 744s
    #390767
  • Pipeline finished with Success
    3 months ago
    Total: 942s
    #392350
  • Pipeline finished with Success
    3 months ago
    Total: 900s
    #394666
  • Pipeline finished with Success
    3 months ago
    Total: 863s
    #394776
  • Pipeline finished with Success
    3 months ago
    Total: 2116s
    #397316
  • Pipeline finished with Success
    3 months ago
    Total: 32565s
    #398006
  • Pipeline finished with Success
    about 2 months ago
    Total: 205s
    #420051
Production build 0.71.5 2024