Log message #4190381

# At Username Text
# Jun 20th 2019, 15:55 neon1024 You won’t be able to cascade soft-delete without the behaviour attached to the Tables if I remember
# Jun 20th 2019, 15:55 peppejaripappalardo thx for your hint @neon1024
# Jun 20th 2019, 15:55 peppejaripappalardo yes, the problem is that, at this time the Behavior on Events and Mission is not implemented yet. So maybe that let fail the query
# Jun 20th 2019, 15:54 neon1024 If they were cascade soft-deleted then the query shouldn’t fail
# Jun 20th 2019, 15:52 peppejaripappalardo Yes, i need to keep Missions and Events for Historical Archive
# Jun 20th 2019, 15:51 neon1024 So wouldn’t that further mean, you’d want to cascade soft-delete the Missions as well
# Jun 20th 2019, 15:51 neon1024 Wouldn’t that also mean that a Missions belongsTo Users
# Jun 20th 2019, 15:50 neon1024 `$this->Users->behaviors()->unload('Trash')`
# Jun 20th 2019, 15:41 peppejaripappalardo Guys someone who use Muffin/Trash: I have implemented the soft-delete for the Users Table. But these users are related to Missions and Events. When i soft-delete a User, the query of Events or Missions stop to render the Event or the Mission related to the UserID who is soft-deleted. I tryed to deactivate the Behavior with $this->Users->removeBehavior('Trash') into the EventsController, but it dosen't work. Any suggestions?
# Jun 20th 2019, 15:32 rudy1976s @jeremyharris thank you , I will try the @dereuromark plugin
# Jun 20th 2019, 15:30 jeremyharris yep, you can write your own log engine or use an existing plugin: https://github.com/FriendsOfCake/awesome-cakephp#auditing--logging
# Jun 20th 2019, 15:29 rudy1976s I have a question regarding logs: is there a way to be able to save log to DB using the cake Log class ?
# Jun 20th 2019, 15:28 rudy1976s good afternoon to all bakers!
# Jun 20th 2019, 14:24 neon1024 Thanks!
# Jun 20th 2019, 14:17 jeremyharris includes polyfills only where necessary
# Jun 20th 2019, 14:17 jeremyharris I saw this come across HN, might be of interest: https://www.pika.dev/cdn
# Jun 20th 2019, 14:16 neon1024 I’ve been meaning to look for an NPM module which adds polyfills for stuff so that it just gets baked in when I build with Webpack, but I didn’t get there yet
# Jun 20th 2019, 14:15 neon1024 I didn’t try it though
# Jun 20th 2019, 14:15 neon1024 https://www.theverge.com/2019/4/8/18300077/microsoft-edge-chromium-canary-development-release-download
# Jun 20th 2019, 14:14 neon1024 9, 10, 11, Edge, and then onto this new Chromium based browser apparently
# Jun 20th 2019, 14:14 jeremyharris gotcha
# Jun 20th 2019, 14:14 neon1024 After 11 I believe
# Jun 20th 2019, 14:14 jeremyharris yeah not in IE but it’s in edge, which was like IE 10 or 11 right? I’ve been away from frontend for a while
# Jun 20th 2019, 14:13 neon1024 Tbh caniuse is probably more accurate
# Jun 20th 2019, 14:13 neon1024 Perhaps the page is out of date https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#Browser_compatibility
# Jun 20th 2019, 14:13 neon1024 Hmm
# Jun 20th 2019, 14:13 jeremyharris for better or for worse
# Jun 20th 2019, 14:13 jeremyharris but yeah it’s all going to be 2 engines in not too long
# Jun 20th 2019, 14:13 neon1024 I guess that’s why they are stealing the Chrome JS engine :)
# Jun 20th 2019, 14:13 jeremyharris caniuse shows promises are in there
# Jun 20th 2019, 14:13 neon1024 They’re now so far behind the JS curve it’s not even worth considering them
# Jun 20th 2019, 14:12 neon1024 Even basic stuff like fetch and promises aren’t in
# Jun 20th 2019, 14:12 neon1024 They gave up in like IE7
# Jun 20th 2019, 14:12 neon1024 Well yeah Microsoft just can’t work Javascript it seems
# Jun 20th 2019, 14:12 neon1024 Be sure to note the browser compatibility!
# Jun 20th 2019, 14:12 jeremyharris no support in edge at all sadly
# Jun 20th 2019, 14:11 jeremyharris that’s cool :nerd_face:
# Jun 20th 2019, 14:10 neon1024 You can read about that here https://developer.mozilla.org/en-US/docs/Web/API/EventSource
# Jun 20th 2019, 14:10 neon1024 Then I used the EventSource object to write to my progress bar
# Jun 20th 2019, 14:10 neon1024 Then I used PHP to output JSON as it worked, and flushed the buffers so it output constantly
# Jun 20th 2019, 14:09 neon1024 I used the javascript EventSource object