Log message #4220657

# At Username Text
# Jan 1st 2020, 18:09 slackebot it was a database connection issue?
# Jan 1st 2020, 18:09 kailas What’s the best/right way to handle intermittent, transient, errors while saving and test it? in a production system, in periods of increased database load, i’ve noticed that some of my saves seem to fail. my best guess at how to handle was to just keep trying to save up to n times, then quit. Also, how do you get the reason the save failed (if it wasn’t a validation error)? the return value from save is just null, right? how to know
# Jan 1st 2020, 17:08 brandon @adamd Sorry for late reply - I deleted the lock file and got the same message.
# Jan 1st 2020, 04:51 admad @luizcmarin https://github.com/UseMuffin/Orderly
# Dec 31st 2019, 21:47 alexdd55976 Happy new year to everyone of this great cake community wherever you are on this planet. Thanks to all developers. Keep up this great work.
# Dec 31st 2019, 20:35 luizcmarin thank you
# Dec 31st 2019, 20:35 ricksaccous good luck
# Dec 31st 2019, 20:35 ricksaccous something like that
# Dec 31st 2019, 20:35 ricksaccous $this->Cidades->Paiss->find('nameOrder');
# Dec 31st 2019, 20:34 ricksaccous a custom finder would simply be
# Dec 31st 2019, 20:34 ricksaccous that way you have it centralized
# Dec 31st 2019, 20:34 ricksaccous whatever that table method is
# Dec 31st 2019, 20:34 ricksaccous $paiss = $this->Cidades->tableMethod();
# Dec 31st 2019, 20:34 ricksaccous and from controller do
# Dec 31st 2019, 20:34 ricksaccous you can do it in table
# Dec 31st 2019, 20:27 luizcmarin I know it's a dumb question. So imagine where I got to ....:man-facepalming:
# Dec 31st 2019, 20:27 luizcmarin in controller?
# Dec 31st 2019, 20:26 luizcmarin $paiss = $this->Cidades->Paiss->find(_'list'_)->order([_'name'_ => _'ASC'_]); ?
# Dec 31st 2019, 20:25 ricksaccous and put the order in the finder
# Dec 31st 2019, 20:25 ricksaccous or you can create a finder
# Dec 31st 2019, 20:25 ricksaccous ex StudentsTable extends Table { public function getStudents() { $this->find()->order(['Students.name' => 'ASC']);
# Dec 31st 2019, 20:24 ricksaccous you can just create a query in the table class
# Dec 31st 2019, 20:23 luizcmarin I will rephrase the question: When you want a table to always be presented in alphabetical order (not primary key), how do you do it?
# Dec 31st 2019, 20:22 ricksaccous in the table class
# Dec 31st 2019, 20:22 ricksaccous you can do so in the query, but I think it's also a setting in the model
# Dec 31st 2019, 20:18 luizcmarin Is there any way to set a table to alphabetical order in the model? I want them to be in alphabetical order by name.
# Dec 31st 2019, 20:05 ricksaccous happy new YEAR
# Dec 31st 2019, 19:54 maymeow Happy New Year everyone :tada::sparkler::fireworks:
# Dec 31st 2019, 19:25 brian.french Also, cakephp/codeception is on the codeception/codeception 2.x branch, and their current branch is 4.x, almost seems worth dropping the project, unless it truly adds value.
# Dec 31st 2019, 19:24 brian.french @admad Yet, im my many instances, it doesn't seem to be installed. Including my fork of cakephp/app.
# Dec 31st 2019, 19:18 ricksaccous paste images i mean
# Dec 31st 2019, 19:17 ricksaccous weeeeee
# Dec 31st 2019, 19:17 ricksaccous how many of ur clients want wysiwyg editors where they can just paste from clipboard in?
# Dec 31st 2019, 18:41 admad Conditionally, which i am aware of
# Dec 31st 2019, 17:41 brian.french @admad It's being used in the app skeleton. https://github.com/cakephp/app/blob/master/src/Console/Installer.php#L66
# Dec 31st 2019, 15:19 birdy247 but want to get master back to the state before I started work
# Dec 31st 2019, 15:19 birdy247 I just made a new branch which the changes I want to keep
# Dec 31st 2019, 15:19 birdy247 assuming I have already pushed
# Dec 31st 2019, 15:19 birdy247 @dereuromark can I revert to a specific commit and then push this to master
# Dec 31st 2019, 15:09 birdy247 when they were always in master
# Dec 31st 2019, 15:09 birdy247 What I dont get, in the merge commite, its saying that files have been added