{"action":"created","comment":{"url":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/comments/73501803","id":73501803,"diff_hunk":"@@ -0,0 +1,19 @@\n+import React from 'react';\n+import PetitionListItem from 'components/PetitionListItem';\n+import Pager from 'components/Pager';\n+\n+const Petitions = ({ total, petitions, page, per }) => (\n+  <div>\n+    <ul>\n+      {petitions.map((petition, index) => {\n+        return (\n+          <PetitionListItem {...petition} key={petition.id} />\n+        );\n+      })}\n+    </ul>\n+\n+    <Pager {...{ path: '/petitions', page: page, per: per, total: total }} key={page} />","path":"src/components/Petitions/index.js","position":15,"original_position":15,"commit_id":"cf569edc9cb4953f5ec371286ae5c5f65174bdd9","original_commit_id":"cf569edc9cb4953f5ec371286ae5c5f65174bdd9","user":{"login":"mattberridge","id":447493,"avatar_url":"https://avatars.githubusercontent.com/u/447493?v=3","gravatar_id":"","url":"https://api.github.com/users/mattberridge","html_url":"https://github.com/mattberridge","followers_url":"https://api.github.com/users/mattberridge/followers","following_url":"https://api.github.com/users/mattberridge/following{/other_user}","gists_url":"https://api.github.com/users/mattberridge/gists{/gist_id}","starred_url":"https://api.github.com/users/mattberridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattberridge/subscriptions","organizations_url":"https://api.github.com/users/mattberridge/orgs","repos_url":"https://api.github.com/users/mattberridge/repos","events_url":"https://api.github.com/users/mattberridge/events{/privacy}","received_events_url":"https://api.github.com/users/mattberridge/received_events","type":"User","site_admin":false},"body":"prefer\r\n\r\n```\r\n<Pager\r\n  path: '/petitions'\r\n  page: page\r\n  per: per\r\n  total: total\r\n/>\r\n```\r\n\r\ndon't think we need `key`? that's just if you are iterating over components :)","created_at":"2016-08-04T11:01:32Z","updated_at":"2016-08-04T11:01:32Z","html_url":"https://github.com/iris-dni/iris-frontend/pull/19#discussion_r73501803","pull_request_url":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/comments/73501803"},"html":{"href":"https://github.com/iris-dni/iris-frontend/pull/19#discussion_r73501803"},"pull_request":{"href":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/19","id":80047712,"html_url":"https://github.com/iris-dni/iris-frontend/pull/19","diff_url":"https://github.com/iris-dni/iris-frontend/pull/19.diff","patch_url":"https://github.com/iris-dni/iris-frontend/pull/19.patch","issue_url":"https://api.github.com/repos/iris-dni/iris-frontend/issues/19","number":19,"state":"open","locked":false,"title":"[WIP] /petitions","user":{"login":"sigmarstern","id":1721555,"avatar_url":"https://avatars.githubusercontent.com/u/1721555?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmarstern","html_url":"https://github.com/sigmarstern","followers_url":"https://api.github.com/users/sigmarstern/followers","following_url":"https://api.github.com/users/sigmarstern/following{/other_user}","gists_url":"https://api.github.com/users/sigmarstern/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmarstern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmarstern/subscriptions","organizations_url":"https://api.github.com/users/sigmarstern/orgs","repos_url":"https://api.github.com/users/sigmarstern/repos","events_url":"https://api.github.com/users/sigmarstern/events{/privacy}","received_events_url":"https://api.github.com/users/sigmarstern/received_events","type":"User","site_admin":false},"body":"Added /petitions route with basic limit/offset and per/page pagination.\r\n\r\n@mattberridge, maybe you can have a look into it and correct me where I'm wrong. For instance pagination links on `/petitions` list aren't working properly while they are on `/`. I guess there is a more appropriate way of passing those pagination params back and forth.","created_at":"2016-08-04T09:37:38Z","updated_at":"2016-08-04T11:01:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b65ffb429421ce621c00cf5aa652f7422298bb52","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/19/commits","review_comments_url":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/19/comments","review_comment_url":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iris-dni/iris-frontend/issues/19/comments","statuses_url":"https://api.github.com/repos/iris-dni/iris-frontend/statuses/cf569edc9cb4953f5ec371286ae5c5f65174bdd9","head":{"label":"iris-dni:feature/145-petitions","ref":"feature/145-petitions","sha":"cf569edc9cb4953f5ec371286ae5c5f65174bdd9","user":{"login":"iris-dni","id":20228271,"avatar_url":"https://avatars.githubusercontent.com/u/20228271?v=3","gravatar_id":"","url":"https://api.github.com/users/iris-dni","html_url":"https://github.com/iris-dni","followers_url":"https://api.github.com/users/iris-dni/followers","following_url":"https://api.github.com/users/iris-dni/following{/other_user}","gists_url":"https://api.github.com/users/iris-dni/gists{/gist_id}","starred_url":"https://api.github.com/users/iris-dni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iris-dni/subscriptions","organizations_url":"https://api.github.com/users/iris-dni/orgs","repos_url":"https://api.github.com/users/iris-dni/repos","events_url":"https://api.github.com/users/iris-dni/events{/privacy}","received_events_url":"https://api.github.com/users/iris-dni/received_events","type":"Organization","site_admin":false},"repo":{"id":63142341,"name":"iris-frontend","full_name":"iris-dni/iris-frontend","owner":{"login":"iris-dni","id":20228271,"avatar_url":"https://avatars.githubusercontent.com/u/20228271?v=3","gravatar_id":"","url":"https://api.github.com/users/iris-dni","html_url":"https://github.com/iris-dni","followers_url":"https://api.github.com/users/iris-dni/followers","following_url":"https://api.github.com/users/iris-dni/following{/other_user}","gists_url":"https://api.github.com/users/iris-dni/gists{/gist_id}","starred_url":"https://api.github.com/users/iris-dni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iris-dni/subscriptions","organizations_url":"https://api.github.com/users/iris-dni/orgs","repos_url":"https://api.github.com/users/iris-dni/repos","events_url":"https://api.github.com/users/iris-dni/events{/privacy}","received_events_url":"https://api.github.com/users/iris-dni/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iris-dni/iris-frontend","description":"The IRIS Frontend","fork":false,"url":"https://api.github.com/repos/iris-dni/iris-frontend","forks_url":"https://api.github.com/repos/iris-dni/iris-frontend/forks","keys_url":"https://api.github.com/repos/iris-dni/iris-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iris-dni/iris-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iris-dni/iris-frontend/teams","hooks_url":"https://api.github.com/repos/iris-dni/iris-frontend/hooks","issue_events_url":"https://api.github.com/repos/iris-dni/iris-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/iris-dni/iris-frontend/events","assignees_url":"https://api.github.com/repos/iris-dni/iris-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/iris-dni/iris-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/iris-dni/iris-frontend/tags","blobs_url":"https://api.github.com/repos/iris-dni/iris-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iris-dni/iris-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iris-dni/iris-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/iris-dni/iris-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iris-dni/iris-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/iris-dni/iris-frontend/languages","stargazers_url":"https://api.github.com/repos/iris-dni/iris-frontend/stargazers","contributors_url":"https://api.github.com/repos/iris-dni/iris-frontend/contributors","subscribers_url":"https://api.github.com/repos/iris-dni/iris-frontend/subscribers","subscription_url":"https://api.github.com/repos/iris-dni/iris-frontend/subscription","commits_url":"https://api.github.com/repos/iris-dni/iris-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/iris-dni/iris-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/iris-dni/iris-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/iris-dni/iris-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/iris-dni/iris-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/iris-dni/iris-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iris-dni/iris-frontend/merges","archive_url":"https://api.github.com/repos/iris-dni/iris-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iris-dni/iris-frontend/downloads","issues_url":"https://api.github.com/repos/iris-dni/iris-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/iris-dni/iris-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/iris-dni/iris-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/iris-dni/iris-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iris-dni/iris-frontend/labels{/name}","releases_url":"https://api.github.com/repos/iris-dni/iris-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/iris-dni/iris-frontend/deployments","created_at":"2016-07-12T08:53:04Z","updated_at":"2016-07-13T14:32:31Z","pushed_at":"2016-08-04T10:54:26Z","git_url":"git://github.com/iris-dni/iris-frontend.git","ssh_url":"git@github.com:iris-dni/iris-frontend.git","clone_url":"https://github.com/iris-dni/iris-frontend.git","svn_url":"https://github.com/iris-dni/iris-frontend","homepage":null,"size":185,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"iris-dni:develop","ref":"develop","sha":"64cb64c174dae1d849614ad1616f4b2614632d3d","user":{"login":"iris-dni","id":20228271,"avatar_url":"https://avatars.githubusercontent.com/u/20228271?v=3","gravatar_id":"","url":"https://api.github.com/users/iris-dni","html_url":"https://github.com/iris-dni","followers_url":"https://api.github.com/users/iris-dni/followers","following_url":"https://api.github.com/users/iris-dni/following{/other_user}","gists_url":"https://api.github.com/users/iris-dni/gists{/gist_id}","starred_url":"https://api.github.com/users/iris-dni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iris-dni/subscriptions","organizations_url":"https://api.github.com/users/iris-dni/orgs","repos_url":"https://api.github.com/users/iris-dni/repos","events_url":"https://api.github.com/users/iris-dni/events{/privacy}","received_events_url":"https://api.github.com/users/iris-dni/received_events","type":"Organization","site_admin":false},"repo":{"id":63142341,"name":"iris-frontend","full_name":"iris-dni/iris-frontend","owner":{"login":"iris-dni","id":20228271,"avatar_url":"https://avatars.githubusercontent.com/u/20228271?v=3","gravatar_id":"","url":"https://api.github.com/users/iris-dni","html_url":"https://github.com/iris-dni","followers_url":"https://api.github.com/users/iris-dni/followers","following_url":"https://api.github.com/users/iris-dni/following{/other_user}","gists_url":"https://api.github.com/users/iris-dni/gists{/gist_id}","starred_url":"https://api.github.com/users/iris-dni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iris-dni/subscriptions","organizations_url":"https://api.github.com/users/iris-dni/orgs","repos_url":"https://api.github.com/users/iris-dni/repos","events_url":"https://api.github.com/users/iris-dni/events{/privacy}","received_events_url":"https://api.github.com/users/iris-dni/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iris-dni/iris-frontend","description":"The IRIS Frontend","fork":false,"url":"https://api.github.com/repos/iris-dni/iris-frontend","forks_url":"https://api.github.com/repos/iris-dni/iris-frontend/forks","keys_url":"https://api.github.com/repos/iris-dni/iris-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iris-dni/iris-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iris-dni/iris-frontend/teams","hooks_url":"https://api.github.com/repos/iris-dni/iris-frontend/hooks","issue_events_url":"https://api.github.com/repos/iris-dni/iris-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/iris-dni/iris-frontend/events","assignees_url":"https://api.github.com/repos/iris-dni/iris-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/iris-dni/iris-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/iris-dni/iris-frontend/tags","blobs_url":"https://api.github.com/repos/iris-dni/iris-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iris-dni/iris-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iris-dni/iris-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/iris-dni/iris-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iris-dni/iris-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/iris-dni/iris-frontend/languages","stargazers_url":"https://api.github.com/repos/iris-dni/iris-frontend/stargazers","contributors_url":"https://api.github.com/repos/iris-dni/iris-frontend/contributors","subscribers_url":"https://api.github.com/repos/iris-dni/iris-frontend/subscribers","subscription_url":"https://api.github.com/repos/iris-dni/iris-frontend/subscription","commits_url":"https://api.github.com/repos/iris-dni/iris-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/iris-dni/iris-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/iris-dni/iris-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/iris-dni/iris-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/iris-dni/iris-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/iris-dni/iris-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iris-dni/iris-frontend/merges","archive_url":"https://api.github.com/repos/iris-dni/iris-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iris-dni/iris-frontend/downloads","issues_url":"https://api.github.com/repos/iris-dni/iris-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/iris-dni/iris-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/iris-dni/iris-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/iris-dni/iris-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iris-dni/iris-frontend/labels{/name}","releases_url":"https://api.github.com/repos/iris-dni/iris-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/iris-dni/iris-frontend/deployments","created_at":"2016-07-12T08:53:04Z","updated_at":"2016-07-13T14:32:31Z","pushed_at":"2016-08-04T10:54:26Z","git_url":"git://github.com/iris-dni/iris-frontend.git","ssh_url":"git@github.com:iris-dni/iris-frontend.git","clone_url":"https://github.com/iris-dni/iris-frontend.git","svn_url":"https://github.com/iris-dni/iris-frontend","homepage":null,"size":185,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/19"},"html":{"href":"https://github.com/iris-dni/iris-frontend/pull/19"},"issue":{"href":"https://api.github.com/repos/iris-dni/iris-frontend/issues/19"},"comments":{"href":"https://api.github.com/repos/iris-dni/iris-frontend/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iris-dni/iris-frontend/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/iris-dni/iris-frontend/statuses/cf569edc9cb4953f5ec371286ae5c5f65174bdd9"}}}}
{"actor":{"display_login":"mattberridge"}}