Browse Source

Merged in FD3-219 (pull request #14)

FD3-219 - Agregado del archivos parameters.yml

Approved-by: Guillermo Espinoza <guillermo@interlink.com.ar>
Gabriel Gosparo 7 years ago
parent
commit
2bf991fb89

+ 2 - 1
.drone.yml

@@ -29,12 +29,13 @@ pipeline:
       
       - echo 'client = Flowdat3-Stats-Drone-Test' | tee /etc/flowdat.conf
 
+      - cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml
       - chmod 0400 keys/bitbucket.id_rsa
       - eval $(ssh-agent); ssh-add keys/bitbucket.id_rsa
       - composer install --no-interaction --no-progress
       - chmod 0777 -R var/logs var/cache var/sessions
       - php bin/console doctrine:schema:update --force -vvv --env=test
-      - vendor/phpunit/phpunit/phpunit --tap
+      - vendor/phpunit/phpunit/phpunit --tap -c phpunit.xml.dist
 
  docker:
    repo : docker.infra.flowdat.com/fd3/stats

+ 1 - 0
.gitignore

@@ -16,4 +16,5 @@
 /vendor/
 /web/bundles/
 /app/config/bundles/ik/webservice-bundle/parameters.yml
+/app/config/bundles/ik/base-admin-bundle/parameters.yml
 /app/config/bundles/hwi/oauth-bundle/parameters.yml

+ 2 - 0
Dockerfile

@@ -4,6 +4,7 @@ EXPOSE 8000
 ADD . /opt/stats
 
 RUN rm /opt/stats/var/cache/* -rf
+RUN cp /opt/stats/app/config/bundles/ik/base-admin-bundle/parameters.yml.dist /opt/stats/app/config/bundles/ik/base-admin-bundle/parameters.yml
 
 WORKDIR /opt/stats
 
@@ -27,6 +28,7 @@ CMD  eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install -
      cp app/config/parameters.yml.docker app/config/parameters.yml ;\
      cp app/config/bundles/hwi/oauth-bundle/parameters.yml.docker app/config/bundles/hwi/oauth-bundle/parameters.yml ;\
      cp app/config/bundles/ik/webservice-bundle/parameters.yml.docker app/config/bundles/ik/webservice-bundle/parameters.yml ;\
+     cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml ;\
      composer dump-autoload ;\
      composer run-script symfony-scripts --no-interaction ;\
      bin/console server:run 0.0.0.0

+ 3 - 0
app/config/bundles/ik/base-admin-bundle/parameters.yml.dist

@@ -0,0 +1,3 @@
+parameters:
+    # el valor esta en segundos
+    app.checked_is_user_logged_in: 600

+ 2 - 0
app/config/config.yml

@@ -5,6 +5,7 @@ imports:
     
     - { resource: "bundles/friendsofsymfony/rest-bundle/config.yml" }
     - { resource: "bundles/ik/webservice-bundle/parameters.yml" }
+    - { resource: "bundles/ik/base-admin-bundle/parameters.yml" }
     - { resource: "bundles/hwi/oauth-bundle/parameters.yml" }
     - { resource: "@BaseOAuthClientBundle/Resources/config/services.yml" }
     - { resource: "@BaseOAuthClientBundle/Resources/config/hwioauthbundle/services.yml" }
@@ -60,6 +61,7 @@ twig:
     strict_variables: '%kernel.debug%'
     globals:
         fd_alerts: '@base_admin.alert_service'
+        checked_is_user_logged_in: '%app.checked_is_user_logged_in%'
 
 # Doctrine Configuration
 doctrine:

+ 4 - 5
app/config/routing.yml

@@ -51,10 +51,6 @@ base_oauth_client:
 base_hwioauthbundle_oauth_client:
     resource: "@BaseOAuthClientBundle/Resources/config/hwioauthbundle/routing.yml"    
 
-admin_tenancy_change_tenancy_global_ajax:
-    path: changeTenancyAjaxAction
-    defaults: { _controller: BaseAdminBundle:RedirectionAjax:changeTenancyAjax }
-
 baseadmin_alert:
     resource: "@BaseAdminBundle/Controller"
     type:     annotation
@@ -62,4 +58,7 @@ baseadmin_alert:
 audit:
     resource: "@AuditBundle/Controller/"
     type:     annotation
-    prefix:   /
+    prefix:   /
+
+base_admin:
+    resource: "@BaseAdminBundle/Resources/config/routing.yml"

+ 3 - 0
composer.json

@@ -224,6 +224,9 @@
             },
             {
                 "file": "app/config/bundles/ik/audit-bundle/parameters.yml"
+            },
+            {
+                "file": "app/config/bundles/ik/base-admin-bundle/parameters.yml"
             }
         ],
         "branch-alias": null

+ 3 - 3
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "content-hash": "473e31584e4af0ad5d5e8b248db675b1",
+    "content-hash": "7c24da369da06dc273d0830c26697678",
     "packages": [
         {
             "name": "behat/transliterator",
@@ -1655,7 +1655,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/WorkflowBundle.git",
-                "reference": "8a30206efe0b94fd556c22b5bebdb2931623f29f"
+                "reference": "f36e657c55bae40799fcdbf6860c95375c698c74"
             },
             "require": {
                 "php-amqplib/rabbitmq-bundle": "^1.12"
@@ -1685,7 +1685,7 @@
                 "bundle",
                 "workflow"
             ],
-            "time": "2017-10-13T11:07:50+00:00"
+            "time": "2017-10-13T13:56:06+00:00"
         },
         {
             "name": "incenteev/composer-parameter-handler",