{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/payments-ui/pulls/comments/35218893","id":35218893,"diff_hunk":"@@ -0,0 +1,39 @@\n+'use strict';\n+\n+import $ from 'jquery';\n+import * as actionTypes from 'constants/action-types';\n+\n+\n+export function error(debugMessage) {\n+  return {\n+    type: actionTypes.APP_ERROR,\n+    error: {debugMessage: debugMessage},\n+  };\n+}\n+\n+export function manageCards() {\n+  return function(dispatch) {","path":"public/js/actions/management.js","position":15,"original_position":15,"commit_id":"790b18525307a34e7b65aaae9270a2a4588c7e63","original_commit_id":"790b18525307a34e7b65aaae9270a2a4588c7e63","user":{"login":"kumar303","id":55398,"avatar_url":"https://avatars.githubusercontent.com/u/55398?v=3","gravatar_id":"","url":"https://api.github.com/users/kumar303","html_url":"https://github.com/kumar303","followers_url":"https://api.github.com/users/kumar303/followers","following_url":"https://api.github.com/users/kumar303/following{/other_user}","gists_url":"https://api.github.com/users/kumar303/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar303/subscriptions","organizations_url":"https://api.github.com/users/kumar303/orgs","repos_url":"https://api.github.com/users/kumar303/repos","events_url":"https://api.github.com/users/kumar303/events{/privacy}","received_events_url":"https://api.github.com/users/kumar303/received_events","type":"User","site_admin":false},"body":"`return dispatch -> {...}` for hotness","created_at":"2015-07-22T14:32:46Z","updated_at":"2015-07-22T14:32:46Z","html_url":"https://github.com/mozilla/payments-ui/pull/221#discussion_r35218893","pull_request_url":"https://api.github.com/repos/mozilla/payments-ui/pulls/221","_links":{"self":{"href":"https://api.github.com/repos/mozilla/payments-ui/pulls/comments/35218893"},"html":{"href":"https://github.com/mozilla/payments-ui/pull/221#discussion_r35218893"},"pull_request":{"href":"https://api.github.com/repos/mozilla/payments-ui/pulls/221"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/payments-ui/pulls/221","id":40566033,"html_url":"https://github.com/mozilla/payments-ui/pull/221","diff_url":"https://github.com/mozilla/payments-ui/pull/221.diff","patch_url":"https://github.com/mozilla/payments-ui/pull/221.patch","issue_url":"https://api.github.com/repos/mozilla/payments-ui/issues/221","number":221,"state":"open","locked":false,"title":"Utilise modal with redux (fixes #209, fixes #212, fixes #220, fixes #217)","user":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"body":"I definitely went a bit too far in one PR but the journey was necessary to get familiar with redux. I've split things up into relevant commits to try and minimise the review pain.\r\n\r\nI need to follow-up with tests for the redux management pieces, but to get to that I'd like to switch over to using the babel-plugin-rewire so that everything will work with es6 modules.","created_at":"2015-07-22T13:44:25Z","updated_at":"2015-07-22T14:32:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad8f40dde492137a90df533b05081c7bbcd0fc1f","assignee":{"login":"kumar303","id":55398,"avatar_url":"https://avatars.githubusercontent.com/u/55398?v=3","gravatar_id":"","url":"https://api.github.com/users/kumar303","html_url":"https://github.com/kumar303","followers_url":"https://api.github.com/users/kumar303/followers","following_url":"https://api.github.com/users/kumar303/following{/other_user}","gists_url":"https://api.github.com/users/kumar303/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar303/subscriptions","organizations_url":"https://api.github.com/users/kumar303/orgs","repos_url":"https://api.github.com/users/kumar303/repos","events_url":"https://api.github.com/users/kumar303/events{/privacy}","received_events_url":"https://api.github.com/users/kumar303/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/payments-ui/pulls/221/commits","review_comments_url":"https://api.github.com/repos/mozilla/payments-ui/pulls/221/comments","review_comment_url":"https://api.github.com/repos/mozilla/payments-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/payments-ui/issues/221/comments","statuses_url":"https://api.github.com/repos/mozilla/payments-ui/statuses/790b18525307a34e7b65aaae9270a2a4588c7e63","head":{"label":"muffinresearch:utilise-modal-with-redux","ref":"utilise-modal-with-redux","sha":"790b18525307a34e7b65aaae9270a2a4588c7e63","user":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"repo":{"id":34340899,"name":"payments-ui","full_name":"muffinresearch/payments-ui","owner":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/muffinresearch/payments-ui","description":"The payments frontend interface","fork":true,"url":"https://api.github.com/repos/muffinresearch/payments-ui","forks_url":"https://api.github.com/repos/muffinresearch/payments-ui/forks","keys_url":"https://api.github.com/repos/muffinresearch/payments-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/muffinresearch/payments-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/muffinresearch/payments-ui/teams","hooks_url":"https://api.github.com/repos/muffinresearch/payments-ui/hooks","issue_events_url":"https://api.github.com/repos/muffinresearch/payments-ui/issues/events{/number}","events_url":"https://api.github.com/repos/muffinresearch/payments-ui/events","assignees_url":"https://api.github.com/repos/muffinresearch/payments-ui/assignees{/user}","branches_url":"https://api.github.com/repos/muffinresearch/payments-ui/branches{/branch}","tags_url":"https://api.github.com/repos/muffinresearch/payments-ui/tags","blobs_url":"https://api.github.com/repos/muffinresearch/payments-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/muffinresearch/payments-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/muffinresearch/payments-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/muffinresearch/payments-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/muffinresearch/payments-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/muffinresearch/payments-ui/languages","stargazers_url":"https://api.github.com/repos/muffinresearch/payments-ui/stargazers","contributors_url":"https://api.github.com/repos/muffinresearch/payments-ui/contributors","subscribers_url":"https://api.github.com/repos/muffinresearch/payments-ui/subscribers","subscription_url":"https://api.github.com/repos/muffinresearch/payments-ui/subscription","commits_url":"https://api.github.com/repos/muffinresearch/payments-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/muffinresearch/payments-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/muffinresearch/payments-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/muffinresearch/payments-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/muffinresearch/payments-ui/contents/{+path}","compare_url":"https://api.github.com/repos/muffinresearch/payments-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/muffinresearch/payments-ui/merges","archive_url":"https://api.github.com/repos/muffinresearch/payments-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/muffinresearch/payments-ui/downloads","issues_url":"https://api.github.com/repos/muffinresearch/payments-ui/issues{/number}","pulls_url":"https://api.github.com/repos/muffinresearch/payments-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/muffinresearch/payments-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/muffinresearch/payments-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/muffinresearch/payments-ui/labels{/name}","releases_url":"https://api.github.com/repos/muffinresearch/payments-ui/releases{/id}","created_at":"2015-04-21T17:12:10Z","updated_at":"2015-05-13T13:54:48Z","pushed_at":"2015-07-22T14:08:57Z","git_url":"git://github.com/muffinresearch/payments-ui.git","ssh_url":"git@github.com:muffinresearch/payments-ui.git","clone_url":"https://github.com/muffinresearch/payments-ui.git","svn_url":"https://github.com/muffinresearch/payments-ui","homepage":null,"size":13287,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"de357b58585909153e82a3bec32475b4750cbe68","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":34340650,"name":"payments-ui","full_name":"mozilla/payments-ui","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/payments-ui","description":"The payments frontend interface","fork":false,"url":"https://api.github.com/repos/mozilla/payments-ui","forks_url":"https://api.github.com/repos/mozilla/payments-ui/forks","keys_url":"https://api.github.com/repos/mozilla/payments-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/payments-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/payments-ui/teams","hooks_url":"https://api.github.com/repos/mozilla/payments-ui/hooks","issue_events_url":"https://api.github.com/repos/mozilla/payments-ui/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/payments-ui/events","assignees_url":"https://api.github.com/repos/mozilla/payments-ui/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/payments-ui/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/payments-ui/tags","blobs_url":"https://api.github.com/repos/mozilla/payments-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/payments-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/payments-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/payments-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/payments-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/payments-ui/languages","stargazers_url":"https://api.github.com/repos/mozilla/payments-ui/stargazers","contributors_url":"https://api.github.com/repos/mozilla/payments-ui/contributors","subscribers_url":"https://api.github.com/repos/mozilla/payments-ui/subscribers","subscription_url":"https://api.github.com/repos/mozilla/payments-ui/subscription","commits_url":"https://api.github.com/repos/mozilla/payments-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/payments-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/payments-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/payments-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/payments-ui/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/payments-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/payments-ui/merges","archive_url":"https://api.github.com/repos/mozilla/payments-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/payments-ui/downloads","issues_url":"https://api.github.com/repos/mozilla/payments-ui/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/payments-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/payments-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/payments-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/payments-ui/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/payments-ui/releases{/id}","created_at":"2015-04-21T17:07:06Z","updated_at":"2015-07-20T16:28:51Z","pushed_at":"2015-07-22T14:08:57Z","git_url":"git://github.com/mozilla/payments-ui.git","ssh_url":"git@github.com:mozilla/payments-ui.git","clone_url":"https://github.com/mozilla/payments-ui.git","svn_url":"https://github.com/mozilla/payments-ui","homepage":null,"size":22754,"stargazers_count":28,"watchers_count":28,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":33,"forks":6,"open_issues":33,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/payments-ui/pulls/221"},"html":{"href":"https://github.com/mozilla/payments-ui/pull/221"},"issue":{"href":"https://api.github.com/repos/mozilla/payments-ui/issues/221"},"comments":{"href":"https://api.github.com/repos/mozilla/payments-ui/issues/221/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/payments-ui/pulls/221/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/payments-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/payments-ui/pulls/221/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/payments-ui/statuses/790b18525307a34e7b65aaae9270a2a4588c7e63"}}}}