{"action":"created","comment":{"url":"https://api.github.com/repos/meteor-space/accounts/pulls/comments/49945336","id":49945336,"diff_hunk":"@@ -9,16 +9,35 @@ Space.Object.extend(Space.accounts, 'UserCreationService', {\n     Space.messaging.EventPublishing\n   ],\n \n-  statics: {\n-    handleUserCreation(options, user) {\n-      // Assign guids as user ids\n-      user._id = options.userId;\n+  onDependenciesReady() {","path":"source/server/services/user-creation-service.js","position":null,"original_position":8,"commit_id":"13ae0407568a70c3d57849eb94bf39785799ba9c","original_commit_id":"a337a519a1213e236d7c0fcbcc6816e690e81cc8","user":{"login":"rhyslbw","id":303881,"avatar_url":"https://avatars.githubusercontent.com/u/303881?v=3","gravatar_id":"","url":"https://api.github.com/users/rhyslbw","html_url":"https://github.com/rhyslbw","followers_url":"https://api.github.com/users/rhyslbw/followers","following_url":"https://api.github.com/users/rhyslbw/following{/other_user}","gists_url":"https://api.github.com/users/rhyslbw/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyslbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyslbw/subscriptions","organizations_url":"https://api.github.com/users/rhyslbw/orgs","repos_url":"https://api.github.com/users/rhyslbw/repos","events_url":"https://api.github.com/users/rhyslbw/events{/privacy}","received_events_url":"https://api.github.com/users/rhyslbw/received_events","type":"User","site_admin":false},"body":"> This is a problem because we can not send an event that user account has been created from the static block when user was created implicitly after users has logged in for the first time using one of the OAuth services.\r\n\r\nThis is a tricky one for sure. Maybe take a look at https://github.com/splendido/meteor-accounts-meld to see if there's anything of interest","created_at":"2016-01-17T12:12:17Z","updated_at":"2016-01-17T12:12:17Z","html_url":"https://github.com/meteor-space/accounts/pull/7#discussion_r49945336","pull_request_url":"https://api.github.com/repos/meteor-space/accounts/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/meteor-space/accounts/pulls/comments/49945336"},"html":{"href":"https://github.com/meteor-space/accounts/pull/7#discussion_r49945336"},"pull_request":{"href":"https://api.github.com/repos/meteor-space/accounts/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/meteor-space/accounts/pulls/7","id":56154335,"html_url":"https://github.com/meteor-space/accounts/pull/7","diff_url":"https://github.com/meteor-space/accounts/pull/7.diff","patch_url":"https://github.com/meteor-space/accounts/pull/7.patch","issue_url":"https://api.github.com/repos/meteor-space/accounts/issues/7","number":7,"state":"open","locked":false,"title":"Add support for google login","user":{"login":"darko-mijic","id":4280521,"avatar_url":"https://avatars.githubusercontent.com/u/4280521?v=3","gravatar_id":"","url":"https://api.github.com/users/darko-mijic","html_url":"https://github.com/darko-mijic","followers_url":"https://api.github.com/users/darko-mijic/followers","following_url":"https://api.github.com/users/darko-mijic/following{/other_user}","gists_url":"https://api.github.com/users/darko-mijic/gists{/gist_id}","starred_url":"https://api.github.com/users/darko-mijic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darko-mijic/subscriptions","organizations_url":"https://api.github.com/users/darko-mijic/orgs","repos_url":"https://api.github.com/users/darko-mijic/repos","events_url":"https://api.github.com/users/darko-mijic/events{/privacy}","received_events_url":"https://api.github.com/users/darko-mijic/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-15T10:44:27Z","updated_at":"2016-01-17T12:12:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfc33bb7b4708f9c955e0a99f4fff056589c99f0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/meteor-space/accounts/pulls/7/commits","review_comments_url":"https://api.github.com/repos/meteor-space/accounts/pulls/7/comments","review_comment_url":"https://api.github.com/repos/meteor-space/accounts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meteor-space/accounts/issues/7/comments","statuses_url":"https://api.github.com/repos/meteor-space/accounts/statuses/13ae0407568a70c3d57849eb94bf39785799ba9c","head":{"label":"meteor-space:feature/login-with-google","ref":"feature/login-with-google","sha":"13ae0407568a70c3d57849eb94bf39785799ba9c","user":{"login":"meteor-space","id":13420421,"avatar_url":"https://avatars.githubusercontent.com/u/13420421?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor-space","html_url":"https://github.com/meteor-space","followers_url":"https://api.github.com/users/meteor-space/followers","following_url":"https://api.github.com/users/meteor-space/following{/other_user}","gists_url":"https://api.github.com/users/meteor-space/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor-space/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor-space/subscriptions","organizations_url":"https://api.github.com/users/meteor-space/orgs","repos_url":"https://api.github.com/users/meteor-space/repos","events_url":"https://api.github.com/users/meteor-space/events{/privacy}","received_events_url":"https://api.github.com/users/meteor-space/received_events","type":"Organization","site_admin":false},"repo":{"id":42716657,"name":"accounts","full_name":"meteor-space/accounts","owner":{"login":"meteor-space","id":13420421,"avatar_url":"https://avatars.githubusercontent.com/u/13420421?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor-space","html_url":"https://github.com/meteor-space","followers_url":"https://api.github.com/users/meteor-space/followers","following_url":"https://api.github.com/users/meteor-space/following{/other_user}","gists_url":"https://api.github.com/users/meteor-space/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor-space/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor-space/subscriptions","organizations_url":"https://api.github.com/users/meteor-space/orgs","repos_url":"https://api.github.com/users/meteor-space/repos","events_url":"https://api.github.com/users/meteor-space/events{/privacy}","received_events_url":"https://api.github.com/users/meteor-space/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meteor-space/accounts","description":"Accounts module for Space applications","fork":false,"url":"https://api.github.com/repos/meteor-space/accounts","forks_url":"https://api.github.com/repos/meteor-space/accounts/forks","keys_url":"https://api.github.com/repos/meteor-space/accounts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meteor-space/accounts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meteor-space/accounts/teams","hooks_url":"https://api.github.com/repos/meteor-space/accounts/hooks","issue_events_url":"https://api.github.com/repos/meteor-space/accounts/issues/events{/number}","events_url":"https://api.github.com/repos/meteor-space/accounts/events","assignees_url":"https://api.github.com/repos/meteor-space/accounts/assignees{/user}","branches_url":"https://api.github.com/repos/meteor-space/accounts/branches{/branch}","tags_url":"https://api.github.com/repos/meteor-space/accounts/tags","blobs_url":"https://api.github.com/repos/meteor-space/accounts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meteor-space/accounts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meteor-space/accounts/git/refs{/sha}","trees_url":"https://api.github.com/repos/meteor-space/accounts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meteor-space/accounts/statuses/{sha}","languages_url":"https://api.github.com/repos/meteor-space/accounts/languages","stargazers_url":"https://api.github.com/repos/meteor-space/accounts/stargazers","contributors_url":"https://api.github.com/repos/meteor-space/accounts/contributors","subscribers_url":"https://api.github.com/repos/meteor-space/accounts/subscribers","subscription_url":"https://api.github.com/repos/meteor-space/accounts/subscription","commits_url":"https://api.github.com/repos/meteor-space/accounts/commits{/sha}","git_commits_url":"https://api.github.com/repos/meteor-space/accounts/git/commits{/sha}","comments_url":"https://api.github.com/repos/meteor-space/accounts/comments{/number}","issue_comment_url":"https://api.github.com/repos/meteor-space/accounts/issues/comments{/number}","contents_url":"https://api.github.com/repos/meteor-space/accounts/contents/{+path}","compare_url":"https://api.github.com/repos/meteor-space/accounts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meteor-space/accounts/merges","archive_url":"https://api.github.com/repos/meteor-space/accounts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meteor-space/accounts/downloads","issues_url":"https://api.github.com/repos/meteor-space/accounts/issues{/number}","pulls_url":"https://api.github.com/repos/meteor-space/accounts/pulls{/number}","milestones_url":"https://api.github.com/repos/meteor-space/accounts/milestones{/number}","notifications_url":"https://api.github.com/repos/meteor-space/accounts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meteor-space/accounts/labels{/name}","releases_url":"https://api.github.com/repos/meteor-space/accounts/releases{/id}","created_at":"2015-09-18T11:04:47Z","updated_at":"2015-11-27T09:25:56Z","pushed_at":"2016-01-16T23:58:11Z","git_url":"git://github.com/meteor-space/accounts.git","ssh_url":"git@github.com:meteor-space/accounts.git","clone_url":"https://github.com/meteor-space/accounts.git","svn_url":"https://github.com/meteor-space/accounts","homepage":null,"size":48,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"develop"}},"base":{"label":"meteor-space:develop","ref":"develop","sha":"b40ffaf7d9cedaf121147c72c76b8a6fd6675b6e","user":{"login":"meteor-space","id":13420421,"avatar_url":"https://avatars.githubusercontent.com/u/13420421?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor-space","html_url":"https://github.com/meteor-space","followers_url":"https://api.github.com/users/meteor-space/followers","following_url":"https://api.github.com/users/meteor-space/following{/other_user}","gists_url":"https://api.github.com/users/meteor-space/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor-space/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor-space/subscriptions","organizations_url":"https://api.github.com/users/meteor-space/orgs","repos_url":"https://api.github.com/users/meteor-space/repos","events_url":"https://api.github.com/users/meteor-space/events{/privacy}","received_events_url":"https://api.github.com/users/meteor-space/received_events","type":"Organization","site_admin":false},"repo":{"id":42716657,"name":"accounts","full_name":"meteor-space/accounts","owner":{"login":"meteor-space","id":13420421,"avatar_url":"https://avatars.githubusercontent.com/u/13420421?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor-space","html_url":"https://github.com/meteor-space","followers_url":"https://api.github.com/users/meteor-space/followers","following_url":"https://api.github.com/users/meteor-space/following{/other_user}","gists_url":"https://api.github.com/users/meteor-space/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor-space/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor-space/subscriptions","organizations_url":"https://api.github.com/users/meteor-space/orgs","repos_url":"https://api.github.com/users/meteor-space/repos","events_url":"https://api.github.com/users/meteor-space/events{/privacy}","received_events_url":"https://api.github.com/users/meteor-space/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meteor-space/accounts","description":"Accounts module for Space applications","fork":false,"url":"https://api.github.com/repos/meteor-space/accounts","forks_url":"https://api.github.com/repos/meteor-space/accounts/forks","keys_url":"https://api.github.com/repos/meteor-space/accounts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meteor-space/accounts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meteor-space/accounts/teams","hooks_url":"https://api.github.com/repos/meteor-space/accounts/hooks","issue_events_url":"https://api.github.com/repos/meteor-space/accounts/issues/events{/number}","events_url":"https://api.github.com/repos/meteor-space/accounts/events","assignees_url":"https://api.github.com/repos/meteor-space/accounts/assignees{/user}","branches_url":"https://api.github.com/repos/meteor-space/accounts/branches{/branch}","tags_url":"https://api.github.com/repos/meteor-space/accounts/tags","blobs_url":"https://api.github.com/repos/meteor-space/accounts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meteor-space/accounts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meteor-space/accounts/git/refs{/sha}","trees_url":"https://api.github.com/repos/meteor-space/accounts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meteor-space/accounts/statuses/{sha}","languages_url":"https://api.github.com/repos/meteor-space/accounts/languages","stargazers_url":"https://api.github.com/repos/meteor-space/accounts/stargazers","contributors_url":"https://api.github.com/repos/meteor-space/accounts/contributors","subscribers_url":"https://api.github.com/repos/meteor-space/accounts/subscribers","subscription_url":"https://api.github.com/repos/meteor-space/accounts/subscription","commits_url":"https://api.github.com/repos/meteor-space/accounts/commits{/sha}","git_commits_url":"https://api.github.com/repos/meteor-space/accounts/git/commits{/sha}","comments_url":"https://api.github.com/repos/meteor-space/accounts/comments{/number}","issue_comment_url":"https://api.github.com/repos/meteor-space/accounts/issues/comments{/number}","contents_url":"https://api.github.com/repos/meteor-space/accounts/contents/{+path}","compare_url":"https://api.github.com/repos/meteor-space/accounts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meteor-space/accounts/merges","archive_url":"https://api.github.com/repos/meteor-space/accounts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meteor-space/accounts/downloads","issues_url":"https://api.github.com/repos/meteor-space/accounts/issues{/number}","pulls_url":"https://api.github.com/repos/meteor-space/accounts/pulls{/number}","milestones_url":"https://api.github.com/repos/meteor-space/accounts/milestones{/number}","notifications_url":"https://api.github.com/repos/meteor-space/accounts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meteor-space/accounts/labels{/name}","releases_url":"https://api.github.com/repos/meteor-space/accounts/releases{/id}","created_at":"2015-09-18T11:04:47Z","updated_at":"2015-11-27T09:25:56Z","pushed_at":"2016-01-16T23:58:11Z","git_url":"git://github.com/meteor-space/accounts.git","ssh_url":"git@github.com:meteor-space/accounts.git","clone_url":"https://github.com/meteor-space/accounts.git","svn_url":"https://github.com/meteor-space/accounts","homepage":null,"size":48,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/meteor-space/accounts/pulls/7"},"html":{"href":"https://github.com/meteor-space/accounts/pull/7"},"issue":{"href":"https://api.github.com/repos/meteor-space/accounts/issues/7"},"comments":{"href":"https://api.github.com/repos/meteor-space/accounts/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/meteor-space/accounts/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/meteor-space/accounts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meteor-space/accounts/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/meteor-space/accounts/statuses/13ae0407568a70c3d57849eb94bf39785799ba9c"}}}}