Log message #4053351

# At Username Text
# Jul 18th 2017, 13:51 cake-novice i can see admad plugin required Firebase JWT lib
# Jul 18th 2017, 13:48 cake-novice ok...
# Jul 18th 2017, 13:48 cleptric composer will add it to `/vendor`
# Jul 18th 2017, 13:48 cleptric No, you install it via composer and use the classes in your App
# Jul 18th 2017, 13:47 cake-novice if i want to implement this lib then i need to place it in root/vendor directory ?
# Jul 18th 2017, 13:47 cleptric > I do not want to work with ready to eat solution Any reason for that. If there is a good implemented JWT plugin for cake, why not using it?
# Jul 18th 2017, 13:47 cake-novice sory https://github.com/lcobucci/jwt
# Jul 18th 2017, 13:46 cake-novice i do not want to work with ready to eat solution. i was looking at https://gitter.im/lcobucci/jwt this lib ..
# Jul 18th 2017, 13:44 cleptric Also worth pointing out that the upcoming auth plugin (https://github.com/cakephp/authentication) will support JWT
# Jul 18th 2017, 13:42 mikesmoniker @cake_novice Have a look at https://github.com/FriendsOfCake/awesome-cakephp#authentication-and-authorization (there is one plugin specifically for JWT)
# Jul 18th 2017, 13:41 cake-novice which one should i use and best to work in cake3 ?
# Jul 18th 2017, 13:41 cake-novice Hi, i want to use JWT json web token in my cake3 application.
# Jul 18th 2017, 13:40 adriencs @rudy1976s strange
# Jul 18th 2017, 13:31 rudy1976s thank you
# Jul 18th 2017, 13:31 rudy1976s that is
# Jul 18th 2017, 13:31 rudy1976s I try to explain: I have lots of records with really lots of relations which took too many time due to joins. I found a solution to create a proxy flat table to use for searching purposes, . When saving I store original data in their table plus a flat copy on that table, flattened without joins.When retrieving I look up at proxy table, and the search is really fast
# Jul 18th 2017, 13:27 cholthipaul behave
# Jul 18th 2017, 13:27 cholthipaul But your changes will only affect that table only. so idk what will relations
# Jul 18th 2017, 13:26 rudy1976s $this->Nodes->schema->columnType(‘pages’, ‘string’); this worked for me
# Jul 18th 2017, 13:26 rudy1976s In DB I have set some column with type JSON but I wanted to restore as string in the controller
# Jul 18th 2017, 13:25 rudy1976s no no
# Jul 18th 2017, 13:25 cholthipaul How ? plain sql queries. No NO
# Jul 18th 2017, 13:25 rudy1976s while json when inserting data
# Jul 18th 2017, 13:24 rudy1976s I needed to restore a schema field as string when performing search against it
# Jul 18th 2017, 13:24 rudy1976s I have solved
# Jul 18th 2017, 13:24 cholthipaul @rudy1976s No, you can use migrations though but I guess that won't run time anymore
# Jul 18th 2017, 13:23 rudy1976s I found it
# Jul 18th 2017, 13:13 rudy1976s Hello all ! is there a way to remove a columnType at runtime ?
# Jul 18th 2017, 13:10 dereuromark @spriz Have you been able to confirm my ide helper changes for you?
# Jul 18th 2017, 13:09 dereuromark The same is true for php code, there its token parsing what should be preferred over regex :slightly_smiling_face:
# Jul 18th 2017, 13:08 neon1024 @admad Yep agreed, I might convert mine into a dom object, as it’ll be a good learning experience :slightly_smiling_face:
# Jul 18th 2017, 12:56 admad MartOn: tree behavior in 2.x does support scope
# Jul 18th 2017, 12:14 admad @neon1024 yes technically using regex to parse html is wrong. But in context of tests its acceptable using regex to match small html fragments. Alternatives would be turning the html fragment into domdocument/element and using that. But implementing that would be lot of effort and we want to avoid adding an external dependency for it.
# Jul 18th 2017, 11:58 cleptric WTF :)
# Jul 18th 2017, 11:58 cleptric > Every time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp
# Jul 18th 2017, 11:56 neon1024 I’ll leave that one hanging and flee to lunch :see_no_evil:
# Jul 18th 2017, 11:55 neon1024 Is this one nonsensical @admad ? :P
# Jul 18th 2017, 11:55 neon1024 https://github.com/cakephp/cakephp/blob/master/src/TestSuite/TestCase.php#L330-L373
# Jul 18th 2017, 11:54 neon1024 Especially considering -> https://stackoverflow.com/a/1732454/234451
# Jul 18th 2017, 11:54 neon1024 I’m surprised that the CakeTestCase uses regex to assert on html
# Jul 18th 2017, 11:48 neon1024 Turns out mocking a Table class is easy now, that’s good news. I had a real challenge last time, in Cake 2 I think, with it needing connection mocks and schema mocks and all kinds of things