{"action":"created","comment":{"url":"https://api.github.com/repos/media-network/media-webapp/pulls/comments/202688734","pull_request_review_id":137433475,"id":202688734,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjY4ODczNA==","diff_hunk":"@@ -22,62 +22,54 @@ export default combineReducers({\n       }\n     }),\n     [ types.GET_PRESET_COMPLETED ]: (state, action) => {\n-      const { slug }  = action.payload.preset.project\n-      const project = state[ slug ]\n-      const presets = project.presets\n+      const { preset, slug }  = action.payload\n \n       return {\n         ...state,\n         [ slug ]: {\n-          ...project,\n+          ...state[ slug ],\n           presets: {\n-            ...presets,\n-            [ action.payload.preset.hash ]: action.payload.preset\n+            ...state[ slug ].presets,\n+            [ preset.hash ]: preset\n           }\n         }\n       }\n     },\n     [ types.CREATE_PRESET_COMPLETED ]: (state, action) => {\n-      const { slug }  = action.payload.preset.project\n-      const project = state[ slug ]\n-      const presets = project.presets\n+      const { preset, slug } = action.payload\n \n       return {\n         ...state,\n         [ slug ]: {\n-          ...project,\n+          ...state[ slug ],\n           presets: {\n-            ...presets,\n-            [ action.payload.preset.hash ]: action.payload.preset\n+            ...state[ slug ].presets,\n+            [ preset.hash ]: preset\n           }\n         }\n       }\n     },\n     [ types.UPDATE_PRESET_COMPLETED ]: (state, action) => {\n-      const { slug }  = action.payload.preset.project\n-      const project = state[ slug ]\n-      const presets = project.presets\n+      const { preset, slug } = action.payload\n \n       return {\n         ...state,\n         [ slug ]: {\n-          ...project,\n+          ...state[ slug ],\n           presets: {\n-            ...presets,\n-            [ action.payload.preset.hash ]: action.payload.preset\n+            ...state[ slug ].presets,\n+            [ preset.hash ]: preset\n           }\n         }\n       }\n     },\n     [ types.DELETE_PRESET_COMPLETED ]: (state, action) => {\n-      const { slug }  = action.payload.preset.project\n-      const project = state[ slug ]\n-      const presets = project.presets\n-      const { [ action.payload.preset.hash ]: removedPreset, ...remainPresets } = presets\n+      const { preset: { hash }, slug } = action.payload\n+      const { [ hash ]: removedPreset, ...remainPresets } = state[ slug ].presets","path":"client/src/app/state/ducks/project/reducers.js","position":69,"original_position":69,"commit_id":"daf03508c2146692fe995037aa01019374280e69","original_commit_id":"daf03508c2146692fe995037aa01019374280e69","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: ['removedPreset' is assigned a value but never used. (no-unused-vars)](https://app.codacy.com/app/media-network/media-webapp/pullRequest?prid=1907086)","created_at":"2018-07-16T13:49:33Z","updated_at":"2018-07-16T13:49:34Z","html_url":"https://github.com/media-network/media-webapp/pull/27#discussion_r202688734","pull_request_url":"https://api.github.com/repos/media-network/media-webapp/pulls/27","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/media-network/media-webapp/pulls/comments/202688734"},"html":{"href":"https://github.com/media-network/media-webapp/pull/27#discussion_r202688734"},"pull_request":{"href":"https://api.github.com/repos/media-network/media-webapp/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/media-network/media-webapp/pulls/27","id":201642528,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNjQyNTI4","html_url":"https://github.com/media-network/media-webapp/pull/27","diff_url":"https://github.com/media-network/media-webapp/pull/27.diff","patch_url":"https://github.com/media-network/media-webapp/pull/27.patch","issue_url":"https://api.github.com/repos/media-network/media-webapp/issues/27","number":27,"state":"open","locked":false,"title":"Feature/sub routes","user":{"login":"longlh","id":6048031,"node_id":"MDQ6VXNlcjYwNDgwMzE=","avatar_url":"https://avatars3.githubusercontent.com/u/6048031?v=4","gravatar_id":"","url":"https://api.github.com/users/longlh","html_url":"https://github.com/longlh","followers_url":"https://api.github.com/users/longlh/followers","following_url":"https://api.github.com/users/longlh/following{/other_user}","gists_url":"https://api.github.com/users/longlh/gists{/gist_id}","starred_url":"https://api.github.com/users/longlh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longlh/subscriptions","organizations_url":"https://api.github.com/users/longlh/orgs","repos_url":"https://api.github.com/users/longlh/repos","events_url":"https://api.github.com/users/longlh/events{/privacy}","received_events_url":"https://api.github.com/users/longlh/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-16T13:45:49Z","updated_at":"2018-07-16T13:49:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"589b43e47931851d6c6931277d4cfbf159ba269a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/media-network/media-webapp/pulls/27/commits","review_comments_url":"https://api.github.com/repos/media-network/media-webapp/pulls/27/comments","review_comment_url":"https://api.github.com/repos/media-network/media-webapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/media-network/media-webapp/issues/27/comments","statuses_url":"https://api.github.com/repos/media-network/media-webapp/statuses/daf03508c2146692fe995037aa01019374280e69","head":{"label":"media-network:feature/sub-routes","ref":"feature/sub-routes","sha":"daf03508c2146692fe995037aa01019374280e69","user":{"login":"media-network","id":30035863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDM1ODYz","avatar_url":"https://avatars3.githubusercontent.com/u/30035863?v=4","gravatar_id":"","url":"https://api.github.com/users/media-network","html_url":"https://github.com/media-network","followers_url":"https://api.github.com/users/media-network/followers","following_url":"https://api.github.com/users/media-network/following{/other_user}","gists_url":"https://api.github.com/users/media-network/gists{/gist_id}","starred_url":"https://api.github.com/users/media-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/media-network/subscriptions","organizations_url":"https://api.github.com/users/media-network/orgs","repos_url":"https://api.github.com/users/media-network/repos","events_url":"https://api.github.com/users/media-network/events{/privacy}","received_events_url":"https://api.github.com/users/media-network/received_events","type":"Organization","site_admin":false},"repo":{"id":108797878,"node_id":"MDEwOlJlcG9zaXRvcnkxMDg3OTc4Nzg=","name":"media-webapp","full_name":"media-network/media-webapp","owner":{"login":"media-network","id":30035863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDM1ODYz","avatar_url":"https://avatars3.githubusercontent.com/u/30035863?v=4","gravatar_id":"","url":"https://api.github.com/users/media-network","html_url":"https://github.com/media-network","followers_url":"https://api.github.com/users/media-network/followers","following_url":"https://api.github.com/users/media-network/following{/other_user}","gists_url":"https://api.github.com/users/media-network/gists{/gist_id}","starred_url":"https://api.github.com/users/media-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/media-network/subscriptions","organizations_url":"https://api.github.com/users/media-network/orgs","repos_url":"https://api.github.com/users/media-network/repos","events_url":"https://api.github.com/users/media-network/events{/privacy}","received_events_url":"https://api.github.com/users/media-network/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/media-network/media-webapp","description":"A web app that allows tenants register and configure their media-on-demand presets. ","fork":false,"url":"https://api.github.com/repos/media-network/media-webapp","forks_url":"https://api.github.com/repos/media-network/media-webapp/forks","keys_url":"https://api.github.com/repos/media-network/media-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/media-network/media-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/media-network/media-webapp/teams","hooks_url":"https://api.github.com/repos/media-network/media-webapp/hooks","issue_events_url":"https://api.github.com/repos/media-network/media-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/media-network/media-webapp/events","assignees_url":"https://api.github.com/repos/media-network/media-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/media-network/media-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/media-network/media-webapp/tags","blobs_url":"https://api.github.com/repos/media-network/media-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/media-network/media-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/media-network/media-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/media-network/media-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/media-network/media-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/media-network/media-webapp/languages","stargazers_url":"https://api.github.com/repos/media-network/media-webapp/stargazers","contributors_url":"https://api.github.com/repos/media-network/media-webapp/contributors","subscribers_url":"https://api.github.com/repos/media-network/media-webapp/subscribers","subscription_url":"https://api.github.com/repos/media-network/media-webapp/subscription","commits_url":"https://api.github.com/repos/media-network/media-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/media-network/media-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/media-network/media-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/media-network/media-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/media-network/media-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/media-network/media-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/media-network/media-webapp/merges","archive_url":"https://api.github.com/repos/media-network/media-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/media-network/media-webapp/downloads","issues_url":"https://api.github.com/repos/media-network/media-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/media-network/media-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/media-network/media-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/media-network/media-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/media-network/media-webapp/labels{/name}","releases_url":"https://api.github.com/repos/media-network/media-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/media-network/media-webapp/deployments","created_at":"2017-10-30T03:34:37Z","updated_at":"2018-07-16T13:32:29Z","pushed_at":"2018-07-16T13:45:50Z","git_url":"git://github.com/media-network/media-webapp.git","ssh_url":"git@github.com:media-network/media-webapp.git","clone_url":"https://github.com/media-network/media-webapp.git","svn_url":"https://github.com/media-network/media-webapp","homepage":"http://medianetwork.io","size":2159,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"media-network:develop","ref":"develop","sha":"c1bd4b16b3f2e74aa2964f613d2613c372c76f82","user":{"login":"media-network","id":30035863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDM1ODYz","avatar_url":"https://avatars3.githubusercontent.com/u/30035863?v=4","gravatar_id":"","url":"https://api.github.com/users/media-network","html_url":"https://github.com/media-network","followers_url":"https://api.github.com/users/media-network/followers","following_url":"https://api.github.com/users/media-network/following{/other_user}","gists_url":"https://api.github.com/users/media-network/gists{/gist_id}","starred_url":"https://api.github.com/users/media-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/media-network/subscriptions","organizations_url":"https://api.github.com/users/media-network/orgs","repos_url":"https://api.github.com/users/media-network/repos","events_url":"https://api.github.com/users/media-network/events{/privacy}","received_events_url":"https://api.github.com/users/media-network/received_events","type":"Organization","site_admin":false},"repo":{"id":108797878,"node_id":"MDEwOlJlcG9zaXRvcnkxMDg3OTc4Nzg=","name":"media-webapp","full_name":"media-network/media-webapp","owner":{"login":"media-network","id":30035863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDM1ODYz","avatar_url":"https://avatars3.githubusercontent.com/u/30035863?v=4","gravatar_id":"","url":"https://api.github.com/users/media-network","html_url":"https://github.com/media-network","followers_url":"https://api.github.com/users/media-network/followers","following_url":"https://api.github.com/users/media-network/following{/other_user}","gists_url":"https://api.github.com/users/media-network/gists{/gist_id}","starred_url":"https://api.github.com/users/media-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/media-network/subscriptions","organizations_url":"https://api.github.com/users/media-network/orgs","repos_url":"https://api.github.com/users/media-network/repos","events_url":"https://api.github.com/users/media-network/events{/privacy}","received_events_url":"https://api.github.com/users/media-network/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/media-network/media-webapp","description":"A web app that allows tenants register and configure their media-on-demand presets. ","fork":false,"url":"https://api.github.com/repos/media-network/media-webapp","forks_url":"https://api.github.com/repos/media-network/media-webapp/forks","keys_url":"https://api.github.com/repos/media-network/media-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/media-network/media-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/media-network/media-webapp/teams","hooks_url":"https://api.github.com/repos/media-network/media-webapp/hooks","issue_events_url":"https://api.github.com/repos/media-network/media-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/media-network/media-webapp/events","assignees_url":"https://api.github.com/repos/media-network/media-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/media-network/media-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/media-network/media-webapp/tags","blobs_url":"https://api.github.com/repos/media-network/media-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/media-network/media-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/media-network/media-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/media-network/media-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/media-network/media-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/media-network/media-webapp/languages","stargazers_url":"https://api.github.com/repos/media-network/media-webapp/stargazers","contributors_url":"https://api.github.com/repos/media-network/media-webapp/contributors","subscribers_url":"https://api.github.com/repos/media-network/media-webapp/subscribers","subscription_url":"https://api.github.com/repos/media-network/media-webapp/subscription","commits_url":"https://api.github.com/repos/media-network/media-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/media-network/media-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/media-network/media-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/media-network/media-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/media-network/media-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/media-network/media-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/media-network/media-webapp/merges","archive_url":"https://api.github.com/repos/media-network/media-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/media-network/media-webapp/downloads","issues_url":"https://api.github.com/repos/media-network/media-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/media-network/media-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/media-network/media-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/media-network/media-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/media-network/media-webapp/labels{/name}","releases_url":"https://api.github.com/repos/media-network/media-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/media-network/media-webapp/deployments","created_at":"2017-10-30T03:34:37Z","updated_at":"2018-07-16T13:32:29Z","pushed_at":"2018-07-16T13:45:50Z","git_url":"git://github.com/media-network/media-webapp.git","ssh_url":"git@github.com:media-network/media-webapp.git","clone_url":"https://github.com/media-network/media-webapp.git","svn_url":"https://github.com/media-network/media-webapp","homepage":"http://medianetwork.io","size":2159,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/media-network/media-webapp/pulls/27"},"html":{"href":"https://github.com/media-network/media-webapp/pull/27"},"issue":{"href":"https://api.github.com/repos/media-network/media-webapp/issues/27"},"comments":{"href":"https://api.github.com/repos/media-network/media-webapp/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/media-network/media-webapp/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/media-network/media-webapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/media-network/media-webapp/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/media-network/media-webapp/statuses/daf03508c2146692fe995037aa01019374280e69"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}