{"action":"created","comment":{"url":"https://api.github.com/repos/Kedarnag13/Marga/pulls/comments/61672784","id":61672784,"diff_hunk":"@@ -94,12 +90,7 @@ func (m issueController) MyIssues(rw http.ResponseWriter, req *http.Request) {\n \tid := vars[\"id\"]\n \tuser_id, err := strconv.Atoi(id)\n \n-\tdb, err := sql.Open(\"postgres\", \"password=password host=localhost dbname=marga_development sslmode=disable\")\n-\tif err != nil {\n-\t\tpanic(err)\n-\t}\n-\n-\tget_issues, err := db.Query(\"select id, name, type, description, latitude, longitude, image, status, address, user_id from issues where user_id = $1 \", user_id)\n+\tget_issues, err := db.DBCon.Query(\"select id, name, type, description, latitude, longitude, image, status, address, user_id from issues where user_id = $1 \", user_id)","path":"api/v1/controllers/users/issue.go","position":44,"original_position":44,"commit_id":"4cbd15080d6c5ed458fb5384cce24a8c2ac02413","original_commit_id":"4cbd15080d6c5ed458fb5384cce24a8c2ac02413","user":{"login":"Prakruthee","id":9946080,"avatar_url":"https://avatars.githubusercontent.com/u/9946080?v=3","gravatar_id":"","url":"https://api.github.com/users/Prakruthee","html_url":"https://github.com/Prakruthee","followers_url":"https://api.github.com/users/Prakruthee/followers","following_url":"https://api.github.com/users/Prakruthee/following{/other_user}","gists_url":"https://api.github.com/users/Prakruthee/gists{/gist_id}","starred_url":"https://api.github.com/users/Prakruthee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prakruthee/subscriptions","organizations_url":"https://api.github.com/users/Prakruthee/orgs","repos_url":"https://api.github.com/users/Prakruthee/repos","events_url":"https://api.github.com/users/Prakruthee/events{/privacy}","received_events_url":"https://api.github.com/users/Prakruthee/received_events","type":"User","site_admin":false},"body":"need to defer the query","created_at":"2016-04-30T18:06:08Z","updated_at":"2016-04-30T18:06:08Z","html_url":"https://github.com/Kedarnag13/Marga/pull/35#discussion_r61672784","pull_request_url":"https://api.github.com/repos/Kedarnag13/Marga/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/Kedarnag13/Marga/pulls/comments/61672784"},"html":{"href":"https://github.com/Kedarnag13/Marga/pull/35#discussion_r61672784"},"pull_request":{"href":"https://api.github.com/repos/Kedarnag13/Marga/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/Kedarnag13/Marga/pulls/35","id":68424132,"html_url":"https://github.com/Kedarnag13/Marga/pull/35","diff_url":"https://github.com/Kedarnag13/Marga/pull/35.diff","patch_url":"https://github.com/Kedarnag13/Marga/pull/35.patch","issue_url":"https://api.github.com/repos/Kedarnag13/Marga/issues/35","number":35,"state":"open","locked":false,"title":"Test cases","user":{"login":"Kedarnag13","id":5475397,"avatar_url":"https://avatars.githubusercontent.com/u/5475397?v=3","gravatar_id":"","url":"https://api.github.com/users/Kedarnag13","html_url":"https://github.com/Kedarnag13","followers_url":"https://api.github.com/users/Kedarnag13/followers","following_url":"https://api.github.com/users/Kedarnag13/following{/other_user}","gists_url":"https://api.github.com/users/Kedarnag13/gists{/gist_id}","starred_url":"https://api.github.com/users/Kedarnag13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kedarnag13/subscriptions","organizations_url":"https://api.github.com/users/Kedarnag13/orgs","repos_url":"https://api.github.com/users/Kedarnag13/repos","events_url":"https://api.github.com/users/Kedarnag13/events{/privacy}","received_events_url":"https://api.github.com/users/Kedarnag13/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-29T19:48:41Z","updated_at":"2016-04-30T18:06:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1bdc59a4dd044e0c7f4a22bd2ae38addc8938c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Kedarnag13/Marga/pulls/35/commits","review_comments_url":"https://api.github.com/repos/Kedarnag13/Marga/pulls/35/comments","review_comment_url":"https://api.github.com/repos/Kedarnag13/Marga/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kedarnag13/Marga/issues/35/comments","statuses_url":"https://api.github.com/repos/Kedarnag13/Marga/statuses/4cbd15080d6c5ed458fb5384cce24a8c2ac02413","head":{"label":"Kedarnag13:test_cases","ref":"test_cases","sha":"4cbd15080d6c5ed458fb5384cce24a8c2ac02413","user":{"login":"Kedarnag13","id":5475397,"avatar_url":"https://avatars.githubusercontent.com/u/5475397?v=3","gravatar_id":"","url":"https://api.github.com/users/Kedarnag13","html_url":"https://github.com/Kedarnag13","followers_url":"https://api.github.com/users/Kedarnag13/followers","following_url":"https://api.github.com/users/Kedarnag13/following{/other_user}","gists_url":"https://api.github.com/users/Kedarnag13/gists{/gist_id}","starred_url":"https://api.github.com/users/Kedarnag13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kedarnag13/subscriptions","organizations_url":"https://api.github.com/users/Kedarnag13/orgs","repos_url":"https://api.github.com/users/Kedarnag13/repos","events_url":"https://api.github.com/users/Kedarnag13/events{/privacy}","received_events_url":"https://api.github.com/users/Kedarnag13/received_events","type":"User","site_admin":false},"repo":{"id":48244171,"name":"Marga","full_name":"Kedarnag13/Marga","owner":{"login":"Kedarnag13","id":5475397,"avatar_url":"https://avatars.githubusercontent.com/u/5475397?v=3","gravatar_id":"","url":"https://api.github.com/users/Kedarnag13","html_url":"https://github.com/Kedarnag13","followers_url":"https://api.github.com/users/Kedarnag13/followers","following_url":"https://api.github.com/users/Kedarnag13/following{/other_user}","gists_url":"https://api.github.com/users/Kedarnag13/gists{/gist_id}","starred_url":"https://api.github.com/users/Kedarnag13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kedarnag13/subscriptions","organizations_url":"https://api.github.com/users/Kedarnag13/orgs","repos_url":"https://api.github.com/users/Kedarnag13/repos","events_url":"https://api.github.com/users/Kedarnag13/events{/privacy}","received_events_url":"https://api.github.com/users/Kedarnag13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kedarnag13/Marga","description":"This application is for the use of the people of Mysore, A community Application that has been designed keeping in mind, to help solve day to day problems of a common man. We are using iOS for the Front-end and Golang for the  Back-end.","fork":false,"url":"https://api.github.com/repos/Kedarnag13/Marga","forks_url":"https://api.github.com/repos/Kedarnag13/Marga/forks","keys_url":"https://api.github.com/repos/Kedarnag13/Marga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kedarnag13/Marga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kedarnag13/Marga/teams","hooks_url":"https://api.github.com/repos/Kedarnag13/Marga/hooks","issue_events_url":"https://api.github.com/repos/Kedarnag13/Marga/issues/events{/number}","events_url":"https://api.github.com/repos/Kedarnag13/Marga/events","assignees_url":"https://api.github.com/repos/Kedarnag13/Marga/assignees{/user}","branches_url":"https://api.github.com/repos/Kedarnag13/Marga/branches{/branch}","tags_url":"https://api.github.com/repos/Kedarnag13/Marga/tags","blobs_url":"https://api.github.com/repos/Kedarnag13/Marga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kedarnag13/Marga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kedarnag13/Marga/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kedarnag13/Marga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kedarnag13/Marga/statuses/{sha}","languages_url":"https://api.github.com/repos/Kedarnag13/Marga/languages","stargazers_url":"https://api.github.com/repos/Kedarnag13/Marga/stargazers","contributors_url":"https://api.github.com/repos/Kedarnag13/Marga/contributors","subscribers_url":"https://api.github.com/repos/Kedarnag13/Marga/subscribers","subscription_url":"https://api.github.com/repos/Kedarnag13/Marga/subscription","commits_url":"https://api.github.com/repos/Kedarnag13/Marga/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kedarnag13/Marga/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kedarnag13/Marga/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kedarnag13/Marga/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kedarnag13/Marga/contents/{+path}","compare_url":"https://api.github.com/repos/Kedarnag13/Marga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kedarnag13/Marga/merges","archive_url":"https://api.github.com/repos/Kedarnag13/Marga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kedarnag13/Marga/downloads","issues_url":"https://api.github.com/repos/Kedarnag13/Marga/issues{/number}","pulls_url":"https://api.github.com/repos/Kedarnag13/Marga/pulls{/number}","milestones_url":"https://api.github.com/repos/Kedarnag13/Marga/milestones{/number}","notifications_url":"https://api.github.com/repos/Kedarnag13/Marga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kedarnag13/Marga/labels{/name}","releases_url":"https://api.github.com/repos/Kedarnag13/Marga/releases{/id}","deployments_url":"https://api.github.com/repos/Kedarnag13/Marga/deployments","created_at":"2015-12-18T16:09:36Z","updated_at":"2016-02-03T06:19:01Z","pushed_at":"2016-04-29T20:04:44Z","git_url":"git://github.com/Kedarnag13/Marga.git","ssh_url":"git@github.com:Kedarnag13/Marga.git","clone_url":"https://github.com/Kedarnag13/Marga.git","svn_url":"https://github.com/Kedarnag13/Marga","homepage":null,"size":4034,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"base":{"label":"Kedarnag13:development","ref":"development","sha":"ebffc2e4d99ebac9189579cc05b1c3e712fc77e9","user":{"login":"Kedarnag13","id":5475397,"avatar_url":"https://avatars.githubusercontent.com/u/5475397?v=3","gravatar_id":"","url":"https://api.github.com/users/Kedarnag13","html_url":"https://github.com/Kedarnag13","followers_url":"https://api.github.com/users/Kedarnag13/followers","following_url":"https://api.github.com/users/Kedarnag13/following{/other_user}","gists_url":"https://api.github.com/users/Kedarnag13/gists{/gist_id}","starred_url":"https://api.github.com/users/Kedarnag13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kedarnag13/subscriptions","organizations_url":"https://api.github.com/users/Kedarnag13/orgs","repos_url":"https://api.github.com/users/Kedarnag13/repos","events_url":"https://api.github.com/users/Kedarnag13/events{/privacy}","received_events_url":"https://api.github.com/users/Kedarnag13/received_events","type":"User","site_admin":false},"repo":{"id":48244171,"name":"Marga","full_name":"Kedarnag13/Marga","owner":{"login":"Kedarnag13","id":5475397,"avatar_url":"https://avatars.githubusercontent.com/u/5475397?v=3","gravatar_id":"","url":"https://api.github.com/users/Kedarnag13","html_url":"https://github.com/Kedarnag13","followers_url":"https://api.github.com/users/Kedarnag13/followers","following_url":"https://api.github.com/users/Kedarnag13/following{/other_user}","gists_url":"https://api.github.com/users/Kedarnag13/gists{/gist_id}","starred_url":"https://api.github.com/users/Kedarnag13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kedarnag13/subscriptions","organizations_url":"https://api.github.com/users/Kedarnag13/orgs","repos_url":"https://api.github.com/users/Kedarnag13/repos","events_url":"https://api.github.com/users/Kedarnag13/events{/privacy}","received_events_url":"https://api.github.com/users/Kedarnag13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kedarnag13/Marga","description":"This application is for the use of the people of Mysore, A community Application that has been designed keeping in mind, to help solve day to day problems of a common man. We are using iOS for the Front-end and Golang for the  Back-end.","fork":false,"url":"https://api.github.com/repos/Kedarnag13/Marga","forks_url":"https://api.github.com/repos/Kedarnag13/Marga/forks","keys_url":"https://api.github.com/repos/Kedarnag13/Marga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kedarnag13/Marga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kedarnag13/Marga/teams","hooks_url":"https://api.github.com/repos/Kedarnag13/Marga/hooks","issue_events_url":"https://api.github.com/repos/Kedarnag13/Marga/issues/events{/number}","events_url":"https://api.github.com/repos/Kedarnag13/Marga/events","assignees_url":"https://api.github.com/repos/Kedarnag13/Marga/assignees{/user}","branches_url":"https://api.github.com/repos/Kedarnag13/Marga/branches{/branch}","tags_url":"https://api.github.com/repos/Kedarnag13/Marga/tags","blobs_url":"https://api.github.com/repos/Kedarnag13/Marga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kedarnag13/Marga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kedarnag13/Marga/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kedarnag13/Marga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kedarnag13/Marga/statuses/{sha}","languages_url":"https://api.github.com/repos/Kedarnag13/Marga/languages","stargazers_url":"https://api.github.com/repos/Kedarnag13/Marga/stargazers","contributors_url":"https://api.github.com/repos/Kedarnag13/Marga/contributors","subscribers_url":"https://api.github.com/repos/Kedarnag13/Marga/subscribers","subscription_url":"https://api.github.com/repos/Kedarnag13/Marga/subscription","commits_url":"https://api.github.com/repos/Kedarnag13/Marga/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kedarnag13/Marga/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kedarnag13/Marga/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kedarnag13/Marga/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kedarnag13/Marga/contents/{+path}","compare_url":"https://api.github.com/repos/Kedarnag13/Marga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kedarnag13/Marga/merges","archive_url":"https://api.github.com/repos/Kedarnag13/Marga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kedarnag13/Marga/downloads","issues_url":"https://api.github.com/repos/Kedarnag13/Marga/issues{/number}","pulls_url":"https://api.github.com/repos/Kedarnag13/Marga/pulls{/number}","milestones_url":"https://api.github.com/repos/Kedarnag13/Marga/milestones{/number}","notifications_url":"https://api.github.com/repos/Kedarnag13/Marga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kedarnag13/Marga/labels{/name}","releases_url":"https://api.github.com/repos/Kedarnag13/Marga/releases{/id}","deployments_url":"https://api.github.com/repos/Kedarnag13/Marga/deployments","created_at":"2015-12-18T16:09:36Z","updated_at":"2016-02-03T06:19:01Z","pushed_at":"2016-04-29T20:04:44Z","git_url":"git://github.com/Kedarnag13/Marga.git","ssh_url":"git@github.com:Kedarnag13/Marga.git","clone_url":"https://github.com/Kedarnag13/Marga.git","svn_url":"https://github.com/Kedarnag13/Marga","homepage":null,"size":4034,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/Kedarnag13/Marga/pulls/35"},"html":{"href":"https://github.com/Kedarnag13/Marga/pull/35"},"issue":{"href":"https://api.github.com/repos/Kedarnag13/Marga/issues/35"},"comments":{"href":"https://api.github.com/repos/Kedarnag13/Marga/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/Kedarnag13/Marga/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/Kedarnag13/Marga/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kedarnag13/Marga/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/Kedarnag13/Marga/statuses/4cbd15080d6c5ed458fb5384cce24a8c2ac02413"}}}}