{"action":"created","comment":{"url":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/comments/237673969","pull_request_review_id":180034116,"id":237673969,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzY3Mzk2OQ==","diff_hunk":"@@ -10,8 +11,12 @@ func main() {\n \t//make an AmqpPublisher to be injected into the following methods\n \tamqpPublisher := new(utils.AmqpPublisher)\n \n+\t//close mongo session\n+\tdefer db.MgoSession.Close()","path":"main.go","position":null,"original_position":13,"commit_id":"281c3df4ad4b0df3fd1d9a0efbf15094399be161","original_commit_id":"fd7aa65d8dc447557a5b6a897205a693c4ec2e11","user":{"login":"jusoto","id":5741827,"node_id":"MDQ6VXNlcjU3NDE4Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/5741827?v=4","gravatar_id":"","url":"https://api.github.com/users/jusoto","html_url":"https://github.com/jusoto","followers_url":"https://api.github.com/users/jusoto/followers","following_url":"https://api.github.com/users/jusoto/following{/other_user}","gists_url":"https://api.github.com/users/jusoto/gists{/gist_id}","starred_url":"https://api.github.com/users/jusoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jusoto/subscriptions","organizations_url":"https://api.github.com/users/jusoto/orgs","repos_url":"https://api.github.com/users/jusoto/repos","events_url":"https://api.github.com/users/jusoto/events{/privacy}","received_events_url":"https://api.github.com/users/jusoto/received_events","type":"User","site_admin":false},"body":"connection is opened and closed in the same file","created_at":"2018-11-29T21:56:08Z","updated_at":"2018-11-29T21:56:08Z","html_url":"https://github.com/AITestingOrg/calculation-service/pull/15#discussion_r237673969","pull_request_url":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/15","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/comments/237673969"},"html":{"href":"https://github.com/AITestingOrg/calculation-service/pull/15#discussion_r237673969"},"pull_request":{"href":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/15"}},"in_reply_to_id":206891009},"pull_request":{"url":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/15","id":204868767,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0ODY4NzY3","html_url":"https://github.com/AITestingOrg/calculation-service/pull/15","diff_url":"https://github.com/AITestingOrg/calculation-service/pull/15.diff","patch_url":"https://github.com/AITestingOrg/calculation-service/pull/15.patch","issue_url":"https://api.github.com/repos/AITestingOrg/calculation-service/issues/15","number":15,"state":"open","locked":false,"title":"Persist trip cost via Mongo","user":{"login":"marvinamari","id":10687220,"node_id":"MDQ6VXNlcjEwNjg3MjIw","avatar_url":"https://avatars3.githubusercontent.com/u/10687220?v=4","gravatar_id":"","url":"https://api.github.com/users/marvinamari","html_url":"https://github.com/marvinamari","followers_url":"https://api.github.com/users/marvinamari/followers","following_url":"https://api.github.com/users/marvinamari/following{/other_user}","gists_url":"https://api.github.com/users/marvinamari/gists{/gist_id}","starred_url":"https://api.github.com/users/marvinamari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marvinamari/subscriptions","organizations_url":"https://api.github.com/users/marvinamari/orgs","repos_url":"https://api.github.com/users/marvinamari/repos","events_url":"https://api.github.com/users/marvinamari/events{/privacy}","received_events_url":"https://api.github.com/users/marvinamari/received_events","type":"User","site_admin":false},"body":"There is at most one cost per user stored in DB. Existing trip cost are updated as the user creates more trips.","created_at":"2018-07-30T17:01:14Z","updated_at":"2018-11-29T21:56:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8ec3d566c2af6ad4b4ea1f2f36ecb2554797b7a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/15/commits","review_comments_url":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/15/comments","review_comment_url":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AITestingOrg/calculation-service/issues/15/comments","statuses_url":"https://api.github.com/repos/AITestingOrg/calculation-service/statuses/281c3df4ad4b0df3fd1d9a0efbf15094399be161","head":{"label":"AITestingOrg:mongodb-persistence","ref":"mongodb-persistence","sha":"281c3df4ad4b0df3fd1d9a0efbf15094399be161","user":{"login":"AITestingOrg","id":31357481,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMzU3NDgx","avatar_url":"https://avatars3.githubusercontent.com/u/31357481?v=4","gravatar_id":"","url":"https://api.github.com/users/AITestingOrg","html_url":"https://github.com/AITestingOrg","followers_url":"https://api.github.com/users/AITestingOrg/followers","following_url":"https://api.github.com/users/AITestingOrg/following{/other_user}","gists_url":"https://api.github.com/users/AITestingOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/AITestingOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AITestingOrg/subscriptions","organizations_url":"https://api.github.com/users/AITestingOrg/orgs","repos_url":"https://api.github.com/users/AITestingOrg/repos","events_url":"https://api.github.com/users/AITestingOrg/events{/privacy}","received_events_url":"https://api.github.com/users/AITestingOrg/received_events","type":"Organization","site_admin":false},"repo":{"id":126355230,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYzNTUyMzA=","name":"calculation-service","full_name":"AITestingOrg/calculation-service","private":false,"owner":{"login":"AITestingOrg","id":31357481,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMzU3NDgx","avatar_url":"https://avatars3.githubusercontent.com/u/31357481?v=4","gravatar_id":"","url":"https://api.github.com/users/AITestingOrg","html_url":"https://github.com/AITestingOrg","followers_url":"https://api.github.com/users/AITestingOrg/followers","following_url":"https://api.github.com/users/AITestingOrg/following{/other_user}","gists_url":"https://api.github.com/users/AITestingOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/AITestingOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AITestingOrg/subscriptions","organizations_url":"https://api.github.com/users/AITestingOrg/orgs","repos_url":"https://api.github.com/users/AITestingOrg/repos","events_url":"https://api.github.com/users/AITestingOrg/events{/privacy}","received_events_url":"https://api.github.com/users/AITestingOrg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AITestingOrg/calculation-service","description":null,"fork":false,"url":"https://api.github.com/repos/AITestingOrg/calculation-service","forks_url":"https://api.github.com/repos/AITestingOrg/calculation-service/forks","keys_url":"https://api.github.com/repos/AITestingOrg/calculation-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AITestingOrg/calculation-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AITestingOrg/calculation-service/teams","hooks_url":"https://api.github.com/repos/AITestingOrg/calculation-service/hooks","issue_events_url":"https://api.github.com/repos/AITestingOrg/calculation-service/issues/events{/number}","events_url":"https://api.github.com/repos/AITestingOrg/calculation-service/events","assignees_url":"https://api.github.com/repos/AITestingOrg/calculation-service/assignees{/user}","branches_url":"https://api.github.com/repos/AITestingOrg/calculation-service/branches{/branch}","tags_url":"https://api.github.com/repos/AITestingOrg/calculation-service/tags","blobs_url":"https://api.github.com/repos/AITestingOrg/calculation-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AITestingOrg/calculation-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AITestingOrg/calculation-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/AITestingOrg/calculation-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AITestingOrg/calculation-service/statuses/{sha}","languages_url":"https://api.github.com/repos/AITestingOrg/calculation-service/languages","stargazers_url":"https://api.github.com/repos/AITestingOrg/calculation-service/stargazers","contributors_url":"https://api.github.com/repos/AITestingOrg/calculation-service/contributors","subscribers_url":"https://api.github.com/repos/AITestingOrg/calculation-service/subscribers","subscription_url":"https://api.github.com/repos/AITestingOrg/calculation-service/subscription","commits_url":"https://api.github.com/repos/AITestingOrg/calculation-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/AITestingOrg/calculation-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/AITestingOrg/calculation-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/AITestingOrg/calculation-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/AITestingOrg/calculation-service/contents/{+path}","compare_url":"https://api.github.com/repos/AITestingOrg/calculation-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AITestingOrg/calculation-service/merges","archive_url":"https://api.github.com/repos/AITestingOrg/calculation-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AITestingOrg/calculation-service/downloads","issues_url":"https://api.github.com/repos/AITestingOrg/calculation-service/issues{/number}","pulls_url":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls{/number}","milestones_url":"https://api.github.com/repos/AITestingOrg/calculation-service/milestones{/number}","notifications_url":"https://api.github.com/repos/AITestingOrg/calculation-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AITestingOrg/calculation-service/labels{/name}","releases_url":"https://api.github.com/repos/AITestingOrg/calculation-service/releases{/id}","deployments_url":"https://api.github.com/repos/AITestingOrg/calculation-service/deployments","created_at":"2018-03-22T15:23:02Z","updated_at":"2018-08-02T13:58:19Z","pushed_at":"2018-10-20T00:57:49Z","git_url":"git://github.com/AITestingOrg/calculation-service.git","ssh_url":"git@github.com:AITestingOrg/calculation-service.git","clone_url":"https://github.com/AITestingOrg/calculation-service.git","svn_url":"https://github.com/AITestingOrg/calculation-service","homepage":null,"size":11839,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AITestingOrg:master","ref":"master","sha":"31d4f42ea51bc5df6b84bddb67cce8560924d03b","user":{"login":"AITestingOrg","id":31357481,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMzU3NDgx","avatar_url":"https://avatars3.githubusercontent.com/u/31357481?v=4","gravatar_id":"","url":"https://api.github.com/users/AITestingOrg","html_url":"https://github.com/AITestingOrg","followers_url":"https://api.github.com/users/AITestingOrg/followers","following_url":"https://api.github.com/users/AITestingOrg/following{/other_user}","gists_url":"https://api.github.com/users/AITestingOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/AITestingOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AITestingOrg/subscriptions","organizations_url":"https://api.github.com/users/AITestingOrg/orgs","repos_url":"https://api.github.com/users/AITestingOrg/repos","events_url":"https://api.github.com/users/AITestingOrg/events{/privacy}","received_events_url":"https://api.github.com/users/AITestingOrg/received_events","type":"Organization","site_admin":false},"repo":{"id":126355230,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYzNTUyMzA=","name":"calculation-service","full_name":"AITestingOrg/calculation-service","private":false,"owner":{"login":"AITestingOrg","id":31357481,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMzU3NDgx","avatar_url":"https://avatars3.githubusercontent.com/u/31357481?v=4","gravatar_id":"","url":"https://api.github.com/users/AITestingOrg","html_url":"https://github.com/AITestingOrg","followers_url":"https://api.github.com/users/AITestingOrg/followers","following_url":"https://api.github.com/users/AITestingOrg/following{/other_user}","gists_url":"https://api.github.com/users/AITestingOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/AITestingOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AITestingOrg/subscriptions","organizations_url":"https://api.github.com/users/AITestingOrg/orgs","repos_url":"https://api.github.com/users/AITestingOrg/repos","events_url":"https://api.github.com/users/AITestingOrg/events{/privacy}","received_events_url":"https://api.github.com/users/AITestingOrg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AITestingOrg/calculation-service","description":null,"fork":false,"url":"https://api.github.com/repos/AITestingOrg/calculation-service","forks_url":"https://api.github.com/repos/AITestingOrg/calculation-service/forks","keys_url":"https://api.github.com/repos/AITestingOrg/calculation-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AITestingOrg/calculation-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AITestingOrg/calculation-service/teams","hooks_url":"https://api.github.com/repos/AITestingOrg/calculation-service/hooks","issue_events_url":"https://api.github.com/repos/AITestingOrg/calculation-service/issues/events{/number}","events_url":"https://api.github.com/repos/AITestingOrg/calculation-service/events","assignees_url":"https://api.github.com/repos/AITestingOrg/calculation-service/assignees{/user}","branches_url":"https://api.github.com/repos/AITestingOrg/calculation-service/branches{/branch}","tags_url":"https://api.github.com/repos/AITestingOrg/calculation-service/tags","blobs_url":"https://api.github.com/repos/AITestingOrg/calculation-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AITestingOrg/calculation-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AITestingOrg/calculation-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/AITestingOrg/calculation-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AITestingOrg/calculation-service/statuses/{sha}","languages_url":"https://api.github.com/repos/AITestingOrg/calculation-service/languages","stargazers_url":"https://api.github.com/repos/AITestingOrg/calculation-service/stargazers","contributors_url":"https://api.github.com/repos/AITestingOrg/calculation-service/contributors","subscribers_url":"https://api.github.com/repos/AITestingOrg/calculation-service/subscribers","subscription_url":"https://api.github.com/repos/AITestingOrg/calculation-service/subscription","commits_url":"https://api.github.com/repos/AITestingOrg/calculation-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/AITestingOrg/calculation-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/AITestingOrg/calculation-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/AITestingOrg/calculation-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/AITestingOrg/calculation-service/contents/{+path}","compare_url":"https://api.github.com/repos/AITestingOrg/calculation-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AITestingOrg/calculation-service/merges","archive_url":"https://api.github.com/repos/AITestingOrg/calculation-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AITestingOrg/calculation-service/downloads","issues_url":"https://api.github.com/repos/AITestingOrg/calculation-service/issues{/number}","pulls_url":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls{/number}","milestones_url":"https://api.github.com/repos/AITestingOrg/calculation-service/milestones{/number}","notifications_url":"https://api.github.com/repos/AITestingOrg/calculation-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AITestingOrg/calculation-service/labels{/name}","releases_url":"https://api.github.com/repos/AITestingOrg/calculation-service/releases{/id}","deployments_url":"https://api.github.com/repos/AITestingOrg/calculation-service/deployments","created_at":"2018-03-22T15:23:02Z","updated_at":"2018-08-02T13:58:19Z","pushed_at":"2018-10-20T00:57:49Z","git_url":"git://github.com/AITestingOrg/calculation-service.git","ssh_url":"git@github.com:AITestingOrg/calculation-service.git","clone_url":"https://github.com/AITestingOrg/calculation-service.git","svn_url":"https://github.com/AITestingOrg/calculation-service","homepage":null,"size":11839,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/15"},"html":{"href":"https://github.com/AITestingOrg/calculation-service/pull/15"},"issue":{"href":"https://api.github.com/repos/AITestingOrg/calculation-service/issues/15"},"comments":{"href":"https://api.github.com/repos/AITestingOrg/calculation-service/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AITestingOrg/calculation-service/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/AITestingOrg/calculation-service/statuses/281c3df4ad4b0df3fd1d9a0efbf15094399be161"}},"author_association":"NONE"}}
{"actor":{"display_login":"jusoto"}}