浏览代码

FD3-641 update vendors y migration para la entidad Action

Espinoza Guillermo 6 年之前
父节点
当前提交
69854af69e
共有 4 个文件被更改,包括 13 次插入21 次删除
  1. 2 2
      app/DoctrineMigrations/src/action.yml
  2. 3 13
      app/Resources/workflows/workflow_list.yml.dist
  3. 6 4
      composer.json
  4. 2 2
      composer.lock

+ 2 - 2
app/DoctrineMigrations/src/action.yml

@@ -75,7 +75,7 @@ insertorupdate:
         -
           id: 10
           name: "Crear Acceso Radius"
-          workflow_name: "administrative_state"
+          workflow_name: "onu_workflow,onu_workflow_2"
           object_class: "FTTHBundle\\Entity\\ONU"
           event: "a:1:{i:0;s:5:\"enter\";}"
           event_reference: "active"
@@ -102,7 +102,7 @@ insertorupdate:
         -
           id: 13
           name: "Borrar Radius Config"
-          workflow_name: "administrative_state"
+          workflow_name: "onu_workflow,onu_workflow_2"
           object_class: "FTTHBundle\\Entity\\ONU"
           event: "a:1:{i:0;s:5:\"enter\";}"
           event_reference: "disable"

+ 3 - 13
app/Resources/workflows/workflow_list.yml.dist

@@ -49,19 +49,12 @@ framework:
           - currentState
       supports:
         - FTTHBundle\Entity\ONU
-      initial_place: created
+      initial_place: active
       places:
-        - created
-        - deleted
         - active
         - disable
+        - deleted
       transitions:
-        created_active:
-          from: created
-          to: active
-        created_deleted:
-          from: created
-          to: deleted
         active:
           from: disable
           to: active
@@ -76,7 +69,4 @@ framework:
           to: disable
         active_deleted:
           from: active
-          to: deleted
-        deleted_created:
-          from: deleted
-          to: created
+          to: deleted

+ 6 - 4
composer.json

@@ -182,8 +182,7 @@
             "chown -Rf www-data:www-data app/Resources/workflows",
             "cp -n app/Resources/workflows/workflow_list.yml.dist app/Resources/workflows/workflow_list.yml",
             "chown -Rf www-data:www-data app/Resources/workflows/workflow_list.yml",
-            "chown -Rf www-data:www-data web/workflows_png",
-            "php bin/console workflow:default --class=FTTHBundle\\\\Entity\\\\ONU --all"
+            "chown -Rf www-data:www-data web/workflows_png"
         ],
         "symfony-scripts": [
             "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
@@ -199,6 +198,7 @@
         "doctrine-migrations": "php bin/console doctrine:migrations:migrate --no-interaction -vvv",
         "doctrine-update": "php bin/console doctrine:schema:update --force",
         "auto-increment": "php bin/console baseadmin:autoincrement",
+        "workflow-default": "php bin/console workflow:default --class=FTTHBundle\\\\Entity\\\\ONU --all",
         "post-install-cmd": [
             "@workflows-commands",
             "@symfony-scripts",
@@ -208,14 +208,16 @@
             "@doctrine-update",
             "@auto-increment",
             "@doctrine-migrations-down",
-            "@doctrine-migrations"
+            "@doctrine-migrations",
+            "@workflow-default"
         ],
         "post-update-cmd": [
             "@workflows-commands",
             "@symfony-scripts",
             "@mkdir-dir-cache-sessions-logs",
             "@chmod-dir-cache-sessions-logs",
-            "@auto-increment"
+            "@auto-increment",
+            "@workflow-default"
         ]
     },
     "extra": {

+ 2 - 2
composer.lock

@@ -2200,7 +2200,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/WorkflowBundle.git",
-                "reference": "b6ea92f53b7dc06a6697f25872039eeb0e8091f2"
+                "reference": "4bcfb74be54ed159eb42b348c073178992cdfbc5"
             },
             "require": {
                 "php-amqplib/rabbitmq-bundle": "^1.12"
@@ -2230,7 +2230,7 @@
                 "bundle",
                 "workflow"
             ],
-            "time": "2018-08-15T13:38:08+00:00"
+            "time": "2018-08-17T18:07:32+00:00"
         },
         {
             "name": "incenteev/composer-parameter-handler",