{"action":"created","comment":{"url":"https://api.github.com/repos/pkp/pkp-lib/pulls/comments/173124483","pull_request_review_id":102258183,"id":173124483,"diff_hunk":"@@ -275,6 +275,15 @@ function installSettings($contextId, $filename) {\n \t\t\t\t$area = $navigationMenuNode->getAttribute('area');\n \n \t\t\t\t$navigationMenu = null;\n+\n+\t\t\t\t// Check if the given area has a NM attached.\n+\t\t\t\t// If it does the NM is not being processed and a warning is being thrown\n+\t\t\t\t$navigationMenusWithArea = $this->getByArea($contextId, $area)->toArray();\n+\t\t\t\tif (count($navigationMenusWithArea) != 0) {\n+\t\t\t\t\terror_log(\"WARNING: The NavigationMenu (ContextId: $contextId, Title: $title, Area: $area) will be skipped because the specified area has already a NavigationMenu attached.\");","path":"classes/navigationMenu/NavigationMenuDAO.inc.php","position":18,"original_position":18,"commit_id":"d6690aab8725ff803df5eefff8428e671c471e35","original_commit_id":"d6690aab8725ff803df5eefff8428e671c471e35","user":{"login":"NateWr","id":2306629,"avatar_url":"https://avatars2.githubusercontent.com/u/2306629?v=4","gravatar_id":"","url":"https://api.github.com/users/NateWr","html_url":"https://github.com/NateWr","followers_url":"https://api.github.com/users/NateWr/followers","following_url":"https://api.github.com/users/NateWr/following{/other_user}","gists_url":"https://api.github.com/users/NateWr/gists{/gist_id}","starred_url":"https://api.github.com/users/NateWr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NateWr/subscriptions","organizations_url":"https://api.github.com/users/NateWr/orgs","repos_url":"https://api.github.com/users/NateWr/repos","events_url":"https://api.github.com/users/NateWr/events{/privacy}","received_events_url":"https://api.github.com/users/NateWr/received_events","type":"User","site_admin":false},"body":"@defstat so my understanding is that when the CLI is being used, we should report this out. But otherwise no need to log it to the error log.","created_at":"2018-03-08T10:50:40Z","updated_at":"2018-03-08T10:50:40Z","html_url":"https://github.com/pkp/pkp-lib/pull/3382#discussion_r173124483","pull_request_url":"https://api.github.com/repos/pkp/pkp-lib/pulls/3382","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pkp/pkp-lib/pulls/comments/173124483"},"html":{"href":"https://github.com/pkp/pkp-lib/pull/3382#discussion_r173124483"},"pull_request":{"href":"https://api.github.com/repos/pkp/pkp-lib/pulls/3382"}},"in_reply_to_id":172540272},"pull_request":{"url":"https://api.github.com/repos/pkp/pkp-lib/pulls/3382","id":169158749,"html_url":"https://github.com/pkp/pkp-lib/pull/3382","diff_url":"https://github.com/pkp/pkp-lib/pull/3382.diff","patch_url":"https://github.com/pkp/pkp-lib/pull/3382.patch","issue_url":"https://api.github.com/repos/pkp/pkp-lib/issues/3382","number":3382,"state":"open","locked":false,"title":"[pkp-lib] #3287 Update NM titles if not in area","user":{"login":"defstat","id":560456,"avatar_url":"https://avatars1.githubusercontent.com/u/560456?v=4","gravatar_id":"","url":"https://api.github.com/users/defstat","html_url":"https://github.com/defstat","followers_url":"https://api.github.com/users/defstat/followers","following_url":"https://api.github.com/users/defstat/following{/other_user}","gists_url":"https://api.github.com/users/defstat/gists{/gist_id}","starred_url":"https://api.github.com/users/defstat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defstat/subscriptions","organizations_url":"https://api.github.com/users/defstat/orgs","repos_url":"https://api.github.com/users/defstat/repos","events_url":"https://api.github.com/users/defstat/events{/privacy}","received_events_url":"https://api.github.com/users/defstat/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-14T16:31:24Z","updated_at":"2018-03-08T10:50:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd5b266fe237298a7dee90e1e6695fd8a5420681","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pkp/pkp-lib/pulls/3382/commits","review_comments_url":"https://api.github.com/repos/pkp/pkp-lib/pulls/3382/comments","review_comment_url":"https://api.github.com/repos/pkp/pkp-lib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pkp/pkp-lib/issues/3382/comments","statuses_url":"https://api.github.com/repos/pkp/pkp-lib/statuses/d6690aab8725ff803df5eefff8428e671c471e35","head":{"label":"defstat:i3287-update-nm-titles-if-not-in-area","ref":"i3287-update-nm-titles-if-not-in-area","sha":"d6690aab8725ff803df5eefff8428e671c471e35","user":{"login":"defstat","id":560456,"avatar_url":"https://avatars1.githubusercontent.com/u/560456?v=4","gravatar_id":"","url":"https://api.github.com/users/defstat","html_url":"https://github.com/defstat","followers_url":"https://api.github.com/users/defstat/followers","following_url":"https://api.github.com/users/defstat/following{/other_user}","gists_url":"https://api.github.com/users/defstat/gists{/gist_id}","starred_url":"https://api.github.com/users/defstat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defstat/subscriptions","organizations_url":"https://api.github.com/users/defstat/orgs","repos_url":"https://api.github.com/users/defstat/repos","events_url":"https://api.github.com/users/defstat/events{/privacy}","received_events_url":"https://api.github.com/users/defstat/received_events","type":"User","site_admin":false},"repo":{"id":71273575,"name":"pkp-lib","full_name":"defstat/pkp-lib","owner":{"login":"defstat","id":560456,"avatar_url":"https://avatars1.githubusercontent.com/u/560456?v=4","gravatar_id":"","url":"https://api.github.com/users/defstat","html_url":"https://github.com/defstat","followers_url":"https://api.github.com/users/defstat/followers","following_url":"https://api.github.com/users/defstat/following{/other_user}","gists_url":"https://api.github.com/users/defstat/gists{/gist_id}","starred_url":"https://api.github.com/users/defstat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defstat/subscriptions","organizations_url":"https://api.github.com/users/defstat/orgs","repos_url":"https://api.github.com/users/defstat/repos","events_url":"https://api.github.com/users/defstat/events{/privacy}","received_events_url":"https://api.github.com/users/defstat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/defstat/pkp-lib","description":"PKP Web Application Library","fork":true,"url":"https://api.github.com/repos/defstat/pkp-lib","forks_url":"https://api.github.com/repos/defstat/pkp-lib/forks","keys_url":"https://api.github.com/repos/defstat/pkp-lib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/defstat/pkp-lib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/defstat/pkp-lib/teams","hooks_url":"https://api.github.com/repos/defstat/pkp-lib/hooks","issue_events_url":"https://api.github.com/repos/defstat/pkp-lib/issues/events{/number}","events_url":"https://api.github.com/repos/defstat/pkp-lib/events","assignees_url":"https://api.github.com/repos/defstat/pkp-lib/assignees{/user}","branches_url":"https://api.github.com/repos/defstat/pkp-lib/branches{/branch}","tags_url":"https://api.github.com/repos/defstat/pkp-lib/tags","blobs_url":"https://api.github.com/repos/defstat/pkp-lib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/defstat/pkp-lib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/defstat/pkp-lib/git/refs{/sha}","trees_url":"https://api.github.com/repos/defstat/pkp-lib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/defstat/pkp-lib/statuses/{sha}","languages_url":"https://api.github.com/repos/defstat/pkp-lib/languages","stargazers_url":"https://api.github.com/repos/defstat/pkp-lib/stargazers","contributors_url":"https://api.github.com/repos/defstat/pkp-lib/contributors","subscribers_url":"https://api.github.com/repos/defstat/pkp-lib/subscribers","subscription_url":"https://api.github.com/repos/defstat/pkp-lib/subscription","commits_url":"https://api.github.com/repos/defstat/pkp-lib/commits{/sha}","git_commits_url":"https://api.github.com/repos/defstat/pkp-lib/git/commits{/sha}","comments_url":"https://api.github.com/repos/defstat/pkp-lib/comments{/number}","issue_comment_url":"https://api.github.com/repos/defstat/pkp-lib/issues/comments{/number}","contents_url":"https://api.github.com/repos/defstat/pkp-lib/contents/{+path}","compare_url":"https://api.github.com/repos/defstat/pkp-lib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/defstat/pkp-lib/merges","archive_url":"https://api.github.com/repos/defstat/pkp-lib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/defstat/pkp-lib/downloads","issues_url":"https://api.github.com/repos/defstat/pkp-lib/issues{/number}","pulls_url":"https://api.github.com/repos/defstat/pkp-lib/pulls{/number}","milestones_url":"https://api.github.com/repos/defstat/pkp-lib/milestones{/number}","notifications_url":"https://api.github.com/repos/defstat/pkp-lib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/defstat/pkp-lib/labels{/name}","releases_url":"https://api.github.com/repos/defstat/pkp-lib/releases{/id}","deployments_url":"https://api.github.com/repos/defstat/pkp-lib/deployments","created_at":"2016-10-18T17:27:54Z","updated_at":"2016-10-18T17:28:01Z","pushed_at":"2018-03-05T15:39:30Z","git_url":"git://github.com/defstat/pkp-lib.git","ssh_url":"git@github.com:defstat/pkp-lib.git","clone_url":"https://github.com/defstat/pkp-lib.git","svn_url":"https://github.com/defstat/pkp-lib","homepage":"http://pkp.sfu.ca","size":65720,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pkp:master","ref":"master","sha":"d978afa5f3643e5d7e8f1d99eaa679b20f38519a","user":{"login":"pkp","id":130896,"avatar_url":"https://avatars3.githubusercontent.com/u/130896?v=4","gravatar_id":"","url":"https://api.github.com/users/pkp","html_url":"https://github.com/pkp","followers_url":"https://api.github.com/users/pkp/followers","following_url":"https://api.github.com/users/pkp/following{/other_user}","gists_url":"https://api.github.com/users/pkp/gists{/gist_id}","starred_url":"https://api.github.com/users/pkp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkp/subscriptions","organizations_url":"https://api.github.com/users/pkp/orgs","repos_url":"https://api.github.com/users/pkp/repos","events_url":"https://api.github.com/users/pkp/events{/privacy}","received_events_url":"https://api.github.com/users/pkp/received_events","type":"Organization","site_admin":false},"repo":{"id":316712,"name":"pkp-lib","full_name":"pkp/pkp-lib","owner":{"login":"pkp","id":130896,"avatar_url":"https://avatars3.githubusercontent.com/u/130896?v=4","gravatar_id":"","url":"https://api.github.com/users/pkp","html_url":"https://github.com/pkp","followers_url":"https://api.github.com/users/pkp/followers","following_url":"https://api.github.com/users/pkp/following{/other_user}","gists_url":"https://api.github.com/users/pkp/gists{/gist_id}","starred_url":"https://api.github.com/users/pkp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkp/subscriptions","organizations_url":"https://api.github.com/users/pkp/orgs","repos_url":"https://api.github.com/users/pkp/repos","events_url":"https://api.github.com/users/pkp/events{/privacy}","received_events_url":"https://api.github.com/users/pkp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pkp/pkp-lib","description":"PKP Web Application Library","fork":false,"url":"https://api.github.com/repos/pkp/pkp-lib","forks_url":"https://api.github.com/repos/pkp/pkp-lib/forks","keys_url":"https://api.github.com/repos/pkp/pkp-lib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pkp/pkp-lib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pkp/pkp-lib/teams","hooks_url":"https://api.github.com/repos/pkp/pkp-lib/hooks","issue_events_url":"https://api.github.com/repos/pkp/pkp-lib/issues/events{/number}","events_url":"https://api.github.com/repos/pkp/pkp-lib/events","assignees_url":"https://api.github.com/repos/pkp/pkp-lib/assignees{/user}","branches_url":"https://api.github.com/repos/pkp/pkp-lib/branches{/branch}","tags_url":"https://api.github.com/repos/pkp/pkp-lib/tags","blobs_url":"https://api.github.com/repos/pkp/pkp-lib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pkp/pkp-lib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pkp/pkp-lib/git/refs{/sha}","trees_url":"https://api.github.com/repos/pkp/pkp-lib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pkp/pkp-lib/statuses/{sha}","languages_url":"https://api.github.com/repos/pkp/pkp-lib/languages","stargazers_url":"https://api.github.com/repos/pkp/pkp-lib/stargazers","contributors_url":"https://api.github.com/repos/pkp/pkp-lib/contributors","subscribers_url":"https://api.github.com/repos/pkp/pkp-lib/subscribers","subscription_url":"https://api.github.com/repos/pkp/pkp-lib/subscription","commits_url":"https://api.github.com/repos/pkp/pkp-lib/commits{/sha}","git_commits_url":"https://api.github.com/repos/pkp/pkp-lib/git/commits{/sha}","comments_url":"https://api.github.com/repos/pkp/pkp-lib/comments{/number}","issue_comment_url":"https://api.github.com/repos/pkp/pkp-lib/issues/comments{/number}","contents_url":"https://api.github.com/repos/pkp/pkp-lib/contents/{+path}","compare_url":"https://api.github.com/repos/pkp/pkp-lib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pkp/pkp-lib/merges","archive_url":"https://api.github.com/repos/pkp/pkp-lib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pkp/pkp-lib/downloads","issues_url":"https://api.github.com/repos/pkp/pkp-lib/issues{/number}","pulls_url":"https://api.github.com/repos/pkp/pkp-lib/pulls{/number}","milestones_url":"https://api.github.com/repos/pkp/pkp-lib/milestones{/number}","notifications_url":"https://api.github.com/repos/pkp/pkp-lib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pkp/pkp-lib/labels{/name}","releases_url":"https://api.github.com/repos/pkp/pkp-lib/releases{/id}","deployments_url":"https://api.github.com/repos/pkp/pkp-lib/deployments","created_at":"2009-09-24T19:30:31Z","updated_at":"2018-03-05T17:21:51Z","pushed_at":"2018-03-06T18:13:09Z","git_url":"git://github.com/pkp/pkp-lib.git","ssh_url":"git@github.com:pkp/pkp-lib.git","clone_url":"https://github.com/pkp/pkp-lib.git","svn_url":"https://github.com/pkp/pkp-lib","homepage":"http://pkp.sfu.ca","size":66137,"stargazers_count":113,"watchers_count":113,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":262,"mirror_url":null,"archived":false,"open_issues_count":479,"license":null,"forks":262,"open_issues":479,"watchers":113,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pkp/pkp-lib/pulls/3382"},"html":{"href":"https://github.com/pkp/pkp-lib/pull/3382"},"issue":{"href":"https://api.github.com/repos/pkp/pkp-lib/issues/3382"},"comments":{"href":"https://api.github.com/repos/pkp/pkp-lib/issues/3382/comments"},"review_comments":{"href":"https://api.github.com/repos/pkp/pkp-lib/pulls/3382/comments"},"review_comment":{"href":"https://api.github.com/repos/pkp/pkp-lib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pkp/pkp-lib/pulls/3382/commits"},"statuses":{"href":"https://api.github.com/repos/pkp/pkp-lib/statuses/d6690aab8725ff803df5eefff8428e671c471e35"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"NateWr"}}