# |
Jan 8th 2019, 08:41 |
hmic |
zabot: make sure to sattisfy the requirements, regarding php verion and plugins. the cake shell outputs a message in the very beginning after bootstrapping the framework, if it gives no output, check the configuration files it loads |
# |
Jan 8th 2019, 08:30 |
Zabot |
Whats the best way to get some debugging information? I'm trying to set up a third party service that runs cake (passbolt) but running php bin/cake.php crashes immedietly with no output |
# |
Jan 8th 2019, 05:35 |
NickBusey |
Lol |
# |
Jan 8th 2019, 04:52 |
challgren |
Im guessing his PHPdocs suck |
# |
Jan 8th 2019, 04:49 |
challgren |
@dereuromark Using IDE Helper why would it keep removing a behavior method I had to define? The plugin is https://github.com/ProLoser/CakePHP-CSV and the method is importCsv() the Table does have a @mixin and I had to define `@method array importCsv(string $content, $fields = [], $options = []) !` just for PHPstan to not be whiney |
# |
Jan 8th 2019, 02:15 |
challgren |
My docker file |
# |
Jan 8th 2019, 02:15 |
challgren |
https://gitlab.com/snippets/1795782 |
# |
Jan 8th 2019, 02:10 |
challgren |
Took me a bit to find it |
# |
Jan 8th 2019, 02:10 |
challgren |
Yep |
# |
Jan 8th 2019, 01:51 |
NickBusey |
services: mariadb Didn't know you could do that |
# |
Jan 8th 2019, 01:08 |
challgren |
https://gitlab.com/snippets/1795770 |
# |
Jan 8th 2019, 01:04 |
challgren |
I have a gitlab ci that is Handy |
# |
Jan 8th 2019, 01:03 |
challgren |
An auditing app for electricians. About 3 weeks ago I finished ci testing now I'm doing bug fixes |
# |
Jan 8th 2019, 00:46 |
NickBusey |
I guess I'll either need to deploy a separate config for CI testing, or is there some way to pass a query param to cake to have it use the test db or something similar? |
# |
Jan 8th 2019, 00:45 |
NickBusey |
Ah, I realized the tests are failing now because I'm doing actual server requests, and it's trying to hit the non-test db for that.. |
# |
Jan 8th 2019, 00:44 |
NickBusey |
challgren: What are you working on? |
# |
Jan 8th 2019, 00:33 |
NickBusey |
Of course my latest push to GitLab with 100% coverage breaks the test runners, even though there were no config changes. Gahh |
# |
Jan 8th 2019, 00:14 |
NickBusey |
Last thing I need to figure out is just api based registration and login and all the cake-y stuff should be mostly sorted |
# |
Jan 7th 2019, 23:58 |
challgren |
Nick you are like 3 weeks behind me :P |
# |
Jan 7th 2019, 23:56 |
dereuromark |
nah not too specific |
# |
Jan 7th 2019, 23:56 |
NickBusey |
now* |
# |
Jan 7th 2019, 23:55 |
NickBusey |
well, no I gotta start actually building out the app, but if you have something specific you need I could probably take a look ;) |
# |
Jan 7th 2019, 23:49 |
dereuromark |
concrats^^ wnna help me with some plugins? |
# |
Jan 7th 2019, 23:47 |
NickBusey |
Not many lines for sure, but a nice starting place for a young project |
# |
Jan 7th 2019, 23:47 |
NickBusey |
Woot! Just hit 100% coverage. :) Lines: 100.00% (274/274) |
# |
Jan 7th 2019, 23:45 |
NickBusey |
`$this->modelClass` |
# |
Jan 7th 2019, 23:37 |
NickBusey |
Best way to grab the Table for the current Controller in a Trait? |
# |
Jan 7th 2019, 22:56 |
NickBusey |
Found my answer https://book.cakephp.org/3.0/en/development/testing.html#testing-actions-that-require-authentication |
# |
Jan 7th 2019, 22:40 |
NickBusey |
Hmm, trying to write some tests for my controller traits, but the cakedc/users plugin api key auth stuff is interfering with it. Is there any easy way to disable that plugin for this test? |
# |
Jan 7th 2019, 22:40 |
sdevore |
I’m rewriting a project from 1.3 days into 3.6.x right now (should be ready for 3.7+) and it started life in the 0.9 or so version because even if Larry had hair, mine would be even grayer ;) |
# |
Jan 7th 2019, 21:04 |
challgren |
but mainly active =true|false |
# |
Jan 7th 2019, 21:04 |
challgren |
I will have 1 use case |
# |
Jan 7th 2019, 21:04 |
ricksaccous |
oh |
# |
Jan 7th 2019, 21:04 |
challgren |
Ohh I dont do any conditions on associations |
# |
Jan 7th 2019, 21:03 |
ricksaccous |
associations has a conditions option |
# |
Jan 7th 2019, 21:03 |
challgren |
And like if logged in as superuser showing a bit more details |
# |
Jan 7th 2019, 21:03 |
ricksaccous |
I see |
# |
Jan 7th 2019, 21:02 |
challgren |
Yeah my use case is mainly condition restrictions such as only to the current tenant or current user |
# |
Jan 7th 2019, 21:01 |
ricksaccous |
doesn't play well with some aspects of pagination |
# |
Jan 7th 2019, 21:01 |
ricksaccous |
be careful with using finders to define associatons |
# |
Jan 7th 2019, 21:01 |
ricksaccous |
i don't use finders too often, usually just make a method in the model |