Log message #4218767

# At Username Text
# Dec 14th 2019, 14:19 luizcmarin hi,
# Dec 14th 2019, 14:16 admad why should it be integrated into core? the skeleton app already has support for it
# Dec 14th 2019, 13:29 dsar When php-dotenv will be integrated in the core?
# Dec 14th 2019, 11:07 dsar Automation is usually blind :) of course with some exceptions
# Dec 14th 2019, 10:49 noel @dsar I'm talking about continuous integration (CI). This generally means automated deployments via something like Jenkins to an environment. I don't really know what you mean by "blindly".
# Dec 14th 2019, 10:42 challgren The initial machine setup shouldn't be blindly setup but after that it should
# Dec 14th 2019, 10:41 dsar What do you mean by automate deployments? In my opinion the deployment is not something that is convenient to (blindly) automate
# Dec 14th 2019, 10:37 challgren For our app, we use env vars so our app_local mainly includes env(‘var’) in it and we just commit it.
# Dec 14th 2019, 10:36 noel So... one can't fully automate deployments then?
# Dec 14th 2019, 10:35 challgren Like `app_local.php` you’d create it manually and upload it. app_custom.php would be in git
# Dec 14th 2019, 10:34 noel Ok... so then how do I deploy the local config for a given env? E.g. 'app_staging.php`?
# Dec 14th 2019, 10:34 challgren https://github.com/cakephp/app/blob/master/src/Console/Installer.php
# Dec 14th 2019, 10:33 challgren https://github.com/cakephp/app/blob/master/composer.json#L38
# Dec 14th 2019, 10:33 noel oh
# Dec 14th 2019, 10:33 challgren when you run composer install its copied from app.default.php
# Dec 14th 2019, 10:32 noel @challgren thx – I read it but I'm not really understanding how to deploy `app.php` – it's not part of the shell script. So how would it be created for a given deployment?
# Dec 14th 2019, 10:29 noel I'm trying to achieve that when deploying an app I don't have to manually write an app.php file for that environment each time.
# Dec 14th 2019, 10:28 dsar What are you trying to achieve?
# Dec 14th 2019, 10:25 challgren https://sandbox.dereuromark.de/pages/best-practices is a good doc about Config
# Dec 14th 2019, 10:25 challgren Not really because if you have machine specific stuff such as API logins you dont want that in git
# Dec 14th 2019, 10:23 noel I'm not understanding `/config/app.php` is in `.gitignore` when the documentation says: "The application skeleton features a config/app.php file which should contain configuration that doesn’t vary across the various environments your application is deployed in." Surely that means one wants `app.php` to be deployed to all environments and therefor it should be in the git repo?
# Dec 14th 2019, 10:22 noel @dsar I wanted some custom setting actually, namespace was just an example.
# Dec 14th 2019, 10:22 noel Ok found the answer. ```use Cake\Core\Configure; Configure::read('App.myConfigSetting')```
# Dec 14th 2019, 10:21 dsar You shouldn't access that variable in views since it defines internal stuff, what are you trying to achieve?
# Dec 14th 2019, 10:08 noel App.php defines some stuff like: ```'App' => [ 'namespace' => 'App',``` How can I access these in a view / template?
# Dec 14th 2019, 07:59 noel Problem solved. It seems one can't pass config to `crud` via the $components property, only if one sets up the component via `initialize` instead. Resolution shown in the issue linked above in case anyone cares :)
# Dec 14th 2019, 07:43 noel Ah.. ok. Thanks for clarifying.
# Dec 14th 2019, 07:43 admad that's because the initially the support for jsonapi was implemented within crud plugin itself (which i am a maintainer of) and it was later split into separate plugin
# Dec 14th 2019, 07:42 noel Oh.. but you're listed as a contributor on the github repo with 158 commits?
# Dec 14th 2019, 07:41 admad i have never used that plugin or been involved in it's maintenance so can't help you
# Dec 14th 2019, 07:32 noel @admad I added an issue: https://github.com/FriendsOfCake/crud-json-api/issues/103 Could you please give me some guidance? I'm not sure if it's a bug or just misuse on my part.
# Dec 14th 2019, 07:31 noel Ok nevermind. I was able to set the config on the route instead.
# Dec 14th 2019, 07:23 slackebot $this->Crud->config(['inflect' => false]); }``` but I'm getting an error: ```Call to a member function config() on bool```
# Dec 14th 2019, 07:23 noel I'm trying to set config for `crud-json-api` in my AppController: ```class AppController extends Controller { use \Crud\Controller\ControllerTrait; public $components = [ 'RequestHandler', 'Crud.Crud' => [ 'actions' => [ 'Crud.Index', ], 'listeners' => [ 'CrudJsonApi.JsonApi', 'CrudJsonApi.Pagination', ], ], ]; public function initialize() { parent::initialize();
# Dec 14th 2019, 07:13 noel Morning all. Who else is working on Saturday :)
# Dec 14th 2019, 00:03 challgren @damiano they can generate it via an app or you can send it via SMS its up to you
# Dec 13th 2019, 20:09 alexander.volle @daniel.upshaw Yeah, thanks, that works. Seems rather "hacky" though. Isn't the point of the option valueSources to select which source to get the field values from? Do you think this is a bug?
# Dec 13th 2019, 20:02 daniel.upshaw @alexander.volle, would it work to redirect the page to start it fresh that way?
# Dec 13th 2019, 19:54 slackebot ```$this->Form->create($entity, ['valueSources' => ['context']])``` when creating the form, but the previous entity value still shows up, as it fetches it from the request data. There is no request method to remove all data, so please, do you guys have a proposal so solve this?
# Dec 13th 2019, 19:54 alexander.volle I have a form that saves a new entity. After saving this new entity, I want the user to be able to add another new entity using the same form. After saving the first entity, I use ```$entity->newEmptyEntity() ``` to remove all previous values from the entity, before rendering the form again. Problem is that the form fetches field values from the request data, which has not been reset/removed. I tried using
# Dec 13th 2019, 19:28 daniel.upshaw https://github.com/cakephp/docs/pull/6323