{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/2915","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/2915/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/2915/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/2915/events","html_url":"https://github.com/strongloop/loopback/issues/2915","id":187380487,"number":2915,"title":"Override remote method, passing through current context","user":{"login":"PaddyMann","id":362711,"avatar_url":"https://avatars.githubusercontent.com/u/362711?v=3","gravatar_id":"","url":"https://api.github.com/users/PaddyMann","html_url":"https://github.com/PaddyMann","followers_url":"https://api.github.com/users/PaddyMann/followers","following_url":"https://api.github.com/users/PaddyMann/following{/other_user}","gists_url":"https://api.github.com/users/PaddyMann/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddyMann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddyMann/subscriptions","organizations_url":"https://api.github.com/users/PaddyMann/orgs","repos_url":"https://api.github.com/users/PaddyMann/repos","events_url":"https://api.github.com/users/PaddyMann/events{/privacy}","received_events_url":"https://api.github.com/users/PaddyMann/received_events","type":"User","site_admin":false},"labels":[{"id":172069873,"url":"https://api.github.com/repos/strongloop/loopback/labels/triage","name":"triage","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-04T16:34:50Z","updated_at":"2016-11-30T22:11:51Z","closed_at":null,"body":"### Bug or feature request\r\n\r\n- [ ] Bug\r\n- [x] Feature request\r\n\r\n\r\n### Description of feature (or steps to reproduce if bug)\r\n\r\nWe have guidance on how to override an existing remote method (see #443), but I'm yet to find an example that allows us to pass through the current context as can easily be done when adding a new remote method.\r\n\r\nThis didn't use to cause problems as I used getCurrentContext to grab the userId. This is now deprecated with no clear solution (see #1495). \r\n\r\nAs a result, I can't see an simple solution to this problem and would like this to be either be possible, or else the documentation updated to show how best to do this.\r\n\r\n\r\n### Additional information (Node.js version, LoopBack version, etc)\r\n\r\nLoopback 2.36.0 \r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/264012733","html_url":"https://github.com/strongloop/loopback/issues/2915#issuecomment-264012733","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/2915","id":264012733,"user":{"login":"deepakrkris","id":7688315,"avatar_url":"https://avatars.githubusercontent.com/u/7688315?v=3","gravatar_id":"","url":"https://api.github.com/users/deepakrkris","html_url":"https://github.com/deepakrkris","followers_url":"https://api.github.com/users/deepakrkris/followers","following_url":"https://api.github.com/users/deepakrkris/following{/other_user}","gists_url":"https://api.github.com/users/deepakrkris/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakrkris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakrkris/subscriptions","organizations_url":"https://api.github.com/users/deepakrkris/orgs","repos_url":"https://api.github.com/users/deepakrkris/repos","events_url":"https://api.github.com/users/deepakrkris/events{/privacy}","received_events_url":"https://api.github.com/users/deepakrkris/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T22:11:50Z","updated_at":"2016-11-30T22:11:50Z","body":"@PaddyMann  use of getCurrentContext() is deprecated and a new approach is documented under https://loopback.io/doc/en/lb2/Using-current-context.html\r\n\r\n@superkhau do you have any information to add here ?"}}
{"actor":{"display_login":"deepakrkris"}}