Log message #4053330

# At Username Text
# 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
# Jul 18th 2017, 11:44 neon1024 Yes true, can’t argue with that, usually insightful too
# Jul 18th 2017, 11:44 admad I may not be nice but i am fair :P
# Jul 18th 2017, 11:44 neon1024 Perhaps my next nonsensical claim can revolve around how hard it is to mock a table class
# Jul 18th 2017, 11:41 neon1024 At least the test suite is picking up these things
# Jul 18th 2017, 11:40 neon1024 I’m learning new stuff today. As I’m refactoring an old plugin. There seem to be lots of assumptions in the code
# Jul 18th 2017, 11:40 cleptric :scream: watch out for that!!!
# Jul 18th 2017, 11:39 neon1024 Like you’re a nice guy?
# Jul 18th 2017, 11:39 admad @neon1024 you make one more nonsensical claim and i'll bring back the slapper :slightly_smiling_face:
# Jul 18th 2017, 11:39 neon1024 Thanks @cleptric