{"action":"created","comment":{"url":"https://api.github.com/repos/anchor/oauth2-server/pulls/comments/34757868","id":34757868,"diff_hunk":"@@ -73,9 +103,8 @@ instance TokenStore PSQLConnPool where\n \n     storeReadCode (PSQLConnPool pool) request_code = do\n         codes :: [RequestCode] <- withResource pool $ \\conn -> do\n-            debugM logName $ \"Attempting storeLoadCode\"\n-            query conn \"SELECT code, authorized, expires, user_id, client_id, redirect_url, scope, state FROM request_codes WHERE (code = ?)\"\n-                       (Only request_code)\n+            debugM logName $ \"Attempting storeReadCode\"","path":"lib/Network/OAuth2/Server/Store/PostgreSQL.hs","position":66,"original_position":66,"commit_id":"7ab2acd5489a3d812e1edc0241b7942798aa9682","original_commit_id":"7ab2acd5489a3d812e1edc0241b7942798aa9682","user":{"login":"christian-marie","id":3360007,"avatar_url":"https://avatars.githubusercontent.com/u/3360007?v=3","gravatar_id":"","url":"https://api.github.com/users/christian-marie","html_url":"https://github.com/christian-marie","followers_url":"https://api.github.com/users/christian-marie/followers","following_url":"https://api.github.com/users/christian-marie/following{/other_user}","gists_url":"https://api.github.com/users/christian-marie/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-marie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-marie/subscriptions","organizations_url":"https://api.github.com/users/christian-marie/orgs","repos_url":"https://api.github.com/users/christian-marie/repos","events_url":"https://api.github.com/users/christian-marie/events{/privacy}","received_events_url":"https://api.github.com/users/christian-marie/received_events","type":"User","site_admin":false},"body":"Your linter should hate this?","created_at":"2015-07-16T05:59:04Z","updated_at":"2015-07-16T05:59:04Z","html_url":"https://github.com/anchor/oauth2-server/pull/162#discussion_r34757868","pull_request_url":"https://api.github.com/repos/anchor/oauth2-server/pulls/162","_links":{"self":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/comments/34757868"},"html":{"href":"https://github.com/anchor/oauth2-server/pull/162#discussion_r34757868"},"pull_request":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/162"}}},"pull_request":{"url":"https://api.github.com/repos/anchor/oauth2-server/pulls/162","id":39876612,"html_url":"https://github.com/anchor/oauth2-server/pull/162","diff_url":"https://github.com/anchor/oauth2-server/pull/162.diff","patch_url":"https://github.com/anchor/oauth2-server/pull/162.patch","issue_url":"https://api.github.com/repos/anchor/oauth2-server/issues/162","number":162,"state":"closed","locked":false,"title":"Added scope and status to + create/delete ops for clients","user":{"login":"oswynb","id":1607128,"avatar_url":"https://avatars.githubusercontent.com/u/1607128?v=3","gravatar_id":"","url":"https://api.github.com/users/oswynb","html_url":"https://github.com/oswynb","followers_url":"https://api.github.com/users/oswynb/followers","following_url":"https://api.github.com/users/oswynb/following{/other_user}","gists_url":"https://api.github.com/users/oswynb/gists{/gist_id}","starred_url":"https://api.github.com/users/oswynb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oswynb/subscriptions","organizations_url":"https://api.github.com/users/oswynb/orgs","repos_url":"https://api.github.com/users/oswynb/repos","events_url":"https://api.github.com/users/oswynb/events{/privacy}","received_events_url":"https://api.github.com/users/oswynb/received_events","type":"User","site_admin":false},"body":"Updated schema, tests and test data.","created_at":"2015-07-14T02:32:23Z","updated_at":"2015-07-16T05:59:04Z","closed_at":"2015-07-16T05:58:56Z","merged_at":"2015-07-16T05:58:56Z","merge_commit_sha":"30db377076a699c61ef4859a23c685bef2abc03e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/anchor/oauth2-server/pulls/162/commits","review_comments_url":"https://api.github.com/repos/anchor/oauth2-server/pulls/162/comments","review_comment_url":"https://api.github.com/repos/anchor/oauth2-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/anchor/oauth2-server/issues/162/comments","statuses_url":"https://api.github.com/repos/anchor/oauth2-server/statuses/7ab2acd5489a3d812e1edc0241b7942798aa9682","head":{"label":"anchor:oswynb-client-creds","ref":"oswynb-client-creds","sha":"7ab2acd5489a3d812e1edc0241b7942798aa9682","user":{"login":"anchor","id":146304,"avatar_url":"https://avatars.githubusercontent.com/u/146304?v=3","gravatar_id":"","url":"https://api.github.com/users/anchor","html_url":"https://github.com/anchor","followers_url":"https://api.github.com/users/anchor/followers","following_url":"https://api.github.com/users/anchor/following{/other_user}","gists_url":"https://api.github.com/users/anchor/gists{/gist_id}","starred_url":"https://api.github.com/users/anchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchor/subscriptions","organizations_url":"https://api.github.com/users/anchor/orgs","repos_url":"https://api.github.com/users/anchor/repos","events_url":"https://api.github.com/users/anchor/events{/privacy}","received_events_url":"https://api.github.com/users/anchor/received_events","type":"Organization","site_admin":false},"repo":{"id":28891009,"name":"oauth2-server","full_name":"anchor/oauth2-server","owner":{"login":"anchor","id":146304,"avatar_url":"https://avatars.githubusercontent.com/u/146304?v=3","gravatar_id":"","url":"https://api.github.com/users/anchor","html_url":"https://github.com/anchor","followers_url":"https://api.github.com/users/anchor/followers","following_url":"https://api.github.com/users/anchor/following{/other_user}","gists_url":"https://api.github.com/users/anchor/gists{/gist_id}","starred_url":"https://api.github.com/users/anchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchor/subscriptions","organizations_url":"https://api.github.com/users/anchor/orgs","repos_url":"https://api.github.com/users/anchor/repos","events_url":"https://api.github.com/users/anchor/events{/privacy}","received_events_url":"https://api.github.com/users/anchor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/anchor/oauth2-server","description":"Haskell libraries for implementing OAuth2 servers.","fork":false,"url":"https://api.github.com/repos/anchor/oauth2-server","forks_url":"https://api.github.com/repos/anchor/oauth2-server/forks","keys_url":"https://api.github.com/repos/anchor/oauth2-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anchor/oauth2-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anchor/oauth2-server/teams","hooks_url":"https://api.github.com/repos/anchor/oauth2-server/hooks","issue_events_url":"https://api.github.com/repos/anchor/oauth2-server/issues/events{/number}","events_url":"https://api.github.com/repos/anchor/oauth2-server/events","assignees_url":"https://api.github.com/repos/anchor/oauth2-server/assignees{/user}","branches_url":"https://api.github.com/repos/anchor/oauth2-server/branches{/branch}","tags_url":"https://api.github.com/repos/anchor/oauth2-server/tags","blobs_url":"https://api.github.com/repos/anchor/oauth2-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anchor/oauth2-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anchor/oauth2-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/anchor/oauth2-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anchor/oauth2-server/statuses/{sha}","languages_url":"https://api.github.com/repos/anchor/oauth2-server/languages","stargazers_url":"https://api.github.com/repos/anchor/oauth2-server/stargazers","contributors_url":"https://api.github.com/repos/anchor/oauth2-server/contributors","subscribers_url":"https://api.github.com/repos/anchor/oauth2-server/subscribers","subscription_url":"https://api.github.com/repos/anchor/oauth2-server/subscription","commits_url":"https://api.github.com/repos/anchor/oauth2-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/anchor/oauth2-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/anchor/oauth2-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/anchor/oauth2-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/anchor/oauth2-server/contents/{+path}","compare_url":"https://api.github.com/repos/anchor/oauth2-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anchor/oauth2-server/merges","archive_url":"https://api.github.com/repos/anchor/oauth2-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anchor/oauth2-server/downloads","issues_url":"https://api.github.com/repos/anchor/oauth2-server/issues{/number}","pulls_url":"https://api.github.com/repos/anchor/oauth2-server/pulls{/number}","milestones_url":"https://api.github.com/repos/anchor/oauth2-server/milestones{/number}","notifications_url":"https://api.github.com/repos/anchor/oauth2-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anchor/oauth2-server/labels{/name}","releases_url":"https://api.github.com/repos/anchor/oauth2-server/releases{/id}","created_at":"2015-01-07T00:49:31Z","updated_at":"2015-07-09T20:59:53Z","pushed_at":"2015-07-16T05:58:58Z","git_url":"git://github.com/anchor/oauth2-server.git","ssh_url":"git@github.com:anchor/oauth2-server.git","clone_url":"https://github.com/anchor/oauth2-server.git","svn_url":"https://github.com/anchor/oauth2-server","homepage":null,"size":3605,"stargazers_count":5,"watchers_count":5,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":5,"default_branch":"master"}},"base":{"label":"anchor:master","ref":"master","sha":"215d185c21b2eb4b1980d057027ebeb192885763","user":{"login":"anchor","id":146304,"avatar_url":"https://avatars.githubusercontent.com/u/146304?v=3","gravatar_id":"","url":"https://api.github.com/users/anchor","html_url":"https://github.com/anchor","followers_url":"https://api.github.com/users/anchor/followers","following_url":"https://api.github.com/users/anchor/following{/other_user}","gists_url":"https://api.github.com/users/anchor/gists{/gist_id}","starred_url":"https://api.github.com/users/anchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchor/subscriptions","organizations_url":"https://api.github.com/users/anchor/orgs","repos_url":"https://api.github.com/users/anchor/repos","events_url":"https://api.github.com/users/anchor/events{/privacy}","received_events_url":"https://api.github.com/users/anchor/received_events","type":"Organization","site_admin":false},"repo":{"id":28891009,"name":"oauth2-server","full_name":"anchor/oauth2-server","owner":{"login":"anchor","id":146304,"avatar_url":"https://avatars.githubusercontent.com/u/146304?v=3","gravatar_id":"","url":"https://api.github.com/users/anchor","html_url":"https://github.com/anchor","followers_url":"https://api.github.com/users/anchor/followers","following_url":"https://api.github.com/users/anchor/following{/other_user}","gists_url":"https://api.github.com/users/anchor/gists{/gist_id}","starred_url":"https://api.github.com/users/anchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchor/subscriptions","organizations_url":"https://api.github.com/users/anchor/orgs","repos_url":"https://api.github.com/users/anchor/repos","events_url":"https://api.github.com/users/anchor/events{/privacy}","received_events_url":"https://api.github.com/users/anchor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/anchor/oauth2-server","description":"Haskell libraries for implementing OAuth2 servers.","fork":false,"url":"https://api.github.com/repos/anchor/oauth2-server","forks_url":"https://api.github.com/repos/anchor/oauth2-server/forks","keys_url":"https://api.github.com/repos/anchor/oauth2-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anchor/oauth2-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anchor/oauth2-server/teams","hooks_url":"https://api.github.com/repos/anchor/oauth2-server/hooks","issue_events_url":"https://api.github.com/repos/anchor/oauth2-server/issues/events{/number}","events_url":"https://api.github.com/repos/anchor/oauth2-server/events","assignees_url":"https://api.github.com/repos/anchor/oauth2-server/assignees{/user}","branches_url":"https://api.github.com/repos/anchor/oauth2-server/branches{/branch}","tags_url":"https://api.github.com/repos/anchor/oauth2-server/tags","blobs_url":"https://api.github.com/repos/anchor/oauth2-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anchor/oauth2-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anchor/oauth2-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/anchor/oauth2-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anchor/oauth2-server/statuses/{sha}","languages_url":"https://api.github.com/repos/anchor/oauth2-server/languages","stargazers_url":"https://api.github.com/repos/anchor/oauth2-server/stargazers","contributors_url":"https://api.github.com/repos/anchor/oauth2-server/contributors","subscribers_url":"https://api.github.com/repos/anchor/oauth2-server/subscribers","subscription_url":"https://api.github.com/repos/anchor/oauth2-server/subscription","commits_url":"https://api.github.com/repos/anchor/oauth2-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/anchor/oauth2-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/anchor/oauth2-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/anchor/oauth2-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/anchor/oauth2-server/contents/{+path}","compare_url":"https://api.github.com/repos/anchor/oauth2-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anchor/oauth2-server/merges","archive_url":"https://api.github.com/repos/anchor/oauth2-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anchor/oauth2-server/downloads","issues_url":"https://api.github.com/repos/anchor/oauth2-server/issues{/number}","pulls_url":"https://api.github.com/repos/anchor/oauth2-server/pulls{/number}","milestones_url":"https://api.github.com/repos/anchor/oauth2-server/milestones{/number}","notifications_url":"https://api.github.com/repos/anchor/oauth2-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anchor/oauth2-server/labels{/name}","releases_url":"https://api.github.com/repos/anchor/oauth2-server/releases{/id}","created_at":"2015-01-07T00:49:31Z","updated_at":"2015-07-09T20:59:53Z","pushed_at":"2015-07-16T05:58:58Z","git_url":"git://github.com/anchor/oauth2-server.git","ssh_url":"git@github.com:anchor/oauth2-server.git","clone_url":"https://github.com/anchor/oauth2-server.git","svn_url":"https://github.com/anchor/oauth2-server","homepage":null,"size":3605,"stargazers_count":5,"watchers_count":5,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/162"},"html":{"href":"https://github.com/anchor/oauth2-server/pull/162"},"issue":{"href":"https://api.github.com/repos/anchor/oauth2-server/issues/162"},"comments":{"href":"https://api.github.com/repos/anchor/oauth2-server/issues/162/comments"},"review_comments":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/162/comments"},"review_comment":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/162/commits"},"statuses":{"href":"https://api.github.com/repos/anchor/oauth2-server/statuses/7ab2acd5489a3d812e1edc0241b7942798aa9682"}}}}