{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleChrome/experience-sampling/issues/174","labels_url":"https://api.github.com/repos/GoogleChrome/experience-sampling/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/GoogleChrome/experience-sampling/issues/174/comments","events_url":"https://api.github.com/repos/GoogleChrome/experience-sampling/issues/174/events","html_url":"https://github.com/GoogleChrome/experience-sampling/pull/174","id":55233853,"number":174,"title":"Only assign participantId once","user":{"login":"adrifelt","id":4962198,"avatar_url":"https://avatars.githubusercontent.com/u/4962198?v=3","gravatar_id":"","url":"https://api.github.com/users/adrifelt","html_url":"https://github.com/adrifelt","followers_url":"https://api.github.com/users/adrifelt/followers","following_url":"https://api.github.com/users/adrifelt/following{/other_user}","gists_url":"https://api.github.com/users/adrifelt/gists{/gist_id}","starred_url":"https://api.github.com/users/adrifelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrifelt/subscriptions","organizations_url":"https://api.github.com/users/adrifelt/orgs","repos_url":"https://api.github.com/users/adrifelt/repos","events_url":"https://api.github.com/users/adrifelt/events{/privacy}","received_events_url":"https://api.github.com/users/adrifelt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"meacer","id":1571579,"avatar_url":"https://avatars.githubusercontent.com/u/1571579?v=3","gravatar_id":"","url":"https://api.github.com/users/meacer","html_url":"https://github.com/meacer","followers_url":"https://api.github.com/users/meacer/followers","following_url":"https://api.github.com/users/meacer/following{/other_user}","gists_url":"https://api.github.com/users/meacer/gists{/gist_id}","starred_url":"https://api.github.com/users/meacer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meacer/subscriptions","organizations_url":"https://api.github.com/users/meacer/orgs","repos_url":"https://api.github.com/users/meacer/repos","events_url":"https://api.github.com/users/meacer/events{/privacy}","received_events_url":"https://api.github.com/users/meacer/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-01-23T01:30:02Z","updated_at":"2015-01-23T06:26:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleChrome/experience-sampling/pulls/174","html_url":"https://github.com/GoogleChrome/experience-sampling/pull/174","diff_url":"https://github.com/GoogleChrome/experience-sampling/pull/174.diff","patch_url":"https://github.com/GoogleChrome/experience-sampling/pull/174.patch"},"body":"The participantId is supposed to be assigned once and then saved. However, it was being reassigned every time.\r\n\r\nRoot cause of the bug: I thought that a resolve() would return with the specified value. However, execution actually continues, and only the last resolve() value is returned. Due to this bug, it was always acting like the lookup had failed (even when it was successful)."},"comment":{"url":"https://api.github.com/repos/GoogleChrome/experience-sampling/issues/comments/71152864","html_url":"https://github.com/GoogleChrome/experience-sampling/pull/174#issuecomment-71152864","issue_url":"https://api.github.com/repos/GoogleChrome/experience-sampling/issues/174","id":71152864,"user":{"login":"meacer","id":1571579,"avatar_url":"https://avatars.githubusercontent.com/u/1571579?v=3","gravatar_id":"","url":"https://api.github.com/users/meacer","html_url":"https://github.com/meacer","followers_url":"https://api.github.com/users/meacer/followers","following_url":"https://api.github.com/users/meacer/following{/other_user}","gists_url":"https://api.github.com/users/meacer/gists{/gist_id}","starred_url":"https://api.github.com/users/meacer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meacer/subscriptions","organizations_url":"https://api.github.com/users/meacer/orgs","repos_url":"https://api.github.com/users/meacer/repos","events_url":"https://api.github.com/users/meacer/events{/privacy}","received_events_url":"https://api.github.com/users/meacer/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T06:26:37Z","updated_at":"2015-01-23T06:26:37Z","body":"Oh, interesting bug. Might be worth checking other resolve() calls. Lgtm."}}