{"action":"created","comment":{"url":"https://api.github.com/repos/linode/manager/pulls/comments/73396933","id":73396933,"diff_hunk":"@@ -22,17 +21,59 @@ export const UPDATE_LINODE_DISK = '@@linodes/UPDATE_LINODE_DISK';\n export const UPDATE_LINODE_DISKS = '@@linodes/UPDATE_LINODE_DISKS';\n export const DELETE_LINODE_DISK = '@@linodes/DELETE_LINODE_DISK';\n \n-export const fetchLinodes = makeFetchPage(UPDATE_LINODES, 'linodes');\n-export const fetchLinode = makeFetchItem(UPDATE_LINODE, 'linode', 'linodes');\n-export const fetchLinodeUntil = makeFetchUntil(UPDATE_LINODE, 'linodes', 'linode');\n-export const deleteLinode = makeDeleteItem(DELETE_LINODE, 'linodes');\n-export const putLinode = makePutItem(PUT_LINODE, 'linodes');\n-export const createLinode = makeCreateItem(CREATE_LINODE, 'linodes', 'linode');\n-\n-export const fetchLinodeDisk = makeFetchItem(UPDATE_LINODE_DISK,\n-  'disk', 'linodes', 'disks');\n-export const fetchLinodeDisks = makeFetchPage(UPDATE_LINODE_DISKS,\n-  'linodes', 'disks');\n+export const UPDATE_BACKUPS = '@@backups/UPDATE_BACKUPS';\n+export const UPDATE_BACKUP = '@@backups/UPDATE_BACKUP';\n+\n+export const linodeConfig = {\n+  plural: 'linodes',\n+  singular: 'linode',\n+  actions: {\n+    updateItem: UPDATE_LINODE,\n+    updateItems: UPDATE_LINODES,\n+    deleteItem: DELETE_LINODE,\n+  },\n+  subresources: {\n+    _configs: {\n+      plural: 'configs',","path":"src/actions/api/linodes.js","position":45,"original_position":45,"commit_id":"350ab9550b965167138eda06568f9d459cbeaf09","original_commit_id":"350ab9550b965167138eda06568f9d459cbeaf09","user":{"login":"eatonphil","id":3925912,"avatar_url":"https://avatars.githubusercontent.com/u/3925912?v=3","gravatar_id":"","url":"https://api.github.com/users/eatonphil","html_url":"https://github.com/eatonphil","followers_url":"https://api.github.com/users/eatonphil/followers","following_url":"https://api.github.com/users/eatonphil/following{/other_user}","gists_url":"https://api.github.com/users/eatonphil/gists{/gist_id}","starred_url":"https://api.github.com/users/eatonphil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eatonphil/subscriptions","organizations_url":"https://api.github.com/users/eatonphil/orgs","repos_url":"https://api.github.com/users/eatonphil/repos","events_url":"https://api.github.com/users/eatonphil/events{/privacy}","received_events_url":"https://api.github.com/users/eatonphil/received_events","type":"User","site_admin":false},"body":"It just seems like you're going a step too far in the recursion to actually fully define the children within the same struct. But if we don't need any of those children by themselves I guess it doesn't matter.","created_at":"2016-08-03T18:48:50Z","updated_at":"2016-08-03T18:48:50Z","html_url":"https://github.com/linode/manager/pull/313#discussion_r73396933","pull_request_url":"https://api.github.com/repos/linode/manager/pulls/313","_links":{"self":{"href":"https://api.github.com/repos/linode/manager/pulls/comments/73396933"},"html":{"href":"https://github.com/linode/manager/pull/313#discussion_r73396933"},"pull_request":{"href":"https://api.github.com/repos/linode/manager/pulls/313"}}},"pull_request":{"url":"https://api.github.com/repos/linode/manager/pulls/313","id":79252506,"html_url":"https://github.com/linode/manager/pull/313","diff_url":"https://github.com/linode/manager/pull/313.diff","patch_url":"https://github.com/linode/manager/pull/313.patch","issue_url":"https://api.github.com/repos/linode/manager/issues/313","number":313,"state":"open","locked":false,"title":"[WIP] Extended pagination","user":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"body":"Closes #226 \r\n\r\nThis fleshes out support for pagination in api-store.\r\n\r\n* [x] Add makeFetchAll\r\n* [x] Update things to use makeFetchAll when appropriate\r\n* [x] Don't refetch pages we already have\r\n* [x] Automatically invalidate the cache and refetch when the server side result count changes\r\n* [ ] Tests\r\n\r\nAlso to come in a later issue/PR: better react glue for getting pagination and scrolling and all that jazz playing nicely with each other in a reusable way.","created_at":"2016-07-28T19:18:48Z","updated_at":"2016-08-03T18:48:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9983da003fbedf08e5e1520265e39da6a89c3639","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/linode/manager/pulls/313/commits","review_comments_url":"https://api.github.com/repos/linode/manager/pulls/313/comments","review_comment_url":"https://api.github.com/repos/linode/manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linode/manager/issues/313/comments","statuses_url":"https://api.github.com/repos/linode/manager/statuses/350ab9550b965167138eda06568f9d459cbeaf09","head":{"label":"linode:feature/extended-pagination","ref":"feature/extended-pagination","sha":"350ab9550b965167138eda06568f9d459cbeaf09","user":{"login":"linode","id":5184305,"avatar_url":"https://avatars.githubusercontent.com/u/5184305?v=3","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"repo":{"id":58934207,"name":"manager","full_name":"linode/manager","owner":{"login":"linode","id":5184305,"avatar_url":"https://avatars.githubusercontent.com/u/5184305?v=3","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linode/manager","description":"The Linode manager","fork":false,"url":"https://api.github.com/repos/linode/manager","forks_url":"https://api.github.com/repos/linode/manager/forks","keys_url":"https://api.github.com/repos/linode/manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linode/manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linode/manager/teams","hooks_url":"https://api.github.com/repos/linode/manager/hooks","issue_events_url":"https://api.github.com/repos/linode/manager/issues/events{/number}","events_url":"https://api.github.com/repos/linode/manager/events","assignees_url":"https://api.github.com/repos/linode/manager/assignees{/user}","branches_url":"https://api.github.com/repos/linode/manager/branches{/branch}","tags_url":"https://api.github.com/repos/linode/manager/tags","blobs_url":"https://api.github.com/repos/linode/manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linode/manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linode/manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/linode/manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linode/manager/statuses/{sha}","languages_url":"https://api.github.com/repos/linode/manager/languages","stargazers_url":"https://api.github.com/repos/linode/manager/stargazers","contributors_url":"https://api.github.com/repos/linode/manager/contributors","subscribers_url":"https://api.github.com/repos/linode/manager/subscribers","subscription_url":"https://api.github.com/repos/linode/manager/subscription","commits_url":"https://api.github.com/repos/linode/manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/linode/manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/linode/manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/linode/manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/linode/manager/contents/{+path}","compare_url":"https://api.github.com/repos/linode/manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linode/manager/merges","archive_url":"https://api.github.com/repos/linode/manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linode/manager/downloads","issues_url":"https://api.github.com/repos/linode/manager/issues{/number}","pulls_url":"https://api.github.com/repos/linode/manager/pulls{/number}","milestones_url":"https://api.github.com/repos/linode/manager/milestones{/number}","notifications_url":"https://api.github.com/repos/linode/manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linode/manager/labels{/name}","releases_url":"https://api.github.com/repos/linode/manager/releases{/id}","deployments_url":"https://api.github.com/repos/linode/manager/deployments","created_at":"2016-05-16T13:24:49Z","updated_at":"2016-08-01T18:27:05Z","pushed_at":"2016-08-03T18:00:14Z","git_url":"git://github.com/linode/manager.git","ssh_url":"git@github.com:linode/manager.git","clone_url":"https://github.com/linode/manager.git","svn_url":"https://github.com/linode/manager","homepage":null,"size":996,"stargazers_count":82,"watchers_count":82,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":61,"forks":12,"open_issues":61,"watchers":82,"default_branch":"master"}},"base":{"label":"linode:master","ref":"master","sha":"0f73a78127b2fb2e0ce406b467ad5e3d3c5e35e8","user":{"login":"linode","id":5184305,"avatar_url":"https://avatars.githubusercontent.com/u/5184305?v=3","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"repo":{"id":58934207,"name":"manager","full_name":"linode/manager","owner":{"login":"linode","id":5184305,"avatar_url":"https://avatars.githubusercontent.com/u/5184305?v=3","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linode/manager","description":"The Linode manager","fork":false,"url":"https://api.github.com/repos/linode/manager","forks_url":"https://api.github.com/repos/linode/manager/forks","keys_url":"https://api.github.com/repos/linode/manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linode/manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linode/manager/teams","hooks_url":"https://api.github.com/repos/linode/manager/hooks","issue_events_url":"https://api.github.com/repos/linode/manager/issues/events{/number}","events_url":"https://api.github.com/repos/linode/manager/events","assignees_url":"https://api.github.com/repos/linode/manager/assignees{/user}","branches_url":"https://api.github.com/repos/linode/manager/branches{/branch}","tags_url":"https://api.github.com/repos/linode/manager/tags","blobs_url":"https://api.github.com/repos/linode/manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linode/manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linode/manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/linode/manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linode/manager/statuses/{sha}","languages_url":"https://api.github.com/repos/linode/manager/languages","stargazers_url":"https://api.github.com/repos/linode/manager/stargazers","contributors_url":"https://api.github.com/repos/linode/manager/contributors","subscribers_url":"https://api.github.com/repos/linode/manager/subscribers","subscription_url":"https://api.github.com/repos/linode/manager/subscription","commits_url":"https://api.github.com/repos/linode/manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/linode/manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/linode/manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/linode/manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/linode/manager/contents/{+path}","compare_url":"https://api.github.com/repos/linode/manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linode/manager/merges","archive_url":"https://api.github.com/repos/linode/manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linode/manager/downloads","issues_url":"https://api.github.com/repos/linode/manager/issues{/number}","pulls_url":"https://api.github.com/repos/linode/manager/pulls{/number}","milestones_url":"https://api.github.com/repos/linode/manager/milestones{/number}","notifications_url":"https://api.github.com/repos/linode/manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linode/manager/labels{/name}","releases_url":"https://api.github.com/repos/linode/manager/releases{/id}","deployments_url":"https://api.github.com/repos/linode/manager/deployments","created_at":"2016-05-16T13:24:49Z","updated_at":"2016-08-01T18:27:05Z","pushed_at":"2016-08-03T18:00:14Z","git_url":"git://github.com/linode/manager.git","ssh_url":"git@github.com:linode/manager.git","clone_url":"https://github.com/linode/manager.git","svn_url":"https://github.com/linode/manager","homepage":null,"size":996,"stargazers_count":82,"watchers_count":82,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":61,"forks":12,"open_issues":61,"watchers":82,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linode/manager/pulls/313"},"html":{"href":"https://github.com/linode/manager/pull/313"},"issue":{"href":"https://api.github.com/repos/linode/manager/issues/313"},"comments":{"href":"https://api.github.com/repos/linode/manager/issues/313/comments"},"review_comments":{"href":"https://api.github.com/repos/linode/manager/pulls/313/comments"},"review_comment":{"href":"https://api.github.com/repos/linode/manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linode/manager/pulls/313/commits"},"statuses":{"href":"https://api.github.com/repos/linode/manager/statuses/350ab9550b965167138eda06568f9d459cbeaf09"}}}}
{"actor":{"display_login":"eatonphil"}}