{"action":"created","comment":{"url":"https://api.github.com/repos/cardstack/cardstack/pulls/comments/167891706","pull_request_review_id":96173462,"id":167891706,"diff_hunk":"@@ -164,15 +166,23 @@ class Authentication {\n     if (!user.data || !user.data.type) { return; }\n \n     let have;\n+    let query = source['userCorrelationQuery'];\n \n-    if (user.data.id != null) {\n-      try {\n+    try {\n+      if (user.data.id != null) {\n         have = await this.userSearcher.get(user.data.type, user.data.id);","path":"packages/authentication/cardstack/middleware.js","position":19,"original_position":19,"commit_id":"c52425324dfc5ec1f68ba08d5d3428095256f2ec","original_commit_id":"c52425324dfc5ec1f68ba08d5d3428095256f2ec","user":{"login":"habdelra","id":61075,"avatar_url":"https://avatars2.githubusercontent.com/u/61075?v=4","gravatar_id":"","url":"https://api.github.com/users/habdelra","html_url":"https://github.com/habdelra","followers_url":"https://api.github.com/users/habdelra/followers","following_url":"https://api.github.com/users/habdelra/following{/other_user}","gists_url":"https://api.github.com/users/habdelra/gists{/gist_id}","starred_url":"https://api.github.com/users/habdelra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/habdelra/subscriptions","organizations_url":"https://api.github.com/users/habdelra/orgs","repos_url":"https://api.github.com/users/habdelra/repos","events_url":"https://api.github.com/users/habdelra/events{/privacy}","received_events_url":"https://api.github.com/users/habdelra/received_events","type":"User","site_admin":false},"body":"ah--good idea. will do","created_at":"2018-02-13T15:05:53Z","updated_at":"2018-02-13T15:05:54Z","html_url":"https://github.com/cardstack/cardstack/pull/111#discussion_r167891706","pull_request_url":"https://api.github.com/repos/cardstack/cardstack/pulls/111","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cardstack/cardstack/pulls/comments/167891706"},"html":{"href":"https://github.com/cardstack/cardstack/pull/111#discussion_r167891706"},"pull_request":{"href":"https://api.github.com/repos/cardstack/cardstack/pulls/111"}},"in_reply_to_id":167890178},"pull_request":{"url":"https://api.github.com/repos/cardstack/cardstack/pulls/111","id":168747709,"html_url":"https://github.com/cardstack/cardstack/pull/111","diff_url":"https://github.com/cardstack/cardstack/pull/111.diff","patch_url":"https://github.com/cardstack/cardstack/pull/111.patch","issue_url":"https://api.github.com/repos/cardstack/cardstack/issues/111","number":111,"state":"closed","locked":false,"title":"added user correlation query","user":{"login":"habdelra","id":61075,"avatar_url":"https://avatars2.githubusercontent.com/u/61075?v=4","gravatar_id":"","url":"https://api.github.com/users/habdelra","html_url":"https://github.com/habdelra","followers_url":"https://api.github.com/users/habdelra/followers","following_url":"https://api.github.com/users/habdelra/following{/other_user}","gists_url":"https://api.github.com/users/habdelra/gists{/gist_id}","starred_url":"https://api.github.com/users/habdelra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/habdelra/subscriptions","organizations_url":"https://api.github.com/users/habdelra/orgs","repos_url":"https://api.github.com/users/habdelra/repos","events_url":"https://api.github.com/users/habdelra/events{/privacy}","received_events_url":"https://api.github.com/users/habdelra/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-13T03:49:26Z","updated_at":"2018-02-13T15:05:54Z","closed_at":"2018-02-13T14:56:28Z","merged_at":"2018-02-13T14:56:28Z","merge_commit_sha":"6d11f197f8f13a109ac8f7071de0adb65ac9b8ae","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cardstack/cardstack/pulls/111/commits","review_comments_url":"https://api.github.com/repos/cardstack/cardstack/pulls/111/comments","review_comment_url":"https://api.github.com/repos/cardstack/cardstack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cardstack/cardstack/issues/111/comments","statuses_url":"https://api.github.com/repos/cardstack/cardstack/statuses/c52425324dfc5ec1f68ba08d5d3428095256f2ec","head":{"label":"cardstack:user-correlation-query","ref":"user-correlation-query","sha":"c52425324dfc5ec1f68ba08d5d3428095256f2ec","user":{"login":"cardstack","id":10118425,"avatar_url":"https://avatars3.githubusercontent.com/u/10118425?v=4","gravatar_id":"","url":"https://api.github.com/users/cardstack","html_url":"https://github.com/cardstack","followers_url":"https://api.github.com/users/cardstack/followers","following_url":"https://api.github.com/users/cardstack/following{/other_user}","gists_url":"https://api.github.com/users/cardstack/gists{/gist_id}","starred_url":"https://api.github.com/users/cardstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cardstack/subscriptions","organizations_url":"https://api.github.com/users/cardstack/orgs","repos_url":"https://api.github.com/users/cardstack/repos","events_url":"https://api.github.com/users/cardstack/events{/privacy}","received_events_url":"https://api.github.com/users/cardstack/received_events","type":"Organization","site_admin":false},"repo":{"id":79036909,"name":"cardstack","full_name":"cardstack/cardstack","owner":{"login":"cardstack","id":10118425,"avatar_url":"https://avatars3.githubusercontent.com/u/10118425?v=4","gravatar_id":"","url":"https://api.github.com/users/cardstack","html_url":"https://github.com/cardstack","followers_url":"https://api.github.com/users/cardstack/followers","following_url":"https://api.github.com/users/cardstack/following{/other_user}","gists_url":"https://api.github.com/users/cardstack/gists{/gist_id}","starred_url":"https://api.github.com/users/cardstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cardstack/subscriptions","organizations_url":"https://api.github.com/users/cardstack/orgs","repos_url":"https://api.github.com/users/cardstack/repos","events_url":"https://api.github.com/users/cardstack/events{/privacy}","received_events_url":"https://api.github.com/users/cardstack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cardstack/cardstack","description":"The mono-repo for the core Cardstack framework.","fork":false,"url":"https://api.github.com/repos/cardstack/cardstack","forks_url":"https://api.github.com/repos/cardstack/cardstack/forks","keys_url":"https://api.github.com/repos/cardstack/cardstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cardstack/cardstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cardstack/cardstack/teams","hooks_url":"https://api.github.com/repos/cardstack/cardstack/hooks","issue_events_url":"https://api.github.com/repos/cardstack/cardstack/issues/events{/number}","events_url":"https://api.github.com/repos/cardstack/cardstack/events","assignees_url":"https://api.github.com/repos/cardstack/cardstack/assignees{/user}","branches_url":"https://api.github.com/repos/cardstack/cardstack/branches{/branch}","tags_url":"https://api.github.com/repos/cardstack/cardstack/tags","blobs_url":"https://api.github.com/repos/cardstack/cardstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cardstack/cardstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cardstack/cardstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/cardstack/cardstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cardstack/cardstack/statuses/{sha}","languages_url":"https://api.github.com/repos/cardstack/cardstack/languages","stargazers_url":"https://api.github.com/repos/cardstack/cardstack/stargazers","contributors_url":"https://api.github.com/repos/cardstack/cardstack/contributors","subscribers_url":"https://api.github.com/repos/cardstack/cardstack/subscribers","subscription_url":"https://api.github.com/repos/cardstack/cardstack/subscription","commits_url":"https://api.github.com/repos/cardstack/cardstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/cardstack/cardstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/cardstack/cardstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/cardstack/cardstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/cardstack/cardstack/contents/{+path}","compare_url":"https://api.github.com/repos/cardstack/cardstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cardstack/cardstack/merges","archive_url":"https://api.github.com/repos/cardstack/cardstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cardstack/cardstack/downloads","issues_url":"https://api.github.com/repos/cardstack/cardstack/issues{/number}","pulls_url":"https://api.github.com/repos/cardstack/cardstack/pulls{/number}","milestones_url":"https://api.github.com/repos/cardstack/cardstack/milestones{/number}","notifications_url":"https://api.github.com/repos/cardstack/cardstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cardstack/cardstack/labels{/name}","releases_url":"https://api.github.com/repos/cardstack/cardstack/releases{/id}","deployments_url":"https://api.github.com/repos/cardstack/cardstack/deployments","created_at":"2017-01-15T14:15:10Z","updated_at":"2018-02-13T13:42:05Z","pushed_at":"2018-02-13T14:57:14Z","git_url":"git://github.com/cardstack/cardstack.git","ssh_url":"git@github.com:cardstack/cardstack.git","clone_url":"https://github.com/cardstack/cardstack.git","svn_url":"https://github.com/cardstack/cardstack","homepage":"https://cardstack.com/","size":8724,"stargazers_count":100,"watchers_count":100,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":15,"open_issues":16,"watchers":100,"default_branch":"master"}},"base":{"label":"cardstack:master","ref":"master","sha":"a4d30ec6be0aa82de72424f5a8df0f8e32163dff","user":{"login":"cardstack","id":10118425,"avatar_url":"https://avatars3.githubusercontent.com/u/10118425?v=4","gravatar_id":"","url":"https://api.github.com/users/cardstack","html_url":"https://github.com/cardstack","followers_url":"https://api.github.com/users/cardstack/followers","following_url":"https://api.github.com/users/cardstack/following{/other_user}","gists_url":"https://api.github.com/users/cardstack/gists{/gist_id}","starred_url":"https://api.github.com/users/cardstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cardstack/subscriptions","organizations_url":"https://api.github.com/users/cardstack/orgs","repos_url":"https://api.github.com/users/cardstack/repos","events_url":"https://api.github.com/users/cardstack/events{/privacy}","received_events_url":"https://api.github.com/users/cardstack/received_events","type":"Organization","site_admin":false},"repo":{"id":79036909,"name":"cardstack","full_name":"cardstack/cardstack","owner":{"login":"cardstack","id":10118425,"avatar_url":"https://avatars3.githubusercontent.com/u/10118425?v=4","gravatar_id":"","url":"https://api.github.com/users/cardstack","html_url":"https://github.com/cardstack","followers_url":"https://api.github.com/users/cardstack/followers","following_url":"https://api.github.com/users/cardstack/following{/other_user}","gists_url":"https://api.github.com/users/cardstack/gists{/gist_id}","starred_url":"https://api.github.com/users/cardstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cardstack/subscriptions","organizations_url":"https://api.github.com/users/cardstack/orgs","repos_url":"https://api.github.com/users/cardstack/repos","events_url":"https://api.github.com/users/cardstack/events{/privacy}","received_events_url":"https://api.github.com/users/cardstack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cardstack/cardstack","description":"The mono-repo for the core Cardstack framework.","fork":false,"url":"https://api.github.com/repos/cardstack/cardstack","forks_url":"https://api.github.com/repos/cardstack/cardstack/forks","keys_url":"https://api.github.com/repos/cardstack/cardstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cardstack/cardstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cardstack/cardstack/teams","hooks_url":"https://api.github.com/repos/cardstack/cardstack/hooks","issue_events_url":"https://api.github.com/repos/cardstack/cardstack/issues/events{/number}","events_url":"https://api.github.com/repos/cardstack/cardstack/events","assignees_url":"https://api.github.com/repos/cardstack/cardstack/assignees{/user}","branches_url":"https://api.github.com/repos/cardstack/cardstack/branches{/branch}","tags_url":"https://api.github.com/repos/cardstack/cardstack/tags","blobs_url":"https://api.github.com/repos/cardstack/cardstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cardstack/cardstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cardstack/cardstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/cardstack/cardstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cardstack/cardstack/statuses/{sha}","languages_url":"https://api.github.com/repos/cardstack/cardstack/languages","stargazers_url":"https://api.github.com/repos/cardstack/cardstack/stargazers","contributors_url":"https://api.github.com/repos/cardstack/cardstack/contributors","subscribers_url":"https://api.github.com/repos/cardstack/cardstack/subscribers","subscription_url":"https://api.github.com/repos/cardstack/cardstack/subscription","commits_url":"https://api.github.com/repos/cardstack/cardstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/cardstack/cardstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/cardstack/cardstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/cardstack/cardstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/cardstack/cardstack/contents/{+path}","compare_url":"https://api.github.com/repos/cardstack/cardstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cardstack/cardstack/merges","archive_url":"https://api.github.com/repos/cardstack/cardstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cardstack/cardstack/downloads","issues_url":"https://api.github.com/repos/cardstack/cardstack/issues{/number}","pulls_url":"https://api.github.com/repos/cardstack/cardstack/pulls{/number}","milestones_url":"https://api.github.com/repos/cardstack/cardstack/milestones{/number}","notifications_url":"https://api.github.com/repos/cardstack/cardstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cardstack/cardstack/labels{/name}","releases_url":"https://api.github.com/repos/cardstack/cardstack/releases{/id}","deployments_url":"https://api.github.com/repos/cardstack/cardstack/deployments","created_at":"2017-01-15T14:15:10Z","updated_at":"2018-02-13T13:42:05Z","pushed_at":"2018-02-13T14:57:14Z","git_url":"git://github.com/cardstack/cardstack.git","ssh_url":"git@github.com:cardstack/cardstack.git","clone_url":"https://github.com/cardstack/cardstack.git","svn_url":"https://github.com/cardstack/cardstack","homepage":"https://cardstack.com/","size":8724,"stargazers_count":100,"watchers_count":100,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":15,"open_issues":16,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cardstack/cardstack/pulls/111"},"html":{"href":"https://github.com/cardstack/cardstack/pull/111"},"issue":{"href":"https://api.github.com/repos/cardstack/cardstack/issues/111"},"comments":{"href":"https://api.github.com/repos/cardstack/cardstack/issues/111/comments"},"review_comments":{"href":"https://api.github.com/repos/cardstack/cardstack/pulls/111/comments"},"review_comment":{"href":"https://api.github.com/repos/cardstack/cardstack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cardstack/cardstack/pulls/111/commits"},"statuses":{"href":"https://api.github.com/repos/cardstack/cardstack/statuses/c52425324dfc5ec1f68ba08d5d3428095256f2ec"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"habdelra"}}