{"action":"created","comment":{"url":"https://api.github.com/repos/MRN-Code/coinstac/pulls/comments/40718108","id":40718108,"diff_hunk":"@@ -0,0 +1,120 @@\n+import {\n+    CONSORTIUM_RECIEVE,\n+    CONSORTIUM_REQUEST,\n+    CONSORTIUM_FETCH_ERROR,\n+    CONSORTIUM_ADD_USER,\n+    CONSORTIUM_REMOVE_USER,\n+    CONSORTIUM_EDIT_LABEL,\n+    CONSORTIUM_EDIT_DESCRIPTION,\n+    CONSORTIUM_ADD_TAG,\n+    CONSORTIUM_EDIT_TAG,\n+    CONSORTIUM_REMOVE_TAG,\n+    CONSORTIUM_ADD_ANALYSIS,\n+    CONSORTIUM_EDIT_ANALYSIS,\n+    CONSORTIUM_REMOVE_ANALYSIS,\n+    CONSORTIUM_ADD_RESULTS,\n+    CONSORTIUM_EDIT_RESULTS,\n+    CONSORTIUM_REMOVE_RESULTS,\n+} from '../actions/consortium';\n+\n+export default function consortiumReducer(state = {\n+    analyses: [],\n+    description: '',\n+    error: '',\n+    isLoading: false,\n+    label: '',\n+    results: [],\n+    tags: [],\n+    users: [],\n+}, action) {\n+    let analyses;\n+    let results;\n+    let tags;\n+    switch (action.type) {\n+        case CONSORTIUM_RECIEVE:\n+            return Object.assign({}, state, action.consortium, {\n+                isLoading: false,\n+            });\n+        case CONSORTIUM_REQUEST:\n+            return Object.assign({}, state, { isLoading: true });\n+        case CONSORTIUM_FETCH_ERROR:\n+            return Object.assign({}, state, {\n+                error: action.error.message,","path":"app/js/reducers/consortium.js","position":42,"original_position":42,"commit_id":"52d34e09f9476d510a7595ccecd01440f218b2e4","original_commit_id":"52d34e09f9476d510a7595ccecd01440f218b2e4","user":{"login":"swashcap","id":1858316,"avatar_url":"https://avatars.githubusercontent.com/u/1858316?v=3","gravatar_id":"","url":"https://api.github.com/users/swashcap","html_url":"https://github.com/swashcap","followers_url":"https://api.github.com/users/swashcap/followers","following_url":"https://api.github.com/users/swashcap/following{/other_user}","gists_url":"https://api.github.com/users/swashcap/gists{/gist_id}","starred_url":"https://api.github.com/users/swashcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swashcap/subscriptions","organizations_url":"https://api.github.com/users/swashcap/orgs","repos_url":"https://api.github.com/users/swashcap/repos","events_url":"https://api.github.com/users/swashcap/events{/privacy}","received_events_url":"https://api.github.com/users/swashcap/received_events","type":"User","site_admin":false},"body":"Is that an app-wide convention? Where can I see this in action?","created_at":"2015-09-29T19:35:05Z","updated_at":"2015-09-29T19:35:05Z","html_url":"https://github.com/MRN-Code/coinstac/pull/8#discussion_r40718108","pull_request_url":"https://api.github.com/repos/MRN-Code/coinstac/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/MRN-Code/coinstac/pulls/comments/40718108"},"html":{"href":"https://github.com/MRN-Code/coinstac/pull/8#discussion_r40718108"},"pull_request":{"href":"https://api.github.com/repos/MRN-Code/coinstac/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/MRN-Code/coinstac/pulls/8","id":46306413,"html_url":"https://github.com/MRN-Code/coinstac/pull/8","diff_url":"https://github.com/MRN-Code/coinstac/pull/8.diff","patch_url":"https://github.com/MRN-Code/coinstac/pull/8.patch","issue_url":"https://api.github.com/repos/MRN-Code/coinstac/issues/8","number":8,"state":"open","locked":false,"title":"Reduxify Consortia View","user":{"login":"swashcap","id":1858316,"avatar_url":"https://avatars.githubusercontent.com/u/1858316?v=3","gravatar_id":"","url":"https://api.github.com/users/swashcap","html_url":"https://github.com/swashcap","followers_url":"https://api.github.com/users/swashcap/followers","following_url":"https://api.github.com/users/swashcap/following{/other_user}","gists_url":"https://api.github.com/users/swashcap/gists{/gist_id}","starred_url":"https://api.github.com/users/swashcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swashcap/subscriptions","organizations_url":"https://api.github.com/users/swashcap/orgs","repos_url":"https://api.github.com/users/swashcap/repos","events_url":"https://api.github.com/users/swashcap/events{/privacy}","received_events_url":"https://api.github.com/users/swashcap/received_events","type":"User","site_admin":false},"body":"#### asana\r\nhttps://app.asana.com/0/45796090191289/53621870692570\r\n\r\nThis moves the “consortium” view into a Redux-centered architecture. Notable changes:\r\n\r\n* Creation of consortium actions and action creators.\r\n* Creation of a `Consortia` service that acts as an adapter to PouchDB storage\r\n* Creation of a `consortium-single-controller` component that facilitates bound action creators and “dumbing down” of the `consortium-single` component.\r\n* Creation of consortium middleware that interacts with the services and modifies actions as needed (only for errors right now).","created_at":"2015-09-29T17:23:31Z","updated_at":"2015-09-29T19:35:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7805f2219700ead3dd18ba7892825e11caf0a5cd","assignee":{"login":"swashcap","id":1858316,"avatar_url":"https://avatars.githubusercontent.com/u/1858316?v=3","gravatar_id":"","url":"https://api.github.com/users/swashcap","html_url":"https://github.com/swashcap","followers_url":"https://api.github.com/users/swashcap/followers","following_url":"https://api.github.com/users/swashcap/following{/other_user}","gists_url":"https://api.github.com/users/swashcap/gists{/gist_id}","starred_url":"https://api.github.com/users/swashcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swashcap/subscriptions","organizations_url":"https://api.github.com/users/swashcap/orgs","repos_url":"https://api.github.com/users/swashcap/repos","events_url":"https://api.github.com/users/swashcap/events{/privacy}","received_events_url":"https://api.github.com/users/swashcap/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/MRN-Code/coinstac/pulls/8/commits","review_comments_url":"https://api.github.com/repos/MRN-Code/coinstac/pulls/8/comments","review_comment_url":"https://api.github.com/repos/MRN-Code/coinstac/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MRN-Code/coinstac/issues/8/comments","statuses_url":"https://api.github.com/repos/MRN-Code/coinstac/statuses/52d34e09f9476d510a7595ccecd01440f218b2e4","head":{"label":"MRN-Code:enhancement/reduxify-consortia","ref":"enhancement/reduxify-consortia","sha":"52d34e09f9476d510a7595ccecd01440f218b2e4","user":{"login":"MRN-Code","id":5330818,"avatar_url":"https://avatars.githubusercontent.com/u/5330818?v=3","gravatar_id":"","url":"https://api.github.com/users/MRN-Code","html_url":"https://github.com/MRN-Code","followers_url":"https://api.github.com/users/MRN-Code/followers","following_url":"https://api.github.com/users/MRN-Code/following{/other_user}","gists_url":"https://api.github.com/users/MRN-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/MRN-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MRN-Code/subscriptions","organizations_url":"https://api.github.com/users/MRN-Code/orgs","repos_url":"https://api.github.com/users/MRN-Code/repos","events_url":"https://api.github.com/users/MRN-Code/events{/privacy}","received_events_url":"https://api.github.com/users/MRN-Code/received_events","type":"Organization","site_admin":false},"repo":{"id":39043503,"name":"coinstac","full_name":"MRN-Code/coinstac","owner":{"login":"MRN-Code","id":5330818,"avatar_url":"https://avatars.githubusercontent.com/u/5330818?v=3","gravatar_id":"","url":"https://api.github.com/users/MRN-Code","html_url":"https://github.com/MRN-Code","followers_url":"https://api.github.com/users/MRN-Code/followers","following_url":"https://api.github.com/users/MRN-Code/following{/other_user}","gists_url":"https://api.github.com/users/MRN-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/MRN-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MRN-Code/subscriptions","organizations_url":"https://api.github.com/users/MRN-Code/orgs","repos_url":"https://api.github.com/users/MRN-Code/repos","events_url":"https://api.github.com/users/MRN-Code/events{/privacy}","received_events_url":"https://api.github.com/users/MRN-Code/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MRN-Code/coinstac","description":"COINSTAC ♥","fork":false,"url":"https://api.github.com/repos/MRN-Code/coinstac","forks_url":"https://api.github.com/repos/MRN-Code/coinstac/forks","keys_url":"https://api.github.com/repos/MRN-Code/coinstac/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MRN-Code/coinstac/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MRN-Code/coinstac/teams","hooks_url":"https://api.github.com/repos/MRN-Code/coinstac/hooks","issue_events_url":"https://api.github.com/repos/MRN-Code/coinstac/issues/events{/number}","events_url":"https://api.github.com/repos/MRN-Code/coinstac/events","assignees_url":"https://api.github.com/repos/MRN-Code/coinstac/assignees{/user}","branches_url":"https://api.github.com/repos/MRN-Code/coinstac/branches{/branch}","tags_url":"https://api.github.com/repos/MRN-Code/coinstac/tags","blobs_url":"https://api.github.com/repos/MRN-Code/coinstac/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MRN-Code/coinstac/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MRN-Code/coinstac/git/refs{/sha}","trees_url":"https://api.github.com/repos/MRN-Code/coinstac/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MRN-Code/coinstac/statuses/{sha}","languages_url":"https://api.github.com/repos/MRN-Code/coinstac/languages","stargazers_url":"https://api.github.com/repos/MRN-Code/coinstac/stargazers","contributors_url":"https://api.github.com/repos/MRN-Code/coinstac/contributors","subscribers_url":"https://api.github.com/repos/MRN-Code/coinstac/subscribers","subscription_url":"https://api.github.com/repos/MRN-Code/coinstac/subscription","commits_url":"https://api.github.com/repos/MRN-Code/coinstac/commits{/sha}","git_commits_url":"https://api.github.com/repos/MRN-Code/coinstac/git/commits{/sha}","comments_url":"https://api.github.com/repos/MRN-Code/coinstac/comments{/number}","issue_comment_url":"https://api.github.com/repos/MRN-Code/coinstac/issues/comments{/number}","contents_url":"https://api.github.com/repos/MRN-Code/coinstac/contents/{+path}","compare_url":"https://api.github.com/repos/MRN-Code/coinstac/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MRN-Code/coinstac/merges","archive_url":"https://api.github.com/repos/MRN-Code/coinstac/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MRN-Code/coinstac/downloads","issues_url":"https://api.github.com/repos/MRN-Code/coinstac/issues{/number}","pulls_url":"https://api.github.com/repos/MRN-Code/coinstac/pulls{/number}","milestones_url":"https://api.github.com/repos/MRN-Code/coinstac/milestones{/number}","notifications_url":"https://api.github.com/repos/MRN-Code/coinstac/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MRN-Code/coinstac/labels{/name}","releases_url":"https://api.github.com/repos/MRN-Code/coinstac/releases{/id}","created_at":"2015-07-13T23:56:18Z","updated_at":"2015-07-13T23:56:38Z","pushed_at":"2015-09-29T17:23:32Z","git_url":"git://github.com/MRN-Code/coinstac.git","ssh_url":"git@github.com:MRN-Code/coinstac.git","clone_url":"https://github.com/MRN-Code/coinstac.git","svn_url":"https://github.com/MRN-Code/coinstac","homepage":null,"size":1032,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"MRN-Code:master","ref":"master","sha":"135de53dc2ca56b6d283e6c3ed386fe98601f124","user":{"login":"MRN-Code","id":5330818,"avatar_url":"https://avatars.githubusercontent.com/u/5330818?v=3","gravatar_id":"","url":"https://api.github.com/users/MRN-Code","html_url":"https://github.com/MRN-Code","followers_url":"https://api.github.com/users/MRN-Code/followers","following_url":"https://api.github.com/users/MRN-Code/following{/other_user}","gists_url":"https://api.github.com/users/MRN-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/MRN-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MRN-Code/subscriptions","organizations_url":"https://api.github.com/users/MRN-Code/orgs","repos_url":"https://api.github.com/users/MRN-Code/repos","events_url":"https://api.github.com/users/MRN-Code/events{/privacy}","received_events_url":"https://api.github.com/users/MRN-Code/received_events","type":"Organization","site_admin":false},"repo":{"id":39043503,"name":"coinstac","full_name":"MRN-Code/coinstac","owner":{"login":"MRN-Code","id":5330818,"avatar_url":"https://avatars.githubusercontent.com/u/5330818?v=3","gravatar_id":"","url":"https://api.github.com/users/MRN-Code","html_url":"https://github.com/MRN-Code","followers_url":"https://api.github.com/users/MRN-Code/followers","following_url":"https://api.github.com/users/MRN-Code/following{/other_user}","gists_url":"https://api.github.com/users/MRN-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/MRN-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MRN-Code/subscriptions","organizations_url":"https://api.github.com/users/MRN-Code/orgs","repos_url":"https://api.github.com/users/MRN-Code/repos","events_url":"https://api.github.com/users/MRN-Code/events{/privacy}","received_events_url":"https://api.github.com/users/MRN-Code/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MRN-Code/coinstac","description":"COINSTAC ♥","fork":false,"url":"https://api.github.com/repos/MRN-Code/coinstac","forks_url":"https://api.github.com/repos/MRN-Code/coinstac/forks","keys_url":"https://api.github.com/repos/MRN-Code/coinstac/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MRN-Code/coinstac/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MRN-Code/coinstac/teams","hooks_url":"https://api.github.com/repos/MRN-Code/coinstac/hooks","issue_events_url":"https://api.github.com/repos/MRN-Code/coinstac/issues/events{/number}","events_url":"https://api.github.com/repos/MRN-Code/coinstac/events","assignees_url":"https://api.github.com/repos/MRN-Code/coinstac/assignees{/user}","branches_url":"https://api.github.com/repos/MRN-Code/coinstac/branches{/branch}","tags_url":"https://api.github.com/repos/MRN-Code/coinstac/tags","blobs_url":"https://api.github.com/repos/MRN-Code/coinstac/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MRN-Code/coinstac/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MRN-Code/coinstac/git/refs{/sha}","trees_url":"https://api.github.com/repos/MRN-Code/coinstac/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MRN-Code/coinstac/statuses/{sha}","languages_url":"https://api.github.com/repos/MRN-Code/coinstac/languages","stargazers_url":"https://api.github.com/repos/MRN-Code/coinstac/stargazers","contributors_url":"https://api.github.com/repos/MRN-Code/coinstac/contributors","subscribers_url":"https://api.github.com/repos/MRN-Code/coinstac/subscribers","subscription_url":"https://api.github.com/repos/MRN-Code/coinstac/subscription","commits_url":"https://api.github.com/repos/MRN-Code/coinstac/commits{/sha}","git_commits_url":"https://api.github.com/repos/MRN-Code/coinstac/git/commits{/sha}","comments_url":"https://api.github.com/repos/MRN-Code/coinstac/comments{/number}","issue_comment_url":"https://api.github.com/repos/MRN-Code/coinstac/issues/comments{/number}","contents_url":"https://api.github.com/repos/MRN-Code/coinstac/contents/{+path}","compare_url":"https://api.github.com/repos/MRN-Code/coinstac/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MRN-Code/coinstac/merges","archive_url":"https://api.github.com/repos/MRN-Code/coinstac/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MRN-Code/coinstac/downloads","issues_url":"https://api.github.com/repos/MRN-Code/coinstac/issues{/number}","pulls_url":"https://api.github.com/repos/MRN-Code/coinstac/pulls{/number}","milestones_url":"https://api.github.com/repos/MRN-Code/coinstac/milestones{/number}","notifications_url":"https://api.github.com/repos/MRN-Code/coinstac/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MRN-Code/coinstac/labels{/name}","releases_url":"https://api.github.com/repos/MRN-Code/coinstac/releases{/id}","created_at":"2015-07-13T23:56:18Z","updated_at":"2015-07-13T23:56:38Z","pushed_at":"2015-09-29T17:23:32Z","git_url":"git://github.com/MRN-Code/coinstac.git","ssh_url":"git@github.com:MRN-Code/coinstac.git","clone_url":"https://github.com/MRN-Code/coinstac.git","svn_url":"https://github.com/MRN-Code/coinstac","homepage":null,"size":1032,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MRN-Code/coinstac/pulls/8"},"html":{"href":"https://github.com/MRN-Code/coinstac/pull/8"},"issue":{"href":"https://api.github.com/repos/MRN-Code/coinstac/issues/8"},"comments":{"href":"https://api.github.com/repos/MRN-Code/coinstac/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/MRN-Code/coinstac/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/MRN-Code/coinstac/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MRN-Code/coinstac/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/MRN-Code/coinstac/statuses/52d34e09f9476d510a7595ccecd01440f218b2e4"}}}}