{"action":"created","comment":{"url":"https://api.github.com/repos/entando/app-builder/pulls/comments/196065131","pull_request_review_id":129546894,"id":196065131,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjA2NTEzMQ==","diff_hunk":"@@ -95,6 +95,7 @@ export const getPageTreePages = createSelector(\n       .map((pageCode) => {\n         const isEmpty = !(pageChildren[pageCode] && pageChildren[pageCode].length);\n         let hasPublishedChildren = false;\n+        const parentStatus = pages[pageCode].parentCode && pages[pages[pageCode].parentCode].status;","path":"src/state/pages/selectors.js","position":4,"original_position":4,"commit_id":"fbe3e4efeb1584b9b9f4424a26d2ed9c42e54988","original_commit_id":"fbe3e4efeb1584b9b9f4424a26d2ed9c42e54988","user":{"login":"alessioscalici","id":8630331,"node_id":"MDQ6VXNlcjg2MzAzMzE=","avatar_url":"https://avatars3.githubusercontent.com/u/8630331?v=4","gravatar_id":"","url":"https://api.github.com/users/alessioscalici","html_url":"https://github.com/alessioscalici","followers_url":"https://api.github.com/users/alessioscalici/followers","following_url":"https://api.github.com/users/alessioscalici/following{/other_user}","gists_url":"https://api.github.com/users/alessioscalici/gists{/gist_id}","starred_url":"https://api.github.com/users/alessioscalici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alessioscalici/subscriptions","organizations_url":"https://api.github.com/users/alessioscalici/orgs","repos_url":"https://api.github.com/users/alessioscalici/repos","events_url":"https://api.github.com/users/alessioscalici/events{/privacy}","received_events_url":"https://api.github.com/users/alessioscalici/received_events","type":"User","site_admin":false},"body":"Are you sure `pages[pageCode]` and `pages[pages[pageCode].parentCode]` can't be undefined here? Wouldn't it be better to use a more forgiving approach, like using lodash `get` and checking if the result is defined?","created_at":"2018-06-18T12:52:14Z","updated_at":"2018-06-18T12:54:08Z","html_url":"https://github.com/entando/app-builder/pull/346#discussion_r196065131","pull_request_url":"https://api.github.com/repos/entando/app-builder/pulls/346","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/entando/app-builder/pulls/comments/196065131"},"html":{"href":"https://github.com/entando/app-builder/pull/346#discussion_r196065131"},"pull_request":{"href":"https://api.github.com/repos/entando/app-builder/pulls/346"}}},"pull_request":{"url":"https://api.github.com/repos/entando/app-builder/pulls/346","id":195473967,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NDczOTY3","html_url":"https://github.com/entando/app-builder/pull/346","diff_url":"https://github.com/entando/app-builder/pull/346.diff","patch_url":"https://github.com/entando/app-builder/pull/346.patch","issue_url":"https://api.github.com/repos/entando/app-builder/issues/346","number":346,"state":"open","locked":false,"title":"[5.0.1] EN-1598-disable not usable action","user":{"login":"fedelocci","id":12064327,"node_id":"MDQ6VXNlcjEyMDY0MzI3","avatar_url":"https://avatars0.githubusercontent.com/u/12064327?v=4","gravatar_id":"","url":"https://api.github.com/users/fedelocci","html_url":"https://github.com/fedelocci","followers_url":"https://api.github.com/users/fedelocci/followers","following_url":"https://api.github.com/users/fedelocci/following{/other_user}","gists_url":"https://api.github.com/users/fedelocci/gists{/gist_id}","starred_url":"https://api.github.com/users/fedelocci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedelocci/subscriptions","organizations_url":"https://api.github.com/users/fedelocci/orgs","repos_url":"https://api.github.com/users/fedelocci/repos","events_url":"https://api.github.com/users/fedelocci/events{/privacy}","received_events_url":"https://api.github.com/users/fedelocci/received_events","type":"User","site_admin":false},"body":" fix behavior publish action","created_at":"2018-06-18T09:55:23Z","updated_at":"2018-06-18T12:54:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc9c4f5797934709eb6b5a12c7669d0528aed967","assignee":null,"assignees":[],"requested_reviewers":[{"login":"alepintus","id":25816339,"node_id":"MDQ6VXNlcjI1ODE2MzM5","avatar_url":"https://avatars3.githubusercontent.com/u/25816339?v=4","gravatar_id":"","url":"https://api.github.com/users/alepintus","html_url":"https://github.com/alepintus","followers_url":"https://api.github.com/users/alepintus/followers","following_url":"https://api.github.com/users/alepintus/following{/other_user}","gists_url":"https://api.github.com/users/alepintus/gists{/gist_id}","starred_url":"https://api.github.com/users/alepintus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alepintus/subscriptions","organizations_url":"https://api.github.com/users/alepintus/orgs","repos_url":"https://api.github.com/users/alepintus/repos","events_url":"https://api.github.com/users/alepintus/events{/privacy}","received_events_url":"https://api.github.com/users/alepintus/received_events","type":"User","site_admin":false},{"login":"nicpuddu","id":28562595,"node_id":"MDQ6VXNlcjI4NTYyNTk1","avatar_url":"https://avatars2.githubusercontent.com/u/28562595?v=4","gravatar_id":"","url":"https://api.github.com/users/nicpuddu","html_url":"https://github.com/nicpuddu","followers_url":"https://api.github.com/users/nicpuddu/followers","following_url":"https://api.github.com/users/nicpuddu/following{/other_user}","gists_url":"https://api.github.com/users/nicpuddu/gists{/gist_id}","starred_url":"https://api.github.com/users/nicpuddu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicpuddu/subscriptions","organizations_url":"https://api.github.com/users/nicpuddu/orgs","repos_url":"https://api.github.com/users/nicpuddu/repos","events_url":"https://api.github.com/users/nicpuddu/events{/privacy}","received_events_url":"https://api.github.com/users/nicpuddu/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/entando/app-builder/pulls/346/commits","review_comments_url":"https://api.github.com/repos/entando/app-builder/pulls/346/comments","review_comment_url":"https://api.github.com/repos/entando/app-builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/entando/app-builder/issues/346/comments","statuses_url":"https://api.github.com/repos/entando/app-builder/statuses/fbe3e4efeb1584b9b9f4424a26d2ed9c42e54988","head":{"label":"entando:EN-1598-disable-not-usable-actions","ref":"EN-1598-disable-not-usable-actions","sha":"fbe3e4efeb1584b9b9f4424a26d2ed9c42e54988","user":{"login":"entando","id":673103,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3MzEwMw==","avatar_url":"https://avatars2.githubusercontent.com/u/673103?v=4","gravatar_id":"","url":"https://api.github.com/users/entando","html_url":"https://github.com/entando","followers_url":"https://api.github.com/users/entando/followers","following_url":"https://api.github.com/users/entando/following{/other_user}","gists_url":"https://api.github.com/users/entando/gists{/gist_id}","starred_url":"https://api.github.com/users/entando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entando/subscriptions","organizations_url":"https://api.github.com/users/entando/orgs","repos_url":"https://api.github.com/users/entando/repos","events_url":"https://api.github.com/users/entando/events{/privacy}","received_events_url":"https://api.github.com/users/entando/received_events","type":"Organization","site_admin":false},"repo":{"id":118141962,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgxNDE5NjI=","name":"app-builder","full_name":"entando/app-builder","owner":{"login":"entando","id":673103,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3MzEwMw==","avatar_url":"https://avatars2.githubusercontent.com/u/673103?v=4","gravatar_id":"","url":"https://api.github.com/users/entando","html_url":"https://github.com/entando","followers_url":"https://api.github.com/users/entando/followers","following_url":"https://api.github.com/users/entando/following{/other_user}","gists_url":"https://api.github.com/users/entando/gists{/gist_id}","starred_url":"https://api.github.com/users/entando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entando/subscriptions","organizations_url":"https://api.github.com/users/entando/orgs","repos_url":"https://api.github.com/users/entando/repos","events_url":"https://api.github.com/users/entando/events{/privacy}","received_events_url":"https://api.github.com/users/entando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/entando/app-builder","description":"The Entando app-builder","fork":false,"url":"https://api.github.com/repos/entando/app-builder","forks_url":"https://api.github.com/repos/entando/app-builder/forks","keys_url":"https://api.github.com/repos/entando/app-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/entando/app-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/entando/app-builder/teams","hooks_url":"https://api.github.com/repos/entando/app-builder/hooks","issue_events_url":"https://api.github.com/repos/entando/app-builder/issues/events{/number}","events_url":"https://api.github.com/repos/entando/app-builder/events","assignees_url":"https://api.github.com/repos/entando/app-builder/assignees{/user}","branches_url":"https://api.github.com/repos/entando/app-builder/branches{/branch}","tags_url":"https://api.github.com/repos/entando/app-builder/tags","blobs_url":"https://api.github.com/repos/entando/app-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/entando/app-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/entando/app-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/entando/app-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/entando/app-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/entando/app-builder/languages","stargazers_url":"https://api.github.com/repos/entando/app-builder/stargazers","contributors_url":"https://api.github.com/repos/entando/app-builder/contributors","subscribers_url":"https://api.github.com/repos/entando/app-builder/subscribers","subscription_url":"https://api.github.com/repos/entando/app-builder/subscription","commits_url":"https://api.github.com/repos/entando/app-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/entando/app-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/entando/app-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/entando/app-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/entando/app-builder/contents/{+path}","compare_url":"https://api.github.com/repos/entando/app-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/entando/app-builder/merges","archive_url":"https://api.github.com/repos/entando/app-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/entando/app-builder/downloads","issues_url":"https://api.github.com/repos/entando/app-builder/issues{/number}","pulls_url":"https://api.github.com/repos/entando/app-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/entando/app-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/entando/app-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/entando/app-builder/labels{/name}","releases_url":"https://api.github.com/repos/entando/app-builder/releases{/id}","deployments_url":"https://api.github.com/repos/entando/app-builder/deployments","created_at":"2018-01-19T15:25:13Z","updated_at":"2018-06-18T12:49:04Z","pushed_at":"2018-06-18T12:49:04Z","git_url":"git://github.com/entando/app-builder.git","ssh_url":"git@github.com:entando/app-builder.git","clone_url":"https://github.com/entando/app-builder.git","svn_url":"https://github.com/entando/app-builder","homepage":"","size":2736,"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":2,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":2,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"entando:v5.0.1-release","ref":"v5.0.1-release","sha":"74c89ef506748746b71587772ccfe6e32ef1493c","user":{"login":"entando","id":673103,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3MzEwMw==","avatar_url":"https://avatars2.githubusercontent.com/u/673103?v=4","gravatar_id":"","url":"https://api.github.com/users/entando","html_url":"https://github.com/entando","followers_url":"https://api.github.com/users/entando/followers","following_url":"https://api.github.com/users/entando/following{/other_user}","gists_url":"https://api.github.com/users/entando/gists{/gist_id}","starred_url":"https://api.github.com/users/entando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entando/subscriptions","organizations_url":"https://api.github.com/users/entando/orgs","repos_url":"https://api.github.com/users/entando/repos","events_url":"https://api.github.com/users/entando/events{/privacy}","received_events_url":"https://api.github.com/users/entando/received_events","type":"Organization","site_admin":false},"repo":{"id":118141962,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgxNDE5NjI=","name":"app-builder","full_name":"entando/app-builder","owner":{"login":"entando","id":673103,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3MzEwMw==","avatar_url":"https://avatars2.githubusercontent.com/u/673103?v=4","gravatar_id":"","url":"https://api.github.com/users/entando","html_url":"https://github.com/entando","followers_url":"https://api.github.com/users/entando/followers","following_url":"https://api.github.com/users/entando/following{/other_user}","gists_url":"https://api.github.com/users/entando/gists{/gist_id}","starred_url":"https://api.github.com/users/entando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entando/subscriptions","organizations_url":"https://api.github.com/users/entando/orgs","repos_url":"https://api.github.com/users/entando/repos","events_url":"https://api.github.com/users/entando/events{/privacy}","received_events_url":"https://api.github.com/users/entando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/entando/app-builder","description":"The Entando app-builder","fork":false,"url":"https://api.github.com/repos/entando/app-builder","forks_url":"https://api.github.com/repos/entando/app-builder/forks","keys_url":"https://api.github.com/repos/entando/app-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/entando/app-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/entando/app-builder/teams","hooks_url":"https://api.github.com/repos/entando/app-builder/hooks","issue_events_url":"https://api.github.com/repos/entando/app-builder/issues/events{/number}","events_url":"https://api.github.com/repos/entando/app-builder/events","assignees_url":"https://api.github.com/repos/entando/app-builder/assignees{/user}","branches_url":"https://api.github.com/repos/entando/app-builder/branches{/branch}","tags_url":"https://api.github.com/repos/entando/app-builder/tags","blobs_url":"https://api.github.com/repos/entando/app-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/entando/app-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/entando/app-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/entando/app-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/entando/app-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/entando/app-builder/languages","stargazers_url":"https://api.github.com/repos/entando/app-builder/stargazers","contributors_url":"https://api.github.com/repos/entando/app-builder/contributors","subscribers_url":"https://api.github.com/repos/entando/app-builder/subscribers","subscription_url":"https://api.github.com/repos/entando/app-builder/subscription","commits_url":"https://api.github.com/repos/entando/app-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/entando/app-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/entando/app-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/entando/app-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/entando/app-builder/contents/{+path}","compare_url":"https://api.github.com/repos/entando/app-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/entando/app-builder/merges","archive_url":"https://api.github.com/repos/entando/app-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/entando/app-builder/downloads","issues_url":"https://api.github.com/repos/entando/app-builder/issues{/number}","pulls_url":"https://api.github.com/repos/entando/app-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/entando/app-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/entando/app-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/entando/app-builder/labels{/name}","releases_url":"https://api.github.com/repos/entando/app-builder/releases{/id}","deployments_url":"https://api.github.com/repos/entando/app-builder/deployments","created_at":"2018-01-19T15:25:13Z","updated_at":"2018-06-18T12:49:04Z","pushed_at":"2018-06-18T12:49:04Z","git_url":"git://github.com/entando/app-builder.git","ssh_url":"git@github.com:entando/app-builder.git","clone_url":"https://github.com/entando/app-builder.git","svn_url":"https://github.com/entando/app-builder","homepage":"","size":2736,"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":2,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":2,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/entando/app-builder/pulls/346"},"html":{"href":"https://github.com/entando/app-builder/pull/346"},"issue":{"href":"https://api.github.com/repos/entando/app-builder/issues/346"},"comments":{"href":"https://api.github.com/repos/entando/app-builder/issues/346/comments"},"review_comments":{"href":"https://api.github.com/repos/entando/app-builder/pulls/346/comments"},"review_comment":{"href":"https://api.github.com/repos/entando/app-builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/entando/app-builder/pulls/346/commits"},"statuses":{"href":"https://api.github.com/repos/entando/app-builder/statuses/fbe3e4efeb1584b9b9f4424a26d2ed9c42e54988"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"alessioscalici"}}