{"action":"created","comment":{"url":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/comments/32987358","id":32987358,"diff_hunk":"@@ -114,33 +117,37 @@ func main() {\n \t}\n \t_ = session.DB(\"\").C(deviceDataCollection).EnsureIndex(index)\n \n-\tdefer session.Close()\n-\n \trouter := pat.New()\n-\trouter.Add(\"GET\", \"/status\", http.HandlerFunc(func(res http.ResponseWriter, _ *http.Request) {\n+\trouter.Add(\"GET\", \"/status\", http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {","path":"tide-whisperer.go","position":80,"original_position":80,"commit_id":"188a13eb3687d385cb64a04ace96b5d8738ea423","original_commit_id":"188a13eb3687d385cb64a04ace96b5d8738ea423","user":{"login":"darinkrauss","id":1224433,"avatar_url":"https://avatars.githubusercontent.com/u/1224433?v=3","gravatar_id":"","url":"https://api.github.com/users/darinkrauss","html_url":"https://github.com/darinkrauss","followers_url":"https://api.github.com/users/darinkrauss/followers","following_url":"https://api.github.com/users/darinkrauss/following{/other_user}","gists_url":"https://api.github.com/users/darinkrauss/gists{/gist_id}","starred_url":"https://api.github.com/users/darinkrauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darinkrauss/subscriptions","organizations_url":"https://api.github.com/users/darinkrauss/orgs","repos_url":"https://api.github.com/users/darinkrauss/repos","events_url":"https://api.github.com/users/darinkrauss/events{/privacy}","received_events_url":"https://api.github.com/users/darinkrauss/received_events","type":"User","site_admin":false},"body":"Still don't need req argument here.","created_at":"2015-06-22T21:44:08Z","updated_at":"2015-06-22T21:44:08Z","html_url":"https://github.com/tidepool-org/tide-whisperer/pull/12#discussion_r32987358","pull_request_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/comments/32987358"},"html":{"href":"https://github.com/tidepool-org/tide-whisperer/pull/12#discussion_r32987358"},"pull_request":{"href":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/12","id":37213970,"html_url":"https://github.com/tidepool-org/tide-whisperer/pull/12","diff_url":"https://github.com/tidepool-org/tide-whisperer/pull/12.diff","patch_url":"https://github.com/tidepool-org/tide-whisperer/pull/12.patch","issue_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/issues/12","number":12,"state":"open","locked":false,"title":"Jhbate/timings","user":{"login":"jh-bate","id":5168993,"avatar_url":"https://avatars.githubusercontent.com/u/5168993?v=3","gravatar_id":"","url":"https://api.github.com/users/jh-bate","html_url":"https://github.com/jh-bate","followers_url":"https://api.github.com/users/jh-bate/followers","following_url":"https://api.github.com/users/jh-bate/following{/other_user}","gists_url":"https://api.github.com/users/jh-bate/gists{/gist_id}","starred_url":"https://api.github.com/users/jh-bate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jh-bate/subscriptions","organizations_url":"https://api.github.com/users/jh-bate/orgs","repos_url":"https://api.github.com/users/jh-bate/repos","events_url":"https://api.github.com/users/jh-bate/events{/privacy}","received_events_url":"https://api.github.com/users/jh-bate/received_events","type":"User","site_admin":false},"body":"ping @darinkrauss \r\n\r\nI will do some initial testing on this in development and then if that looks good then will ask for review prior to merge. \r\n\r\n### Updates:\r\n\r\n - addition of logging for time taken for service call and also mongo query. \r\n - simplify how we do the mongo query to exclude fields we don't want to return ","created_at":"2015-06-09T02:16:14Z","updated_at":"2015-06-22T21:44:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89111ab46367b0c988cdd18ffea8e523257d8e46","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/12/commits","review_comments_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/12/comments","review_comment_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/issues/12/comments","statuses_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/statuses/188a13eb3687d385cb64a04ace96b5d8738ea423","head":{"label":"tidepool-org:jhbate/timings","ref":"jhbate/timings","sha":"188a13eb3687d385cb64a04ace96b5d8738ea423","user":{"login":"tidepool-org","id":4390820,"avatar_url":"https://avatars.githubusercontent.com/u/4390820?v=3","gravatar_id":"","url":"https://api.github.com/users/tidepool-org","html_url":"https://github.com/tidepool-org","followers_url":"https://api.github.com/users/tidepool-org/followers","following_url":"https://api.github.com/users/tidepool-org/following{/other_user}","gists_url":"https://api.github.com/users/tidepool-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tidepool-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidepool-org/subscriptions","organizations_url":"https://api.github.com/users/tidepool-org/orgs","repos_url":"https://api.github.com/users/tidepool-org/repos","events_url":"https://api.github.com/users/tidepool-org/events{/privacy}","received_events_url":"https://api.github.com/users/tidepool-org/received_events","type":"Organization","site_admin":false},"repo":{"id":21052788,"name":"tide-whisperer","full_name":"tidepool-org/tide-whisperer","owner":{"login":"tidepool-org","id":4390820,"avatar_url":"https://avatars.githubusercontent.com/u/4390820?v=3","gravatar_id":"","url":"https://api.github.com/users/tidepool-org","html_url":"https://github.com/tidepool-org","followers_url":"https://api.github.com/users/tidepool-org/followers","following_url":"https://api.github.com/users/tidepool-org/following{/other_user}","gists_url":"https://api.github.com/users/tidepool-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tidepool-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidepool-org/subscriptions","organizations_url":"https://api.github.com/users/tidepool-org/orgs","repos_url":"https://api.github.com/users/tidepool-org/repos","events_url":"https://api.github.com/users/tidepool-org/events{/privacy}","received_events_url":"https://api.github.com/users/tidepool-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tidepool-org/tide-whisperer","description":"Data access API for Tidepool's diabetes data as used by Blip","fork":false,"url":"https://api.github.com/repos/tidepool-org/tide-whisperer","forks_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/forks","keys_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/teams","hooks_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/hooks","issue_events_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/issues/events{/number}","events_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/events","assignees_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/assignees{/user}","branches_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/branches{/branch}","tags_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/tags","blobs_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/git/refs{/sha}","trees_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/statuses/{sha}","languages_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/languages","stargazers_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/stargazers","contributors_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/contributors","subscribers_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/subscribers","subscription_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/subscription","commits_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/commits{/sha}","git_commits_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/git/commits{/sha}","comments_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/comments{/number}","issue_comment_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/issues/comments{/number}","contents_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/contents/{+path}","compare_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/merges","archive_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/downloads","issues_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/issues{/number}","pulls_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls{/number}","milestones_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/milestones{/number}","notifications_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/labels{/name}","releases_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/releases{/id}","created_at":"2014-06-20T21:19:26Z","updated_at":"2015-03-20T20:00:15Z","pushed_at":"2015-06-16T01:24:58Z","git_url":"git://github.com/tidepool-org/tide-whisperer.git","ssh_url":"git@github.com:tidepool-org/tide-whisperer.git","clone_url":"https://github.com/tidepool-org/tide-whisperer.git","svn_url":"https://github.com/tidepool-org/tide-whisperer","homepage":"http://tidepool.org/products/blip/","size":655,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tidepool-org:master","ref":"master","sha":"a593f13254ff870dc9e2f12cd7f552665ae9a7cf","user":{"login":"tidepool-org","id":4390820,"avatar_url":"https://avatars.githubusercontent.com/u/4390820?v=3","gravatar_id":"","url":"https://api.github.com/users/tidepool-org","html_url":"https://github.com/tidepool-org","followers_url":"https://api.github.com/users/tidepool-org/followers","following_url":"https://api.github.com/users/tidepool-org/following{/other_user}","gists_url":"https://api.github.com/users/tidepool-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tidepool-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidepool-org/subscriptions","organizations_url":"https://api.github.com/users/tidepool-org/orgs","repos_url":"https://api.github.com/users/tidepool-org/repos","events_url":"https://api.github.com/users/tidepool-org/events{/privacy}","received_events_url":"https://api.github.com/users/tidepool-org/received_events","type":"Organization","site_admin":false},"repo":{"id":21052788,"name":"tide-whisperer","full_name":"tidepool-org/tide-whisperer","owner":{"login":"tidepool-org","id":4390820,"avatar_url":"https://avatars.githubusercontent.com/u/4390820?v=3","gravatar_id":"","url":"https://api.github.com/users/tidepool-org","html_url":"https://github.com/tidepool-org","followers_url":"https://api.github.com/users/tidepool-org/followers","following_url":"https://api.github.com/users/tidepool-org/following{/other_user}","gists_url":"https://api.github.com/users/tidepool-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tidepool-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidepool-org/subscriptions","organizations_url":"https://api.github.com/users/tidepool-org/orgs","repos_url":"https://api.github.com/users/tidepool-org/repos","events_url":"https://api.github.com/users/tidepool-org/events{/privacy}","received_events_url":"https://api.github.com/users/tidepool-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tidepool-org/tide-whisperer","description":"Data access API for Tidepool's diabetes data as used by Blip","fork":false,"url":"https://api.github.com/repos/tidepool-org/tide-whisperer","forks_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/forks","keys_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/teams","hooks_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/hooks","issue_events_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/issues/events{/number}","events_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/events","assignees_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/assignees{/user}","branches_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/branches{/branch}","tags_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/tags","blobs_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/git/refs{/sha}","trees_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/statuses/{sha}","languages_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/languages","stargazers_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/stargazers","contributors_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/contributors","subscribers_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/subscribers","subscription_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/subscription","commits_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/commits{/sha}","git_commits_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/git/commits{/sha}","comments_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/comments{/number}","issue_comment_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/issues/comments{/number}","contents_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/contents/{+path}","compare_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/merges","archive_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/downloads","issues_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/issues{/number}","pulls_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls{/number}","milestones_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/milestones{/number}","notifications_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/labels{/name}","releases_url":"https://api.github.com/repos/tidepool-org/tide-whisperer/releases{/id}","created_at":"2014-06-20T21:19:26Z","updated_at":"2015-03-20T20:00:15Z","pushed_at":"2015-06-16T01:24:58Z","git_url":"git://github.com/tidepool-org/tide-whisperer.git","ssh_url":"git@github.com:tidepool-org/tide-whisperer.git","clone_url":"https://github.com/tidepool-org/tide-whisperer.git","svn_url":"https://github.com/tidepool-org/tide-whisperer","homepage":"http://tidepool.org/products/blip/","size":655,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/12"},"html":{"href":"https://github.com/tidepool-org/tide-whisperer/pull/12"},"issue":{"href":"https://api.github.com/repos/tidepool-org/tide-whisperer/issues/12"},"comments":{"href":"https://api.github.com/repos/tidepool-org/tide-whisperer/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tidepool-org/tide-whisperer/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/tidepool-org/tide-whisperer/statuses/188a13eb3687d385cb64a04ace96b5d8738ea423"}}}}