# |
Apr 5th 2019, 12:18 |
val |
@admad should the bootstrap file be always the test command parameter in the console? |
# |
Apr 5th 2019, 12:11 |
admad |
@val boostrap file of your test suite |
# |
Apr 5th 2019, 12:08 |
johnwayne |
Hi, is there way to fetch Email template out of `new Email->template($template)` function. I am using extern Microservice for sending Emails, there is `html` param where I have to use CakePhp Email template. Is there a way to do this or not...? |
# |
Apr 5th 2019, 12:07 |
admad |
IIRC that's what the error message was telling you "Access denied" |
# |
Apr 5th 2019, 11:38 |
weto.jc |
Good morning, I managed to solve the connection problem, the problem was permission, the admin user was not allowed to access the database as the @ricksaccous, thank you very much. |
# |
Apr 5th 2019, 11:37 |
dereuromark |
and yeah not core for sure. check out my setup plugin it already contains tons of these schema and model checks. |
# |
Apr 5th 2019, 11:37 |
dereuromark |
its not an rfc if this is plugin solution |
# |
Apr 5th 2019, 11:32 |
neon1024 |
It could make a nice plugin |
# |
Apr 5th 2019, 11:32 |
neon1024 |
Open an RFC though for sure :thumbsup: |
# |
Apr 5th 2019, 11:31 |
neon1024 |
It might be helpful, but I don’t see the value myself :slightly_smiling_face: |
# |
Apr 5th 2019, 11:31 |
marek.sebera |
yes, you can see if the columns are unvalidated, then decide if that is something you want to change |
# |
Apr 5th 2019, 11:31 |
neon1024 |
Er, no. TDD is a development methodology, and an Integration Test is a form of automated testing |
# |
Apr 5th 2019, 11:31 |
neon1024 |
That’s be design, and presumably this functionality would flag that as an error or warning |
# |
Apr 5th 2019, 11:31 |
marek.sebera |
integration test meaning TDD ? |
# |
Apr 5th 2019, 11:30 |
neon1024 |
Also I have some columns which intentionally have no validation |
# |
Apr 5th 2019, 11:30 |
neon1024 |
Wouldn’t that be an integration test? |
# |
Apr 5th 2019, 11:30 |
marek.sebera |
basically even when the app works, checking, if all the columns are included in validator or model behavior, if db-table constraints are handled in `buildRules`, etc... |
# |
Apr 5th 2019, 11:29 |
neon1024 |
Also not something which would be in the core in my opinion at least (I’m not in the core team) |
# |
Apr 5th 2019, 11:29 |
neon1024 |
Sounds like a shell |
# |
Apr 5th 2019, 11:28 |
marek.sebera |
@neon1024 rapid development validation, how to find out that db has changed without appropriate change in implementation, because that happens |
# |
Apr 5th 2019, 11:26 |
neon1024 |
@marek.sebera What’s the use-case? |
# |
Apr 5th 2019, 11:23 |
marek.sebera |
best I'd see is to iterate all available models in TableRegistry, and diff keys of getSchema()->columns and getValidator()->_fields |
# |
Apr 5th 2019, 11:22 |
marek.sebera |
hi, before i write RFC ticket, is there any introspection validation of model validator, that would show, what model fields are not validated through default Validator? |
# |
Apr 5th 2019, 11:22 |
val |
Hi, what would be the best place to call `ConnectionManager::alias('test', 'default');` when using standalone ORM? https://github.com/cakephp/orm |
# |
Apr 5th 2019, 10:58 |
HD |
tamne cakephp aavde che |
# |
Apr 5th 2019, 10:58 |
HD |
OKAY |
# |
Apr 5th 2019, 10:57 |
HD |
HI |
# |
Apr 5th 2019, 10:48 |
asdfgh |
done! good |
# |
Apr 5th 2019, 10:43 |
asdfgh |
ok |
# |
Apr 5th 2019, 10:43 |
asdfgh |
there is a key |
# |
Apr 5th 2019, 10:41 |
asdfgh |
EncryptedCookieMiddleware |
# |
Apr 5th 2019, 10:41 |
asdfgh |
that encrypt |
# |
Apr 5th 2019, 10:40 |
asdfgh |
neon1024 no i said a stupid thing...the problem is the middlware |
# |
Apr 5th 2019, 10:40 |
neon1024 |
No. |
# |
Apr 5th 2019, 10:40 |
asdfgh |
neon1024 so creating a similar cookie class that accept the key as parameter |
# |
Apr 5th 2019, 10:36 |
neon1024 |
Although you’d probably have to inject it into the Cookie class when it’s instantiated, or when you’re writing cookies |
# |
Apr 5th 2019, 10:36 |
neon1024 |
You could just do a new Configure::write() to create a new key for cookies |
# |
Apr 5th 2019, 10:35 |
asdfgh |
is it better to ask users to update their passwords? |
# |
Apr 5th 2019, 10:27 |
asdfgh |
*i have used |
# |
Apr 5th 2019, 10:25 |
asdfgh |
how can i create a custom encrypt key for cookie only ? |
# |
Apr 5th 2019, 10:25 |
asdfgh |
but i cannot change the salt (for the Auth component reason) |