{"action":"created","comment":{"url":"https://api.github.com/repos/uwblueprint/water-festival/pulls/comments/169744941","pull_request_review_id":98321464,"id":169744941,"diff_hunk":"@@ -15,10 +21,44 @@ const currentQuestions = (state = [], action) => {\n \t}\n };\n \n+// Retrieve Activities List from server\n+const currentActivities = (state = [], action) => {\n+\tswitch (action.type) {\n+\t\tcase ACTIVITY_LOADED: {\n+\t\t\tconst { activityList } = action;\n+\t\t\treturn activityList || state;\n+\t\t}\n+\t\tdefault:\n+\t\t\treturn state;\n+\t}\n+};\n+\n+const myActivities = (state = [], action) => {\n+\tvar activityIndex = state.indexOf(action.activityId);\n+\n+\tswitch (action.type) {\n+\t\tcase ADD_ACTIVITY: {\n+\t\t\tif (activityIndex < 0){\n+\t\t\t\treturn [...state, action.activityId];\n+\t\t\t}\n+\t\t\tbreak;","path":"app/reducers.js","position":37,"original_position":37,"commit_id":"73aab1f31166128fc419d681e7bc06991a16b5b8","original_commit_id":"73aab1f31166128fc419d681e7bc06991a16b5b8","user":{"login":"theRoughCode","id":19257435,"avatar_url":"https://avatars0.githubusercontent.com/u/19257435?v=4","gravatar_id":"","url":"https://api.github.com/users/theRoughCode","html_url":"https://github.com/theRoughCode","followers_url":"https://api.github.com/users/theRoughCode/followers","following_url":"https://api.github.com/users/theRoughCode/following{/other_user}","gists_url":"https://api.github.com/users/theRoughCode/gists{/gist_id}","starred_url":"https://api.github.com/users/theRoughCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theRoughCode/subscriptions","organizations_url":"https://api.github.com/users/theRoughCode/orgs","repos_url":"https://api.github.com/users/theRoughCode/repos","events_url":"https://api.github.com/users/theRoughCode/events{/privacy}","received_events_url":"https://api.github.com/users/theRoughCode/received_events","type":"User","site_admin":false},"body":"Would this work?  I think we want to return the default `state` if not returning anything","created_at":"2018-02-21T19:06:26Z","updated_at":"2018-02-21T19:06:26Z","html_url":"https://github.com/uwblueprint/water-festival/pull/90#discussion_r169744941","pull_request_url":"https://api.github.com/repos/uwblueprint/water-festival/pulls/90","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/uwblueprint/water-festival/pulls/comments/169744941"},"html":{"href":"https://github.com/uwblueprint/water-festival/pull/90#discussion_r169744941"},"pull_request":{"href":"https://api.github.com/repos/uwblueprint/water-festival/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/uwblueprint/water-festival/pulls/90","id":170499444,"html_url":"https://github.com/uwblueprint/water-festival/pull/90","diff_url":"https://github.com/uwblueprint/water-festival/pull/90.diff","patch_url":"https://github.com/uwblueprint/water-festival/pull/90.patch","issue_url":"https://api.github.com/repos/uwblueprint/water-festival/issues/90","number":90,"state":"open","locked":false,"title":"#8 Add activity to schedule","user":{"login":"amyqiu","id":15674572,"avatar_url":"https://avatars2.githubusercontent.com/u/15674572?v=4","gravatar_id":"","url":"https://api.github.com/users/amyqiu","html_url":"https://github.com/amyqiu","followers_url":"https://api.github.com/users/amyqiu/followers","following_url":"https://api.github.com/users/amyqiu/following{/other_user}","gists_url":"https://api.github.com/users/amyqiu/gists{/gist_id}","starred_url":"https://api.github.com/users/amyqiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyqiu/subscriptions","organizations_url":"https://api.github.com/users/amyqiu/orgs","repos_url":"https://api.github.com/users/amyqiu/repos","events_url":"https://api.github.com/users/amyqiu/events{/privacy}","received_events_url":"https://api.github.com/users/amyqiu/received_events","type":"User","site_admin":false},"body":"Added currentActivities and myActivities to redux store, as well as buttons to add an activity to myActivities in the ActivityList and ActivitalDetails screens.  Also implemented sectionList to sort activities by grades.\r\n\r\nScreenshots:\r\nhttps://user-images.githubusercontent.com/15674572/36488028-608b7652-16f0-11e8-9abd-8f4865a025d5.png\r\nhttps://user-images.githubusercontent.com/15674572/36488032-6358fddc-16f0-11e8-9f95-85bc80217e94.png\r\n\r\n","created_at":"2018-02-21T15:17:31Z","updated_at":"2018-02-21T19:06:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58a76ff057a1f03e5f50a9ac4c547e46fa389529","assignee":null,"assignees":[],"requested_reviewers":[{"login":"AbhiPrasad","id":18689448,"avatar_url":"https://avatars2.githubusercontent.com/u/18689448?v=4","gravatar_id":"","url":"https://api.github.com/users/AbhiPrasad","html_url":"https://github.com/AbhiPrasad","followers_url":"https://api.github.com/users/AbhiPrasad/followers","following_url":"https://api.github.com/users/AbhiPrasad/following{/other_user}","gists_url":"https://api.github.com/users/AbhiPrasad/gists{/gist_id}","starred_url":"https://api.github.com/users/AbhiPrasad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbhiPrasad/subscriptions","organizations_url":"https://api.github.com/users/AbhiPrasad/orgs","repos_url":"https://api.github.com/users/AbhiPrasad/repos","events_url":"https://api.github.com/users/AbhiPrasad/events{/privacy}","received_events_url":"https://api.github.com/users/AbhiPrasad/received_events","type":"User","site_admin":false},{"login":"varnitg","id":25592320,"avatar_url":"https://avatars1.githubusercontent.com/u/25592320?v=4","gravatar_id":"","url":"https://api.github.com/users/varnitg","html_url":"https://github.com/varnitg","followers_url":"https://api.github.com/users/varnitg/followers","following_url":"https://api.github.com/users/varnitg/following{/other_user}","gists_url":"https://api.github.com/users/varnitg/gists{/gist_id}","starred_url":"https://api.github.com/users/varnitg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varnitg/subscriptions","organizations_url":"https://api.github.com/users/varnitg/orgs","repos_url":"https://api.github.com/users/varnitg/repos","events_url":"https://api.github.com/users/varnitg/events{/privacy}","received_events_url":"https://api.github.com/users/varnitg/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/uwblueprint/water-festival/pulls/90/commits","review_comments_url":"https://api.github.com/repos/uwblueprint/water-festival/pulls/90/comments","review_comment_url":"https://api.github.com/repos/uwblueprint/water-festival/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uwblueprint/water-festival/issues/90/comments","statuses_url":"https://api.github.com/repos/uwblueprint/water-festival/statuses/73aab1f31166128fc419d681e7bc06991a16b5b8","head":{"label":"uwblueprint:8-add-activity-to-schedule","ref":"8-add-activity-to-schedule","sha":"73aab1f31166128fc419d681e7bc06991a16b5b8","user":{"login":"uwblueprint","id":22460895,"avatar_url":"https://avatars1.githubusercontent.com/u/22460895?v=4","gravatar_id":"","url":"https://api.github.com/users/uwblueprint","html_url":"https://github.com/uwblueprint","followers_url":"https://api.github.com/users/uwblueprint/followers","following_url":"https://api.github.com/users/uwblueprint/following{/other_user}","gists_url":"https://api.github.com/users/uwblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/uwblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwblueprint/subscriptions","organizations_url":"https://api.github.com/users/uwblueprint/orgs","repos_url":"https://api.github.com/users/uwblueprint/repos","events_url":"https://api.github.com/users/uwblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/uwblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":91618596,"name":"water-festival","full_name":"uwblueprint/water-festival","owner":{"login":"uwblueprint","id":22460895,"avatar_url":"https://avatars1.githubusercontent.com/u/22460895?v=4","gravatar_id":"","url":"https://api.github.com/users/uwblueprint","html_url":"https://github.com/uwblueprint","followers_url":"https://api.github.com/users/uwblueprint/followers","following_url":"https://api.github.com/users/uwblueprint/following{/other_user}","gists_url":"https://api.github.com/users/uwblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/uwblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwblueprint/subscriptions","organizations_url":"https://api.github.com/users/uwblueprint/orgs","repos_url":"https://api.github.com/users/uwblueprint/repos","events_url":"https://api.github.com/users/uwblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/uwblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uwblueprint/water-festival","description":"WWCGF App (Frontend)","fork":false,"url":"https://api.github.com/repos/uwblueprint/water-festival","forks_url":"https://api.github.com/repos/uwblueprint/water-festival/forks","keys_url":"https://api.github.com/repos/uwblueprint/water-festival/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uwblueprint/water-festival/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uwblueprint/water-festival/teams","hooks_url":"https://api.github.com/repos/uwblueprint/water-festival/hooks","issue_events_url":"https://api.github.com/repos/uwblueprint/water-festival/issues/events{/number}","events_url":"https://api.github.com/repos/uwblueprint/water-festival/events","assignees_url":"https://api.github.com/repos/uwblueprint/water-festival/assignees{/user}","branches_url":"https://api.github.com/repos/uwblueprint/water-festival/branches{/branch}","tags_url":"https://api.github.com/repos/uwblueprint/water-festival/tags","blobs_url":"https://api.github.com/repos/uwblueprint/water-festival/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uwblueprint/water-festival/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uwblueprint/water-festival/git/refs{/sha}","trees_url":"https://api.github.com/repos/uwblueprint/water-festival/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uwblueprint/water-festival/statuses/{sha}","languages_url":"https://api.github.com/repos/uwblueprint/water-festival/languages","stargazers_url":"https://api.github.com/repos/uwblueprint/water-festival/stargazers","contributors_url":"https://api.github.com/repos/uwblueprint/water-festival/contributors","subscribers_url":"https://api.github.com/repos/uwblueprint/water-festival/subscribers","subscription_url":"https://api.github.com/repos/uwblueprint/water-festival/subscription","commits_url":"https://api.github.com/repos/uwblueprint/water-festival/commits{/sha}","git_commits_url":"https://api.github.com/repos/uwblueprint/water-festival/git/commits{/sha}","comments_url":"https://api.github.com/repos/uwblueprint/water-festival/comments{/number}","issue_comment_url":"https://api.github.com/repos/uwblueprint/water-festival/issues/comments{/number}","contents_url":"https://api.github.com/repos/uwblueprint/water-festival/contents/{+path}","compare_url":"https://api.github.com/repos/uwblueprint/water-festival/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uwblueprint/water-festival/merges","archive_url":"https://api.github.com/repos/uwblueprint/water-festival/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uwblueprint/water-festival/downloads","issues_url":"https://api.github.com/repos/uwblueprint/water-festival/issues{/number}","pulls_url":"https://api.github.com/repos/uwblueprint/water-festival/pulls{/number}","milestones_url":"https://api.github.com/repos/uwblueprint/water-festival/milestones{/number}","notifications_url":"https://api.github.com/repos/uwblueprint/water-festival/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uwblueprint/water-festival/labels{/name}","releases_url":"https://api.github.com/repos/uwblueprint/water-festival/releases{/id}","deployments_url":"https://api.github.com/repos/uwblueprint/water-festival/deployments","created_at":"2017-05-17T20:45:03Z","updated_at":"2018-02-11T23:02:32Z","pushed_at":"2018-02-21T15:17:31Z","git_url":"git://github.com/uwblueprint/water-festival.git","ssh_url":"git@github.com:uwblueprint/water-festival.git","clone_url":"https://github.com/uwblueprint/water-festival.git","svn_url":"https://github.com/uwblueprint/water-festival","homepage":"","size":4796,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":31,"license":null,"forks":0,"open_issues":31,"watchers":3,"default_branch":"master"}},"base":{"label":"uwblueprint:master","ref":"master","sha":"ff5f6df4f348571675d39f0c7ed45b7a605ecf70","user":{"login":"uwblueprint","id":22460895,"avatar_url":"https://avatars1.githubusercontent.com/u/22460895?v=4","gravatar_id":"","url":"https://api.github.com/users/uwblueprint","html_url":"https://github.com/uwblueprint","followers_url":"https://api.github.com/users/uwblueprint/followers","following_url":"https://api.github.com/users/uwblueprint/following{/other_user}","gists_url":"https://api.github.com/users/uwblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/uwblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwblueprint/subscriptions","organizations_url":"https://api.github.com/users/uwblueprint/orgs","repos_url":"https://api.github.com/users/uwblueprint/repos","events_url":"https://api.github.com/users/uwblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/uwblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":91618596,"name":"water-festival","full_name":"uwblueprint/water-festival","owner":{"login":"uwblueprint","id":22460895,"avatar_url":"https://avatars1.githubusercontent.com/u/22460895?v=4","gravatar_id":"","url":"https://api.github.com/users/uwblueprint","html_url":"https://github.com/uwblueprint","followers_url":"https://api.github.com/users/uwblueprint/followers","following_url":"https://api.github.com/users/uwblueprint/following{/other_user}","gists_url":"https://api.github.com/users/uwblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/uwblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwblueprint/subscriptions","organizations_url":"https://api.github.com/users/uwblueprint/orgs","repos_url":"https://api.github.com/users/uwblueprint/repos","events_url":"https://api.github.com/users/uwblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/uwblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uwblueprint/water-festival","description":"WWCGF App (Frontend)","fork":false,"url":"https://api.github.com/repos/uwblueprint/water-festival","forks_url":"https://api.github.com/repos/uwblueprint/water-festival/forks","keys_url":"https://api.github.com/repos/uwblueprint/water-festival/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uwblueprint/water-festival/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uwblueprint/water-festival/teams","hooks_url":"https://api.github.com/repos/uwblueprint/water-festival/hooks","issue_events_url":"https://api.github.com/repos/uwblueprint/water-festival/issues/events{/number}","events_url":"https://api.github.com/repos/uwblueprint/water-festival/events","assignees_url":"https://api.github.com/repos/uwblueprint/water-festival/assignees{/user}","branches_url":"https://api.github.com/repos/uwblueprint/water-festival/branches{/branch}","tags_url":"https://api.github.com/repos/uwblueprint/water-festival/tags","blobs_url":"https://api.github.com/repos/uwblueprint/water-festival/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uwblueprint/water-festival/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uwblueprint/water-festival/git/refs{/sha}","trees_url":"https://api.github.com/repos/uwblueprint/water-festival/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uwblueprint/water-festival/statuses/{sha}","languages_url":"https://api.github.com/repos/uwblueprint/water-festival/languages","stargazers_url":"https://api.github.com/repos/uwblueprint/water-festival/stargazers","contributors_url":"https://api.github.com/repos/uwblueprint/water-festival/contributors","subscribers_url":"https://api.github.com/repos/uwblueprint/water-festival/subscribers","subscription_url":"https://api.github.com/repos/uwblueprint/water-festival/subscription","commits_url":"https://api.github.com/repos/uwblueprint/water-festival/commits{/sha}","git_commits_url":"https://api.github.com/repos/uwblueprint/water-festival/git/commits{/sha}","comments_url":"https://api.github.com/repos/uwblueprint/water-festival/comments{/number}","issue_comment_url":"https://api.github.com/repos/uwblueprint/water-festival/issues/comments{/number}","contents_url":"https://api.github.com/repos/uwblueprint/water-festival/contents/{+path}","compare_url":"https://api.github.com/repos/uwblueprint/water-festival/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uwblueprint/water-festival/merges","archive_url":"https://api.github.com/repos/uwblueprint/water-festival/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uwblueprint/water-festival/downloads","issues_url":"https://api.github.com/repos/uwblueprint/water-festival/issues{/number}","pulls_url":"https://api.github.com/repos/uwblueprint/water-festival/pulls{/number}","milestones_url":"https://api.github.com/repos/uwblueprint/water-festival/milestones{/number}","notifications_url":"https://api.github.com/repos/uwblueprint/water-festival/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uwblueprint/water-festival/labels{/name}","releases_url":"https://api.github.com/repos/uwblueprint/water-festival/releases{/id}","deployments_url":"https://api.github.com/repos/uwblueprint/water-festival/deployments","created_at":"2017-05-17T20:45:03Z","updated_at":"2018-02-11T23:02:32Z","pushed_at":"2018-02-21T15:17:31Z","git_url":"git://github.com/uwblueprint/water-festival.git","ssh_url":"git@github.com:uwblueprint/water-festival.git","clone_url":"https://github.com/uwblueprint/water-festival.git","svn_url":"https://github.com/uwblueprint/water-festival","homepage":"","size":4796,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":31,"license":null,"forks":0,"open_issues":31,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uwblueprint/water-festival/pulls/90"},"html":{"href":"https://github.com/uwblueprint/water-festival/pull/90"},"issue":{"href":"https://api.github.com/repos/uwblueprint/water-festival/issues/90"},"comments":{"href":"https://api.github.com/repos/uwblueprint/water-festival/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/uwblueprint/water-festival/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/uwblueprint/water-festival/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uwblueprint/water-festival/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/uwblueprint/water-festival/statuses/73aab1f31166128fc419d681e7bc06991a16b5b8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"theRoughCode"}}