Log message #4033297

# At Username Text
# May 28th 2017, 23:08 gustavocp Hello, im using FriendsOfCake/bootstrap-ui and CakeDC/Users. Im doing a exercise and i bake Projects (that belongs to User, so it has user_id as FK poiting to ID using UUID char(36). On add view it takes users on dropdown by UUID but when i saves on database the field user_id is blank. Is there any difference to implement belongsTo relation using UUID ?
# May 28th 2017, 22:27 thomasnucleus l
# May 28th 2017, 20:59 igreat And it's working fine now
# May 28th 2017, 20:59 igreat To root/src/Template/Plugin/CakeDC/Users/Users
# May 28th 2017, 20:58 igreat I have resolved my issue Changed this >The view templates are located in root/src/Template/Plugin/cakedc/users/Users
# May 28th 2017, 20:10 dereuromark depends on your auth setup
# May 28th 2017, 20:05 chris-andre :) I'm using your auth plugin. Guess it queries that often on dev environment only then :P
# May 28th 2017, 20:02 dereuromark well, that you dont have to ;) at least if you all combine that into a single "sth changed" flag
# May 28th 2017, 19:56 chris-andre True. Ill work something out with the db session. That being said, roles are being checked every request, so sometimes we just _have to_
# May 28th 2017, 19:51 dereuromark if you use a cookie based login, you can also remove the session and let the relogin happen silently, but then you have issues with POSTs fired. would need to preflight ajax then. so that makes it more overkill than a simple and not soo expensive single lookup :slightly_smiling_face:
# May 28th 2017, 19:47 chris-andre db query on every request sounds like "overkill". Thanks @dereuromark , Ill look into db sessions
# May 28th 2017, 19:45 dereuromark with DB sessions you do that anyway :slightly_smiling_face:
# May 28th 2017, 19:44 chris-andre Okay. But that means I will have to query the db to check if any changes has been made for the user, right?
# May 28th 2017, 19:40 dereuromark thats why you need db sessions and a privot table of some sorts to manage those relations from user to session
# May 28th 2017, 19:36 chris-andre Yes, so actually, I should update user data the same way when the user updates data himself (to update on other devices as well).
# May 28th 2017, 19:32 dereuromark there are different strategies, e.g. putting in a flag to force updating, once the user refreshes the page
# May 28th 2017, 19:31 dereuromark you have to have a session_id in your user_... online table, this way you know which user this would be. but this is 1:n as you can be logged in with multiple devices
# May 28th 2017, 19:30 chris-andre Yes, admad pointed me against updating cache session, but I don't get it. How shall I do the check and if it's different, how should I update it? Is the cache gonna be updated when admin performs an user data update?
# May 28th 2017, 19:24 dereuromark wasnt this already answered above?
# May 28th 2017, 19:19 chris-andre Anyone here familiar with cache session? If an admin changes user data of an logged in user, how can I update cache/session so that the logged in user get his session updated as well?
# May 28th 2017, 19:14 chris-andre Reason I was asking about path and composer was that I suspected you had placed the view file in the vendor folder, then run composer install. But as that is not the case, I don't know why the issue you describes exists.
# May 28th 2017, 19:11 igreat Is there a chance it could link with composer issue?
# May 28th 2017, 19:10 chris-andre Allright. Then I have no idea.
# May 28th 2017, 19:09 igreat As it's not supported
# May 28th 2017, 19:09 igreat Yea, did not use composer to install
# May 28th 2017, 19:08 chris-andre I see. You have uploaded your local app to your prod. server with ftp?
# May 28th 2017, 19:04 igreat I don't understand why
# May 28th 2017, 19:03 igreat But just uploaded it to my online host and its misbehaving
# May 28th 2017, 19:03 igreat I run wamp as my local server, and it works well on it
# May 28th 2017, 19:00 chris-andre Seems like your prod serve repo is different from the local repo.
# May 28th 2017, 18:58 igreat The view templates are located in root/src/Template/Plugin/cakedc/users/Users
# May 28th 2017, 18:57 chris-andre Ah, sry. Misunderstood.
# May 28th 2017, 18:55 chris-andre Where is the template file you created stored? Which path?
# May 28th 2017, 18:54 igreat The layout is working fine, but the view templates are located in root/src/Template/Plugin/cakedc/users/login.ctp
# May 28th 2017, 18:50 chris-andre Is the template located in root:src/Template/Layout?
# May 28th 2017, 18:46 igreat Yea, via the debug kit
# May 28th 2017, 18:45 chris-andre @igreat have you tried to clear cache?
# May 28th 2017, 18:39 igreat Can anyone help me with a solution?
# May 28th 2017, 18:39 igreat >On my app, I used cakedc users plugin, and created new template file to override the plugin templates which are working fine on my local host (offline). >But after putting it online, it wont use the templates I created, instead it keeps using the template that came with the plugin
# May 28th 2017, 15:09 birdy247 but then gives a missing controller of the sectionname
# May 28th 2017, 15:08 birdy247 it builds the route just fine