Log message #4222163

# At Username Text
# Jan 13th 2020, 16:13 neon1024 For most of the reasons you’ve pointed out
# Jan 13th 2020, 16:13 neon1024 The API is garbage now
# Jan 13th 2020, 16:13 neon1024 Validation? Nope. :hankey: :fire:
# Jan 13th 2020, 16:12 slackebot types. `->requirePresence('fieldname', false)` would cover the condition of the field not being present in the data array, but I want to avoid tripping any validation errors if it _is_ present and `null`. Anyone have any advice?
# Jan 13th 2020, 16:12 phantomwatson I'm somehow forgetting a basic validation thing for CakePHP 3. If a field is a nullable integer field, does `$validator->integer('fieldname')` cover that, or is an `->allowEmptyFoo()` rule also necessary? With `allowEmpty()` being deprecated, I forget what the equivalent is of "allow null values". `Validation::isInteger()` looks like it would fail for `null`, but the `allowEmptyFoo()` methods seem to all expect empty values of non-null
# Jan 13th 2020, 16:09 dereuromark keep the side effects minimal.
# Jan 13th 2020, 16:09 dereuromark then isolate it to the controllers and actions.
# Jan 13th 2020, 16:08 ckjksl Partially our fault. We never got samples of truly large entities during our coding process (and we still don't). The entities the users are trying to duplicate are fairly involving. I'm not saying we can't split it up and defer it to background tasks, but right now, the users just need more memory while we work on and test a long term fix.
# Jan 13th 2020, 16:04 dereuromark the question for me would be: why is the memory needed and couldnt this be async/deferred to background tasks? you usually also face other issues here as side effects, e.g. nginx repsonse time limit etc.
# Jan 13th 2020, 15:59 ckjksl or would it be in like, `app.php` or `bootstrap.php`?
# Jan 13th 2020, 15:58 ckjksl I guess what I mean is, would it be in the controller method where the expensive actions are happening? there are two places where it duplicates some fairly involving entities (and its associated data).
# Jan 13th 2020, 15:58 neon1024 As opposed to that super fast extra special memory ;)
# Jan 13th 2020, 15:56 dereuromark pages I mean
# Jan 13th 2020, 15:56 dereuromark normal apps should work with normal memory
# Jan 13th 2020, 15:56 dereuromark only where needed :)
# Jan 13th 2020, 15:55 ckjksl I'm having trouble with memory usage, and the general consensus is to increase the limit (for now). My question is: where should this line go: ```ini_set('memory_limit', '512M');```
# Jan 13th 2020, 14:36 ndm There's also a reference to `webroot` in the base `.htaccess` file, but if the webroot is your document root, then that should be irrelevant.
# Jan 13th 2020, 14:35 ndm In `config/paths.php` change the `WWW_ROOT` constant, and in `config/app.php` change the `App.webroot` option.
# Jan 13th 2020, 14:28 cakephp-slack In CakePHP 4, is it possible to rename webroot to private_html? I’m running a project on a host where I (unfortunately) can’t edit the vhost
# Jan 13th 2020, 14:12 neon1024 I read that as “My customer wants to destroy all their SEO credit by generating lots of 404's”
# Jan 13th 2020, 13:57 dereuromark sure, multiple options, including entity route
# Jan 13th 2020, 13:55 k4t Hey, my customer want to change slug so urls with old slug wont work anymore. Is it possible to handle redirect from old urls to new ones without making new Routing class?
# Jan 13th 2020, 13:19 jtraulle thx @admad
# Jan 13th 2020, 13:09 admad @jtraulle separation of concern
# Jan 13th 2020, 13:04 challgren https://github.com/cakephp/cakephp/blob/master/src/Controller/Component/SecurityComponent.php#L40
# Jan 13th 2020, 13:04 jtraulle just seen https://book.cakephp.org/4/en/appendices/4-0-migration-guide.html#component
# Jan 13th 2020, 13:04 jtraulle Okay, thanks
# Jan 13th 2020, 13:03 challgren SecurityComponent is deprecated
# Jan 13th 2020, 13:03 jtraulle SecurityComponent already provide form data tampering protection so I do not really understand what the purpose of FormProtectionComponent is ...
# Jan 13th 2020, 13:02 jtraulle Anyone know the difference between SecurityComponent and FormProtectionComponent in 4.x ?
# Jan 13th 2020, 13:02 jtraulle Hello everyone :wave:
# Jan 13th 2020, 12:50 HumanG33k Hello
# Jan 13th 2020, 12:28 javier.villanueva ;)
# Jan 13th 2020, 12:27 admad Si
# Jan 13th 2020, 12:26 javier.villanueva This is a good option ? :point_up_2:
# Jan 13th 2020, 12:24 javier.villanueva ```$articles->getConnection()->transactional(function () use ($articles, $entities) { $article = $articles->newEntity(); });```
# Jan 13th 2020, 12:22 javier.villanueva If I want save an entity and after link related data with it, wich is the best way to make it transactional (just in case related fails)?
# Jan 13th 2020, 11:30 neon1024 @tjkalinowski I am curious why you talk in code
# Jan 13th 2020, 11:18 dereuromark If the sniff exists, this seems to be a path problem then. it cannot find the other sniff repos.
# Jan 13th 2020, 11:18 tjkalinowski ```Why ordering is not working?```
# Jan 13th 2020, 11:17 neon1024 Yep, seems to be 4.x issue