{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/e-petitions/pulls/comments/32205172","id":32205172,"diff_hunk":"@@ -0,0 +1,4 @@\n+<h1>Sorry!</h1>","path":"app/views/local_petitions/constituency_lookup_failed.html.erb","position":1,"original_position":1,"commit_id":"08f5d7980fbc98c596279fa5086d453682aaa466","original_commit_id":"08f5d7980fbc98c596279fa5086d453682aaa466","user":{"login":"alexander-bobin","id":1836301,"avatar_url":"https://avatars.githubusercontent.com/u/1836301?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-bobin","html_url":"https://github.com/alexander-bobin","followers_url":"https://api.github.com/users/alexander-bobin/followers","following_url":"https://api.github.com/users/alexander-bobin/following{/other_user}","gists_url":"https://api.github.com/users/alexander-bobin/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-bobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-bobin/subscriptions","organizations_url":"https://api.github.com/users/alexander-bobin/orgs","repos_url":"https://api.github.com/users/alexander-bobin/repos","events_url":"https://api.github.com/users/alexander-bobin/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-bobin/received_events","type":"User","site_admin":false},"body":"If this is a page on it's own you could add a class of page-title to the h1 to hook into some existing styles.","created_at":"2015-06-11T09:49:01Z","updated_at":"2015-06-11T09:49:01Z","html_url":"https://github.com/alphagov/e-petitions/pull/128#discussion_r32205172","pull_request_url":"https://api.github.com/repos/alphagov/e-petitions/pulls/128","_links":{"self":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/comments/32205172"},"html":{"href":"https://github.com/alphagov/e-petitions/pull/128#discussion_r32205172"},"pull_request":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/128"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/e-petitions/pulls/128","id":37381259,"html_url":"https://github.com/alphagov/e-petitions/pull/128","diff_url":"https://github.com/alphagov/e-petitions/pull/128.diff","patch_url":"https://github.com/alphagov/e-petitions/pull/128.patch","issue_url":"https://api.github.com/repos/alphagov/e-petitions/issues/128","number":128,"state":"open","locked":false,"title":"Popular in your constituency","user":{"login":"h-lame","id":608,"avatar_url":"https://avatars.githubusercontent.com/u/608?v=3","gravatar_id":"","url":"https://api.github.com/users/h-lame","html_url":"https://github.com/h-lame","followers_url":"https://api.github.com/users/h-lame/followers","following_url":"https://api.github.com/users/h-lame/following{/other_user}","gists_url":"https://api.github.com/users/h-lame/gists{/gist_id}","starred_url":"https://api.github.com/users/h-lame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h-lame/subscriptions","organizations_url":"https://api.github.com/users/h-lame/orgs","repos_url":"https://api.github.com/users/h-lame/repos","events_url":"https://api.github.com/users/h-lame/events{/privacy}","received_events_url":"https://api.github.com/users/h-lame/received_events","type":"User","site_admin":false},"body":"For: https://www.pivotaltracker.com/story/show/95513536\r\n\r\nTouches so many things - might make sense to go through commit by commit as while there are alot, they are mostly quite small.\r\n\r\nWe:\r\n\r\n1) store the constituency_id on the signature when it is created - this means we do a lookup for the constituency based on the postcode - we might want to offline this?\r\n2) have a constituency petition journal model where we record the count of signatures for a petition for a given constituency and we increment the count on this whenever a signature is validated (it's silently cool with it if the signature has no constituency_id)\r\n3) allow a user to search by their postcode to find petitions that are popular in their constituency - this throws away petitions that have no signatures (absence of a journal, or a journal with 0 count) for that constituency and orders\r\n","created_at":"2015-06-10T17:03:54Z","updated_at":"2015-06-11T09:49:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad5b38cbd76f80440b8c8b0bc6a44d08b8d38893","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/e-petitions/pulls/128/commits","review_comments_url":"https://api.github.com/repos/alphagov/e-petitions/pulls/128/comments","review_comment_url":"https://api.github.com/repos/alphagov/e-petitions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/e-petitions/issues/128/comments","statuses_url":"https://api.github.com/repos/alphagov/e-petitions/statuses/08f5d7980fbc98c596279fa5086d453682aaa466","head":{"label":"alphagov:popular-in-your-constituency","ref":"popular-in-your-constituency","sha":"08f5d7980fbc98c596279fa5086d453682aaa466","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":4434819,"name":"e-petitions","full_name":"alphagov/e-petitions","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/e-petitions","description":"This is the code base for the UK Government's e-petitions service (http://epetitions.direct.gov.uk)","fork":false,"url":"https://api.github.com/repos/alphagov/e-petitions","forks_url":"https://api.github.com/repos/alphagov/e-petitions/forks","keys_url":"https://api.github.com/repos/alphagov/e-petitions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/e-petitions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/e-petitions/teams","hooks_url":"https://api.github.com/repos/alphagov/e-petitions/hooks","issue_events_url":"https://api.github.com/repos/alphagov/e-petitions/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/e-petitions/events","assignees_url":"https://api.github.com/repos/alphagov/e-petitions/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/e-petitions/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/e-petitions/tags","blobs_url":"https://api.github.com/repos/alphagov/e-petitions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/e-petitions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/e-petitions/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/e-petitions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/e-petitions/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/e-petitions/languages","stargazers_url":"https://api.github.com/repos/alphagov/e-petitions/stargazers","contributors_url":"https://api.github.com/repos/alphagov/e-petitions/contributors","subscribers_url":"https://api.github.com/repos/alphagov/e-petitions/subscribers","subscription_url":"https://api.github.com/repos/alphagov/e-petitions/subscription","commits_url":"https://api.github.com/repos/alphagov/e-petitions/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/e-petitions/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/e-petitions/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/e-petitions/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/e-petitions/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/e-petitions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/e-petitions/merges","archive_url":"https://api.github.com/repos/alphagov/e-petitions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/e-petitions/downloads","issues_url":"https://api.github.com/repos/alphagov/e-petitions/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/e-petitions/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/e-petitions/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/e-petitions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/e-petitions/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/e-petitions/releases{/id}","created_at":"2012-05-24T16:04:02Z","updated_at":"2015-05-15T08:26:34Z","pushed_at":"2015-06-11T09:41:29Z","git_url":"git://github.com/alphagov/e-petitions.git","ssh_url":"git@github.com:alphagov/e-petitions.git","clone_url":"https://github.com/alphagov/e-petitions.git","svn_url":"https://github.com/alphagov/e-petitions","homepage":"http://epetitions.direct.gov.uk","size":4290,"stargazers_count":18,"watchers_count":18,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":7,"forks":9,"open_issues":7,"watchers":18,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"720d8d492d6ca1cc671fdb1359c4a50466cbea1a","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":4434819,"name":"e-petitions","full_name":"alphagov/e-petitions","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/e-petitions","description":"This is the code base for the UK Government's e-petitions service (http://epetitions.direct.gov.uk)","fork":false,"url":"https://api.github.com/repos/alphagov/e-petitions","forks_url":"https://api.github.com/repos/alphagov/e-petitions/forks","keys_url":"https://api.github.com/repos/alphagov/e-petitions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/e-petitions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/e-petitions/teams","hooks_url":"https://api.github.com/repos/alphagov/e-petitions/hooks","issue_events_url":"https://api.github.com/repos/alphagov/e-petitions/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/e-petitions/events","assignees_url":"https://api.github.com/repos/alphagov/e-petitions/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/e-petitions/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/e-petitions/tags","blobs_url":"https://api.github.com/repos/alphagov/e-petitions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/e-petitions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/e-petitions/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/e-petitions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/e-petitions/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/e-petitions/languages","stargazers_url":"https://api.github.com/repos/alphagov/e-petitions/stargazers","contributors_url":"https://api.github.com/repos/alphagov/e-petitions/contributors","subscribers_url":"https://api.github.com/repos/alphagov/e-petitions/subscribers","subscription_url":"https://api.github.com/repos/alphagov/e-petitions/subscription","commits_url":"https://api.github.com/repos/alphagov/e-petitions/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/e-petitions/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/e-petitions/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/e-petitions/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/e-petitions/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/e-petitions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/e-petitions/merges","archive_url":"https://api.github.com/repos/alphagov/e-petitions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/e-petitions/downloads","issues_url":"https://api.github.com/repos/alphagov/e-petitions/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/e-petitions/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/e-petitions/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/e-petitions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/e-petitions/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/e-petitions/releases{/id}","created_at":"2012-05-24T16:04:02Z","updated_at":"2015-05-15T08:26:34Z","pushed_at":"2015-06-11T09:41:29Z","git_url":"git://github.com/alphagov/e-petitions.git","ssh_url":"git@github.com:alphagov/e-petitions.git","clone_url":"https://github.com/alphagov/e-petitions.git","svn_url":"https://github.com/alphagov/e-petitions","homepage":"http://epetitions.direct.gov.uk","size":4290,"stargazers_count":18,"watchers_count":18,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":7,"forks":9,"open_issues":7,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/128"},"html":{"href":"https://github.com/alphagov/e-petitions/pull/128"},"issue":{"href":"https://api.github.com/repos/alphagov/e-petitions/issues/128"},"comments":{"href":"https://api.github.com/repos/alphagov/e-petitions/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/e-petitions/statuses/08f5d7980fbc98c596279fa5086d453682aaa466"}}}}