Log message #4018571

# At Username Text
# Apr 20th 2017, 15:31 manjaro__ hi all
# Apr 20th 2017, 15:19 Neon1024 I’ve got it all working now, so I can finally get stuck into trying to write a query for Elasticsearch to generate my dashboard graphs
# Apr 20th 2017, 15:19 Neon1024 So when my client site tried to hit the api, and thus the api tried to log to ES, it didn’t get a response :)
# Apr 20th 2017, 15:18 Neon1024 Turns out my Vagrant boxes Elasticsearch wouldn’t allow connections from outside localhost
# Apr 20th 2017, 15:17 graziel Neon1024 there is nice tool for ES that helped me a bit https://github.com/mobz/elasticsearch-head.git
# Apr 20th 2017, 14:53 Neon1024 Lé sigh.
# Apr 20th 2017, 14:53 Neon1024 protected 'message' => string 'cURL error 52: Empty reply from server' (length=38)
# Apr 20th 2017, 14:53 artsir anyone have experience with godaddy and emails? I can't get it to work on their server, it works locally
# Apr 20th 2017, 14:52 Neon1024 Then I can move onto why ES isn’t indexing the document :p
# Apr 20th 2017, 14:51 Neon1024 So I’ll just lookup the ApiUser from the api_user_id field and insert it into the entity :D
# Apr 20th 2017, 14:50 Neon1024 Turns out I don’t need to give Elasticsearch an id anyway, it’ll make one for me
# Apr 20th 2017, 14:50 Neon1024 Not really, the foreign key is known, but the primary key isn't
# Apr 20th 2017, 14:49 dereuromark Neon: this could only ever work with uuids.
# Apr 20th 2017, 14:48 Neon1024 Can I load an association when creating a new entity? Or is it a matter of doing a find() and inserting the resulting entity into the other one
# Apr 20th 2017, 14:42 Neon1024 No, it seems not. Guess you have to persist it for MySQL to assign one
# Apr 20th 2017, 14:41 Neon1024 Does newEntity() add a primary key if one isn’t defined?
# Apr 20th 2017, 14:29 Junior i have moved quickly, with same result
# Apr 20th 2017, 14:28 Junior no worries, thank you for your time!
# Apr 20th 2017, 14:28 Junior but that in aprox one hour as i have to leave
# Apr 20th 2017, 14:28 Junior maybe something is there
# Apr 20th 2017, 14:28 Junior i will try to move the auth related stuff to app controller
# Apr 20th 2017, 14:28 nemmons sorry, i'm all out of ideas
# Apr 20th 2017, 14:28 iqu ideas to make simple pagevisit counter? store users visited to session ?
# Apr 20th 2017, 14:27 Junior i load the auth there
# Apr 20th 2017, 14:27 nemmons oh, right sorry
# Apr 20th 2017, 14:27 Junior in my case adminController handles auth
# Apr 20th 2017, 14:26 nemmons well, the docs specifically say to put it in AppController which probably has something to do with the fact that AppController handles Auth
# Apr 20th 2017, 14:26 Junior so it should be fine
# Apr 20th 2017, 14:26 Junior although class UsersController extends AdminController
# Apr 20th 2017, 14:25 Junior if i remove from appController i no longer have it in login
# Apr 20th 2017, 14:25 Junior tried that, i need to have in both places
# Apr 20th 2017, 14:25 nemmons have you tried removing it from AdminController and just having it in AppController? maybe having it in twice is causing a problem
# Apr 20th 2017, 14:24 Junior I have added the trait in both AppConroller and AdminController
# Apr 20th 2017, 14:24 nemmons or AdminController whatever
# Apr 20th 2017, 14:24 nemmons no, you just need the Trait in your AppController
# Apr 20th 2017, 14:24 Junior nemmons, you said that i need to include the trait in my AppTable ?
# Apr 20th 2017, 14:23 Junior so on my /login i have the footprint ONLY If i do : $usersTable = $this->loadModel('AuthAcl.Users');
# Apr 20th 2017, 14:22 Junior https://gist.github.com/juniorionut/a608a58eb9674c883c712ff5c4933bab
# Apr 20th 2017, 14:22 nemmons in that case i think you're right, everything is set up correctly
# Apr 20th 2017, 14:22 nemmons okay no it's fine i believe you
# Apr 20th 2017, 14:22 Junior i haven't pasted correctly, the start of the class, will redo now