{"action":"created","comment":{"url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/comments/113292081","pull_request_review_id":34661096,"id":113292081,"diff_hunk":"@@ -29,11 +31,11 @@ export type RestState = {\n   fetchStatus?: string,\n };\n \n-const INITIAL_STATE: RestState = {\n+const INITIAL_REST_STATE: RestState = {","path":"static/js/rest.js","position":25,"original_position":25,"commit_id":"ae2b2caf22b801b1d8c8297ace2f3e9858e163b9","original_commit_id":"ba2db2ff95d70d772735a7280e632ce84e9899d3","user":{"login":"aliceriot","id":6207644,"avatar_url":"https://avatars3.githubusercontent.com/u/6207644?v=3","gravatar_id":"","url":"https://api.github.com/users/aliceriot","html_url":"https://github.com/aliceriot","followers_url":"https://api.github.com/users/aliceriot/followers","following_url":"https://api.github.com/users/aliceriot/following{/other_user}","gists_url":"https://api.github.com/users/aliceriot/gists{/gist_id}","starred_url":"https://api.github.com/users/aliceriot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliceriot/subscriptions","organizations_url":"https://api.github.com/users/aliceriot/orgs","repos_url":"https://api.github.com/users/aliceriot/repos","events_url":"https://api.github.com/users/aliceriot/events{/privacy}","received_events_url":"https://api.github.com/users/aliceriot/received_events","type":"User","site_admin":false},"body":"One thing I did in MM which you may want to do here is making the `RestState` type into a parameterized type, something like:\r\n\r\n```js\r\ntype RestState<T> = {\r\n  data: T,\r\n  loaded: boolean,\r\n  ...\r\n};\r\n```\r\n\r\nmakes Flow a little more useful when you're pulling the data out of the store later!","created_at":"2017-04-25T19:46:57Z","updated_at":"2017-04-25T19:58:05Z","html_url":"https://github.com/mitodl/bootcamp-ecommerce/pull/51#discussion_r113292081","pull_request_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/comments/113292081"},"html":{"href":"https://github.com/mitodl/bootcamp-ecommerce/pull/51#discussion_r113292081"},"pull_request":{"href":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/51","id":117542940,"html_url":"https://github.com/mitodl/bootcamp-ecommerce/pull/51","diff_url":"https://github.com/mitodl/bootcamp-ecommerce/pull/51.diff","patch_url":"https://github.com/mitodl/bootcamp-ecommerce/pull/51.patch","issue_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/issues/51","number":51,"state":"open","locked":false,"title":"Integrated klasses API information with front end","user":{"login":"gsidebo","id":14932219,"avatar_url":"https://avatars1.githubusercontent.com/u/14932219?v=3","gravatar_id":"","url":"https://api.github.com/users/gsidebo","html_url":"https://github.com/gsidebo","followers_url":"https://api.github.com/users/gsidebo/followers","following_url":"https://api.github.com/users/gsidebo/following{/other_user}","gists_url":"https://api.github.com/users/gsidebo/gists{/gist_id}","starred_url":"https://api.github.com/users/gsidebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsidebo/subscriptions","organizations_url":"https://api.github.com/users/gsidebo/orgs","repos_url":"https://api.github.com/users/gsidebo/repos","events_url":"https://api.github.com/users/gsidebo/events{/privacy}","received_events_url":"https://api.github.com/users/gsidebo/received_events","type":"User","site_admin":false},"body":"#### What are the relevant tickets?\r\nCloses #41 \r\n\r\n#### What's this PR do?\r\nEssentially this hooks together the back end and front end of the application. The `/pay` page is now reflective of the actual klasses that a user can pay for, and the user can switch between available klasses via a dropdown\r\n\r\n#### How should this be manually tested?\r\n1. Set up a single bootcamp/klass that a User can pay for. Navigate to `/pay` and make sure that the data is accurate and there is no dropdown to select among many klasses\r\n1. Set up more bootcamps/klasses and navigate to `/pay`. Make sure the dropdown is visible and that the view is updated according to the selection\r\n\r\n#### Where should the reviewer start?\r\nProbably `static/js/containers/Payment.js`\r\n\r\n#### Any background context you want to provide?\r\nSubmitting this form via the 'Pay' button doesn't work on this branch or on master due to missing CSRF settings\r\n\r\n#### Screenshots (if appropriate)\r\n![ss 2017-04-25 at 13 45 51](https://cloud.githubusercontent.com/assets/14932219/25399456/87131e18-29bd-11e7-89c4-8a1cee1cd15e.png)\r\n","created_at":"2017-04-25T17:49:07Z","updated_at":"2017-04-25T19:58:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4505bfa8fb7527fb80a1dc970fe46f7ab3e134a0","assignee":{"login":"giocalitri","id":1005204,"avatar_url":"https://avatars1.githubusercontent.com/u/1005204?v=3","gravatar_id":"","url":"https://api.github.com/users/giocalitri","html_url":"https://github.com/giocalitri","followers_url":"https://api.github.com/users/giocalitri/followers","following_url":"https://api.github.com/users/giocalitri/following{/other_user}","gists_url":"https://api.github.com/users/giocalitri/gists{/gist_id}","starred_url":"https://api.github.com/users/giocalitri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giocalitri/subscriptions","organizations_url":"https://api.github.com/users/giocalitri/orgs","repos_url":"https://api.github.com/users/giocalitri/repos","events_url":"https://api.github.com/users/giocalitri/events{/privacy}","received_events_url":"https://api.github.com/users/giocalitri/received_events","type":"User","site_admin":false},"assignees":[{"login":"giocalitri","id":1005204,"avatar_url":"https://avatars1.githubusercontent.com/u/1005204?v=3","gravatar_id":"","url":"https://api.github.com/users/giocalitri","html_url":"https://github.com/giocalitri","followers_url":"https://api.github.com/users/giocalitri/followers","following_url":"https://api.github.com/users/giocalitri/following{/other_user}","gists_url":"https://api.github.com/users/giocalitri/gists{/gist_id}","starred_url":"https://api.github.com/users/giocalitri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giocalitri/subscriptions","organizations_url":"https://api.github.com/users/giocalitri/orgs","repos_url":"https://api.github.com/users/giocalitri/repos","events_url":"https://api.github.com/users/giocalitri/events{/privacy}","received_events_url":"https://api.github.com/users/giocalitri/received_events","type":"User","site_admin":false},{"login":"aliceriot","id":6207644,"avatar_url":"https://avatars3.githubusercontent.com/u/6207644?v=3","gravatar_id":"","url":"https://api.github.com/users/aliceriot","html_url":"https://github.com/aliceriot","followers_url":"https://api.github.com/users/aliceriot/followers","following_url":"https://api.github.com/users/aliceriot/following{/other_user}","gists_url":"https://api.github.com/users/aliceriot/gists{/gist_id}","starred_url":"https://api.github.com/users/aliceriot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliceriot/subscriptions","organizations_url":"https://api.github.com/users/aliceriot/orgs","repos_url":"https://api.github.com/users/aliceriot/repos","events_url":"https://api.github.com/users/aliceriot/events{/privacy}","received_events_url":"https://api.github.com/users/aliceriot/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/51/commits","review_comments_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/51/comments","review_comment_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/issues/51/comments","statuses_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/statuses/ae2b2caf22b801b1d8c8297ace2f3e9858e163b9","head":{"label":"mitodl:41_integrate_payment_API_into_frontend","ref":"41_integrate_payment_API_into_frontend","sha":"ae2b2caf22b801b1d8c8297ace2f3e9858e163b9","user":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars1.githubusercontent.com/u/7918516?v=3","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"repo":{"id":82849185,"name":"bootcamp-ecommerce","full_name":"mitodl/bootcamp-ecommerce","owner":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars1.githubusercontent.com/u/7918516?v=3","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mitodl/bootcamp-ecommerce","description":"MIT Bootcamp e-commerce","fork":false,"url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce","forks_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/forks","keys_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/teams","hooks_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/hooks","issue_events_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/issues/events{/number}","events_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/events","assignees_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/assignees{/user}","branches_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/branches{/branch}","tags_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/tags","blobs_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/languages","stargazers_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/stargazers","contributors_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/contributors","subscribers_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/subscribers","subscription_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/subscription","commits_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/contents/{+path}","compare_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/merges","archive_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/downloads","issues_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/issues{/number}","pulls_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/labels{/name}","releases_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/releases{/id}","deployments_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/deployments","created_at":"2017-02-22T20:27:24Z","updated_at":"2017-02-23T14:19:41Z","pushed_at":"2017-04-25T19:30:39Z","git_url":"git://github.com/mitodl/bootcamp-ecommerce.git","ssh_url":"git@github.com:mitodl/bootcamp-ecommerce.git","clone_url":"https://github.com/mitodl/bootcamp-ecommerce.git","svn_url":"https://github.com/mitodl/bootcamp-ecommerce","homepage":null,"size":200,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":24,"forks":1,"open_issues":24,"watchers":0,"default_branch":"master"}},"base":{"label":"mitodl:master","ref":"master","sha":"e4ff7d6fbb184b2cf978ef373e9d044873110966","user":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars1.githubusercontent.com/u/7918516?v=3","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"repo":{"id":82849185,"name":"bootcamp-ecommerce","full_name":"mitodl/bootcamp-ecommerce","owner":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars1.githubusercontent.com/u/7918516?v=3","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mitodl/bootcamp-ecommerce","description":"MIT Bootcamp e-commerce","fork":false,"url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce","forks_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/forks","keys_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/teams","hooks_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/hooks","issue_events_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/issues/events{/number}","events_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/events","assignees_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/assignees{/user}","branches_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/branches{/branch}","tags_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/tags","blobs_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/languages","stargazers_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/stargazers","contributors_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/contributors","subscribers_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/subscribers","subscription_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/subscription","commits_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/contents/{+path}","compare_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/merges","archive_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/downloads","issues_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/issues{/number}","pulls_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/labels{/name}","releases_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/releases{/id}","deployments_url":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/deployments","created_at":"2017-02-22T20:27:24Z","updated_at":"2017-02-23T14:19:41Z","pushed_at":"2017-04-25T19:30:39Z","git_url":"git://github.com/mitodl/bootcamp-ecommerce.git","ssh_url":"git@github.com:mitodl/bootcamp-ecommerce.git","clone_url":"https://github.com/mitodl/bootcamp-ecommerce.git","svn_url":"https://github.com/mitodl/bootcamp-ecommerce","homepage":null,"size":200,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":24,"forks":1,"open_issues":24,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/51"},"html":{"href":"https://github.com/mitodl/bootcamp-ecommerce/pull/51"},"issue":{"href":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/issues/51"},"comments":{"href":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/mitodl/bootcamp-ecommerce/statuses/ae2b2caf22b801b1d8c8297ace2f3e9858e163b9"}}}}
{"actor":{"display_login":"aliceriot"}}