{"action":"created","comment":{"url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/comments/119914442","pull_request_review_id":41840636,"id":119914442,"diff_hunk":"@@ -24,6 +24,82 @@\n   <li><a href=\"{% url 'atom-results-basic' %}\">{% trans \"Basic Atom feed\" %}</a></li>\n </ul>\n \n+<p>Here is an example of the former - this is the contents of\n+the feed with additional extra elements with a single\n+result:</p>\n+\n+<pre class=\"feed-example\">\n+&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n+&lt;feed xmlns=\"http://www.w3.org/2005/Atom\" xml:lang=\"en-gb\"&gt;\n+  &lt;title&gt;Election results from Democracy Club Candidates (with extra data)&lt;/title&gt;\n+  &lt;link href=\"https://candidates.democracyclub.org.uk/\" rel=\"alternate\"/&gt;\n+  &lt;link href=\"https://candidates.democracyclub.org.uk/results/all.atom\" rel=\"self\"/&gt;\n+  &lt;id&gt;https://candidates.democracyclub.org.uk/&lt;/id&gt;\n+  &lt;updated&gt;2017-06-09T10:36:38.110335+00:00&lt;/updated&gt;\n+  &lt;entry&gt;\n+    &lt;title&gt;David Cameron (Conservative and Unionist Party) won in Witney&lt;/title&gt;\n+    &lt;link href=\"https://candidates.democracyclub.org.uk/#32346\" rel=\"alternate\"/&gt;\n+    &lt;published&gt;2017-06-09T10:36:38.110335+00:00&lt;/published&gt;\n+    &lt;updated&gt;2017-06-09T10:36:38.110335+00:00&lt;/updated&gt;\n+    &lt;author&gt;\n+      &lt;name&gt;joe&lt;/name&gt;\n+    &lt;/author&gt;\n+    &lt;id&gt;https://candidates.democracyclub.org.uk/#32346&lt;/id&gt;\n+    &lt;summary type=\"html\"&gt;A Democracy Club Candidates volunteer recorded at 2017-06-09 10:36:38 that David Cameron (Conservative and Unionist Party) won the ballot in Witney, quoting the source 'BBC news'.&lt;/summary&gt;\n+    &lt;election_slug&gt;parl.2017-06-08&lt;/election_slug&gt;\n+    &lt;election_name&gt;2017 General Election&lt;/election_name&gt;\n+    &lt;election_date&gt;2017-06-08&lt;/election_date&gt;\n+    &lt;post_id&gt;65622&lt;/post_id&gt;\n+    &lt;winner_person_id&gt;566&lt;/winner_person_id&gt;\n+    &lt;winner_person_name&gt;David Cameron&lt;/winner_person_name&gt;\n+    &lt;winner_party_id&gt;party:52&lt;/winner_party_id&gt;\n+    &lt;winner_party_name&gt;Conservative and Unionist Party&lt;/winner_party_name&gt;\n+    &lt;user_id&gt;3&lt;/user_id&gt;\n+    &lt;post_name&gt;Witney&lt;/post_name&gt;\n+    &lt;information_source&gt;BBC news&lt;/information_source&gt;\n+    &lt;image_url&gt;https://candidates.democracyclub.org.uk/media/images/5517d858249b917507bee4f8.png&lt;/image_url&gt;\n+  &lt;/entry&gt;\n+&lt;/feed&gt;\n+</pre>","path":"candidates/templates/candidates/results.html","position":null,"original_position":40,"commit_id":"bf305dc0ea16c14ddd27f3f48db13698c9b39ccb","original_commit_id":"3135c863036577e40c7b5d3914117dbc8b13d945","user":{"login":"mhl","id":7907,"avatar_url":"https://avatars0.githubusercontent.com/u/7907?v=3","gravatar_id":"","url":"https://api.github.com/users/mhl","html_url":"https://github.com/mhl","followers_url":"https://api.github.com/users/mhl/followers","following_url":"https://api.github.com/users/mhl/following{/other_user}","gists_url":"https://api.github.com/users/mhl/gists{/gist_id}","starred_url":"https://api.github.com/users/mhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhl/subscriptions","organizations_url":"https://api.github.com/users/mhl/orgs","repos_url":"https://api.github.com/users/mhl/repos","events_url":"https://api.github.com/users/mhl/events{/privacy}","received_events_url":"https://api.github.com/users/mhl/received_events","type":"User","site_admin":false},"body":"Fixed in bf305dc","created_at":"2017-06-02T17:46:59Z","updated_at":"2017-06-02T17:46:59Z","html_url":"https://github.com/DemocracyClub/yournextrepresentative/pull/284#discussion_r119914442","pull_request_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/284","_links":{"self":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/comments/119914442"},"html":{"href":"https://github.com/DemocracyClub/yournextrepresentative/pull/284#discussion_r119914442"},"pull_request":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/284"}}},"pull_request":{"url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/284","id":123485463,"html_url":"https://github.com/DemocracyClub/yournextrepresentative/pull/284","diff_url":"https://github.com/DemocracyClub/yournextrepresentative/pull/284.diff","patch_url":"https://github.com/DemocracyClub/yournextrepresentative/pull/284.patch","issue_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/284","number":284,"state":"open","locked":false,"title":"Fix and update the old results Atom feed code","user":{"login":"mhl","id":7907,"avatar_url":"https://avatars0.githubusercontent.com/u/7907?v=3","gravatar_id":"","url":"https://api.github.com/users/mhl","html_url":"https://github.com/mhl","followers_url":"https://api.github.com/users/mhl/followers","following_url":"https://api.github.com/users/mhl/following{/other_user}","gists_url":"https://api.github.com/users/mhl/gists{/gist_id}","starred_url":"https://api.github.com/users/mhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhl/subscriptions","organizations_url":"https://api.github.com/users/mhl/orgs","repos_url":"https://api.github.com/users/mhl/repos","events_url":"https://api.github.com/users/mhl/events{/privacy}","received_events_url":"https://api.github.com/users/mhl/received_events","type":"User","site_admin":false},"body":"The `/results/all.atom` and `/results/all-basic.atom` feeds dated from before the migration to django-popolo, and only one of the fields had been migrated to those models. This pull request migrates the other fields which were just text-based to foreign keys where appropriate.\r\n\r\nThe only image URL which was included was a template for forming URLs for an image proxy that resized on-the-fly; this is no longer supported, so this pull request adds a new `<image_url>` element to the additional data.\r\n\r\nThis pull request also adds elements with data about the election to the extended feed.\r\n\r\nThis also adds some more useful help for these feeds:\r\n\r\n![new-atom-feed](https://cloud.githubusercontent.com/assets/7907/26679418/d41d3e10-46cc-11e7-9d39-e2370f3b0d70.png)\r\n","created_at":"2017-06-01T12:19:07Z","updated_at":"2017-06-02T17:46:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42ae467bcf5b5a5a0f7f7eece360507d2d59a4c0","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/284/commits","review_comments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/284/comments","review_comment_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/284/comments","statuses_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/statuses/bf305dc0ea16c14ddd27f3f48db13698c9b39ccb","head":{"label":"DemocracyClub:results-feed-updates","ref":"results-feed-updates","sha":"bf305dc0ea16c14ddd27f3f48db13698c9b39ccb","user":{"login":"DemocracyClub","id":6901194,"avatar_url":"https://avatars3.githubusercontent.com/u/6901194?v=3","gravatar_id":"","url":"https://api.github.com/users/DemocracyClub","html_url":"https://github.com/DemocracyClub","followers_url":"https://api.github.com/users/DemocracyClub/followers","following_url":"https://api.github.com/users/DemocracyClub/following{/other_user}","gists_url":"https://api.github.com/users/DemocracyClub/gists{/gist_id}","starred_url":"https://api.github.com/users/DemocracyClub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemocracyClub/subscriptions","organizations_url":"https://api.github.com/users/DemocracyClub/orgs","repos_url":"https://api.github.com/users/DemocracyClub/repos","events_url":"https://api.github.com/users/DemocracyClub/events{/privacy}","received_events_url":"https://api.github.com/users/DemocracyClub/received_events","type":"Organization","site_admin":false},"repo":{"id":50421953,"name":"yournextrepresentative","full_name":"DemocracyClub/yournextrepresentative","owner":{"login":"DemocracyClub","id":6901194,"avatar_url":"https://avatars3.githubusercontent.com/u/6901194?v=3","gravatar_id":"","url":"https://api.github.com/users/DemocracyClub","html_url":"https://github.com/DemocracyClub","followers_url":"https://api.github.com/users/DemocracyClub/followers","following_url":"https://api.github.com/users/DemocracyClub/following{/other_user}","gists_url":"https://api.github.com/users/DemocracyClub/gists{/gist_id}","starred_url":"https://api.github.com/users/DemocracyClub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemocracyClub/subscriptions","organizations_url":"https://api.github.com/users/DemocracyClub/orgs","repos_url":"https://api.github.com/users/DemocracyClub/repos","events_url":"https://api.github.com/users/DemocracyClub/events{/privacy}","received_events_url":"https://api.github.com/users/DemocracyClub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DemocracyClub/yournextrepresentative","description":"A website for crowd-sourcing structured election candidate data","fork":true,"url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative","forks_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/forks","keys_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/teams","hooks_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/hooks","issue_events_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/events{/number}","events_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/events","assignees_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/assignees{/user}","branches_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/branches{/branch}","tags_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/tags","blobs_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/refs{/sha}","trees_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/statuses/{sha}","languages_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/languages","stargazers_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/stargazers","contributors_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/contributors","subscribers_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/subscribers","subscription_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/subscription","commits_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/commits{/sha}","git_commits_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/commits{/sha}","comments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/comments{/number}","issue_comment_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/comments{/number}","contents_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/contents/{+path}","compare_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/merges","archive_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/downloads","issues_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues{/number}","pulls_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls{/number}","milestones_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/milestones{/number}","notifications_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/labels{/name}","releases_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/releases{/id}","deployments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/deployments","created_at":"2016-01-26T10:37:25Z","updated_at":"2017-05-17T10:26:10Z","pushed_at":"2017-06-02T17:46:01Z","git_url":"git://github.com/DemocracyClub/yournextrepresentative.git","ssh_url":"git@github.com:DemocracyClub/yournextrepresentative.git","clone_url":"https://github.com/DemocracyClub/yournextrepresentative.git","svn_url":"https://github.com/DemocracyClub/yournextrepresentative","homepage":"https://candidates.democracyclub.org.uk","size":7740,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":72,"forks":8,"open_issues":72,"watchers":5,"default_branch":"master"}},"base":{"label":"DemocracyClub:master","ref":"master","sha":"eca73aa13a77ebd5535406523001f11fcdc752ae","user":{"login":"DemocracyClub","id":6901194,"avatar_url":"https://avatars3.githubusercontent.com/u/6901194?v=3","gravatar_id":"","url":"https://api.github.com/users/DemocracyClub","html_url":"https://github.com/DemocracyClub","followers_url":"https://api.github.com/users/DemocracyClub/followers","following_url":"https://api.github.com/users/DemocracyClub/following{/other_user}","gists_url":"https://api.github.com/users/DemocracyClub/gists{/gist_id}","starred_url":"https://api.github.com/users/DemocracyClub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemocracyClub/subscriptions","organizations_url":"https://api.github.com/users/DemocracyClub/orgs","repos_url":"https://api.github.com/users/DemocracyClub/repos","events_url":"https://api.github.com/users/DemocracyClub/events{/privacy}","received_events_url":"https://api.github.com/users/DemocracyClub/received_events","type":"Organization","site_admin":false},"repo":{"id":50421953,"name":"yournextrepresentative","full_name":"DemocracyClub/yournextrepresentative","owner":{"login":"DemocracyClub","id":6901194,"avatar_url":"https://avatars3.githubusercontent.com/u/6901194?v=3","gravatar_id":"","url":"https://api.github.com/users/DemocracyClub","html_url":"https://github.com/DemocracyClub","followers_url":"https://api.github.com/users/DemocracyClub/followers","following_url":"https://api.github.com/users/DemocracyClub/following{/other_user}","gists_url":"https://api.github.com/users/DemocracyClub/gists{/gist_id}","starred_url":"https://api.github.com/users/DemocracyClub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemocracyClub/subscriptions","organizations_url":"https://api.github.com/users/DemocracyClub/orgs","repos_url":"https://api.github.com/users/DemocracyClub/repos","events_url":"https://api.github.com/users/DemocracyClub/events{/privacy}","received_events_url":"https://api.github.com/users/DemocracyClub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DemocracyClub/yournextrepresentative","description":"A website for crowd-sourcing structured election candidate data","fork":true,"url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative","forks_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/forks","keys_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/teams","hooks_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/hooks","issue_events_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/events{/number}","events_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/events","assignees_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/assignees{/user}","branches_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/branches{/branch}","tags_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/tags","blobs_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/refs{/sha}","trees_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/statuses/{sha}","languages_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/languages","stargazers_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/stargazers","contributors_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/contributors","subscribers_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/subscribers","subscription_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/subscription","commits_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/commits{/sha}","git_commits_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/commits{/sha}","comments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/comments{/number}","issue_comment_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/comments{/number}","contents_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/contents/{+path}","compare_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/merges","archive_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/downloads","issues_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues{/number}","pulls_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls{/number}","milestones_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/milestones{/number}","notifications_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/labels{/name}","releases_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/releases{/id}","deployments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/deployments","created_at":"2016-01-26T10:37:25Z","updated_at":"2017-05-17T10:26:10Z","pushed_at":"2017-06-02T17:46:01Z","git_url":"git://github.com/DemocracyClub/yournextrepresentative.git","ssh_url":"git@github.com:DemocracyClub/yournextrepresentative.git","clone_url":"https://github.com/DemocracyClub/yournextrepresentative.git","svn_url":"https://github.com/DemocracyClub/yournextrepresentative","homepage":"https://candidates.democracyclub.org.uk","size":7740,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":72,"forks":8,"open_issues":72,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/284"},"html":{"href":"https://github.com/DemocracyClub/yournextrepresentative/pull/284"},"issue":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/284"},"comments":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/284/comments"},"review_comments":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/284/comments"},"review_comment":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/284/commits"},"statuses":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/statuses/bf305dc0ea16c14ddd27f3f48db13698c9b39ccb"}}}}
{"actor":{"display_login":"mhl"}}