{"action":"created","issue":{"url":"https://api.github.com/repos/biocore/american-gut-web/issues/472","labels_url":"https://api.github.com/repos/biocore/american-gut-web/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/biocore/american-gut-web/issues/472/comments","events_url":"https://api.github.com/repos/biocore/american-gut-web/issues/472/events","html_url":"https://github.com/biocore/american-gut-web/issues/472","id":103766506,"number":472,"title":"Integrity issue with ag_login table","user":{"login":"adamrp","id":2574407,"avatar_url":"https://avatars.githubusercontent.com/u/2574407?v=3","gravatar_id":"","url":"https://api.github.com/users/adamrp","html_url":"https://github.com/adamrp","followers_url":"https://api.github.com/users/adamrp/followers","following_url":"https://api.github.com/users/adamrp/following{/other_user}","gists_url":"https://api.github.com/users/adamrp/gists{/gist_id}","starred_url":"https://api.github.com/users/adamrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamrp/subscriptions","organizations_url":"https://api.github.com/users/adamrp/orgs","repos_url":"https://api.github.com/users/adamrp/repos","events_url":"https://api.github.com/users/adamrp/events{/privacy}","received_events_url":"https://api.github.com/users/adamrp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/biocore/american-gut-web/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"adamrp","id":2574407,"avatar_url":"https://avatars.githubusercontent.com/u/2574407?v=3","gravatar_id":"","url":"https://api.github.com/users/adamrp","html_url":"https://github.com/adamrp","followers_url":"https://api.github.com/users/adamrp/followers","following_url":"https://api.github.com/users/adamrp/following{/other_user}","gists_url":"https://api.github.com/users/adamrp/gists{/gist_id}","starred_url":"https://api.github.com/users/adamrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamrp/subscriptions","organizations_url":"https://api.github.com/users/adamrp/orgs","repos_url":"https://api.github.com/users/adamrp/repos","events_url":"https://api.github.com/users/adamrp/events{/privacy}","received_events_url":"https://api.github.com/users/adamrp/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-08-28T17:58:21Z","updated_at":"2015-08-28T18:33:09Z","closed_at":null,"body":"The `email` field (unless I'm mistaken?) should have a unique constraint on it. Running the following query:\r\n```sql\r\nselect email, count(*) from ag.ag_login group by email having count(*) > 1;\r\n```\r\nreveals an integrity issue where 14 email addresses are associated with multiple logins."},"comment":{"url":"https://api.github.com/repos/biocore/american-gut-web/issues/comments/135855313","html_url":"https://github.com/biocore/american-gut-web/issues/472#issuecomment-135855313","issue_url":"https://api.github.com/repos/biocore/american-gut-web/issues/472","id":135855313,"user":{"login":"wasade","id":474290,"avatar_url":"https://avatars.githubusercontent.com/u/474290?v=3","gravatar_id":"","url":"https://api.github.com/users/wasade","html_url":"https://github.com/wasade","followers_url":"https://api.github.com/users/wasade/followers","following_url":"https://api.github.com/users/wasade/following{/other_user}","gists_url":"https://api.github.com/users/wasade/gists{/gist_id}","starred_url":"https://api.github.com/users/wasade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wasade/subscriptions","organizations_url":"https://api.github.com/users/wasade/orgs","repos_url":"https://api.github.com/users/wasade/repos","events_url":"https://api.github.com/users/wasade/events{/privacy}","received_events_url":"https://api.github.com/users/wasade/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T18:33:09Z","updated_at":"2015-08-28T18:33:09Z","body":"They just register with the same details\n\nOn Fri, Aug 28, 2015 at 12:31 PM, adamrp <notifications@github.com> wrote:\n\n> Actually can you expand on one more question? How does the group running\n> the cohort actually associate a new ag_login_id with the same email\n> address? I'm not sure I know how to do that from the interface, now that\n> we've moved to using only handout kits.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/biocore/american-gut-web/issues/472#issuecomment-135855053>\n> .\n>\n"}}