Log message #4143072

# At Username Text
# May 22nd 2018, 22:17 joopm is anyone who is more familier with csrf token?
# May 22nd 2018, 22:16 joopm hello
# May 22nd 2018, 21:08 ricksaccous np ;)
# May 22nd 2018, 21:08 itmpls and that would make it far easier if I don't.. checking. ty :slightly_smiling_face:
# May 22nd 2018, 21:08 itmpls ah yeah, hm I think I needed to preprocess them but I actually might not have to
# May 22nd 2018, 21:07 ricksaccous i'd assume it would automatically work on each record in the entity
# May 22nd 2018, 21:07 ricksaccous @itmpls, https://book.cakephp.org/3.0/en/orm/validation.html#using-a-different-validation-set-for-associations
# May 22nd 2018, 21:05 ricksaccous i believe once you create an entity there are options you could pass so that associations are validated
# May 22nd 2018, 21:03 itmpls in a foreach
# May 22nd 2018, 21:03 itmpls i'm currently just constructing a time object and catching for invalidity
# May 22nd 2018, 21:03 itmpls is there anyway to access the 'date' built-in validation rule if you're processing on a hasMany - thus multiple elements that have a date (and time, separately) for validation?
# May 22nd 2018, 20:37 camdenbassett ok, that might be the way I need to go. Thanks :)
# May 22nd 2018, 20:37 generitter If you look on github at the Bake library you could find example code.
# May 22nd 2018, 20:36 generitter There are Cake Directory and File objects you could use to scan for Model directories and files.
# May 22nd 2018, 20:36 camdenbassett ok, hmmm... Maybe I can just parse the file names or something.
# May 22nd 2018, 20:35 generitter Right.
# May 22nd 2018, 20:35 camdenbassett ok, cool didn't know that. I'm looking for a way to do it in php though, and cake bake is command line, right?
# May 22nd 2018, 20:33 generitter All the models … hmm. cake bake model still spits out a list for you to pick from.
# May 22nd 2018, 20:32 camdenbassett Is there a way to get a list of all the models in your app?
# May 22nd 2018, 20:32 generitter Oi AssetCompress is not loading the CrudView assets. Dies on missing route. :P
# May 22nd 2018, 19:26 bravo-kernel I can imagine supporting it if Crud can
# May 22nd 2018, 19:25 ksc Ok that's sad. Is this a problem of the crud plugin or the crud-json-api plugin? I think the requests with directly created associations have at least once worked with the normal crud plugin. I will test it later. Is that a feature that would be integrated regardless of the jsonapi specification or should the crud-json-api plugin 1 to 1 map the jsonapi specification?
# May 22nd 2018, 19:21 camdenbassett They wouldn't necessarily all be used at the same time, but I just want to make sure that it won't bring down my site if I have a ton of different cache configurations.
# May 22nd 2018, 19:19 camdenbassett Hello everyone, if I'm using memcached, is there any danger of having too many configurations? Basically I have some code that creates a set of configuration entries for each combination of user and model, so if I had 300 users, 20 models, and 5 different configurations that would be 300 x 20 x 5 = 30,000 different potential configuration entries.
# May 22nd 2018, 19:12 bravo-kernel > posting a document with links present will associate it to the linked resource(s). However, creating multiple entities that are interlinked with a single POST is impossible at the moment.
# May 22nd 2018, 19:11 bravo-kernel https://github.com/json-api/json-api/issues/202
# May 22nd 2018, 19:11 bravo-kernel it's a bit sad but nothing to do but wait for now. Until then, you might want to consider making multiple calls and reading on JSON API sideposting (not supported by the spec yet)
# May 22nd 2018, 19:09 bravo-kernel it could work but like I said, there is not test to support any of this yet so I can't confirm/deny any of it
# May 22nd 2018, 19:07 ksc I didn't find that in the jsonapi specification...
# May 22nd 2018, 19:05 ksc Is this correct?
# May 22nd 2018, 19:05 ksc File uploaded https://cakesf.slack.com/files/U6XDU1S5A/FAU6JP3PD/-.txt / https://slack-files.com/T053DPNCM-FAU6JP3PD-257fdd0479
# May 22nd 2018, 19:05 ksc Okay thank you. I expect a request body to create both (object + related object) just without the id, e.g.
# May 22nd 2018, 18:59 bravo-kernel feel free to help debugging
# May 22nd 2018, 18:59 bravo-kernel you may be able to create `hasMany` related object but the response (view) will probably fail
# May 22nd 2018, 18:57 bravo-kernel working examples of creating a single Resource with (one or multiple) `belongsTo` can be found here https://github.com/FriendsOfCake/crud-json-api/tree/master/tests/Fixture/JsonApiResponseBodies/CreatingResources
# May 22nd 2018, 18:57 bravo-kernel @ksc there seem to be some issues with `hasMany`
# May 22nd 2018, 18:56 ksc Hi, I want to create one object and his related object in one request with the crud-json-api plugin. Does someone have some examples for this use case or in general add or edit objects and their related objects? Or is this out of scope / not wanted e.g. : Users, UserDetails (1:n or 1:1)
# May 22nd 2018, 18:46 rochasmarcelo What is the status of https://github.com/cakephp/authorization? There is any planned date to release a stable version?
# May 22nd 2018, 18:29 edgaras.jan maybe `$date < new Time('-24 hours')`
# May 22nd 2018, 16:04 neon1024 Perhaps `isSameDay()`
# May 22nd 2018, 16:03 neon1024 As `isPast()` will be true almost instantaneously