{"action":"opened","number":7819,"pull_request":{"url":"https://api.github.com/repos/concrete5/concrete5/pulls/7819","id":279901301,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc5OTAxMzAx","html_url":"https://github.com/concrete5/concrete5/pull/7819","diff_url":"https://github.com/concrete5/concrete5/pull/7819.diff","patch_url":"https://github.com/concrete5/concrete5/pull/7819.patch","issue_url":"https://api.github.com/repos/concrete5/concrete5/issues/7819","number":7819,"state":"open","locked":false,"title":"Check that the File author was not removed","user":{"login":"mlocati","id":928116,"node_id":"MDQ6VXNlcjkyODExNg==","avatar_url":"https://avatars3.githubusercontent.com/u/928116?v=4","gravatar_id":"","url":"https://api.github.com/users/mlocati","html_url":"https://github.com/mlocati","followers_url":"https://api.github.com/users/mlocati/followers","following_url":"https://api.github.com/users/mlocati/following{/other_user}","gists_url":"https://api.github.com/users/mlocati/gists{/gist_id}","starred_url":"https://api.github.com/users/mlocati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlocati/subscriptions","organizations_url":"https://api.github.com/users/mlocati/orgs","repos_url":"https://api.github.com/users/mlocati/repos","events_url":"https://api.github.com/users/mlocati/events{/privacy}","received_events_url":"https://api.github.com/users/mlocati/received_events","type":"User","site_admin":false},"body":"In case the `uID` field of the `Files` table points to a deleted user, we have an uncaught `EntityNotFoundException` exception: let's intercept this issue.\r\n\r\nPS: Let's also add the `getUser()` method (the author is already an instance of the User entity)\r\n\r\n","created_at":"2019-05-17T13:52:17Z","updated_at":"2019-05-17T13:52:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/concrete5/concrete5/pulls/7819/commits","review_comments_url":"https://api.github.com/repos/concrete5/concrete5/pulls/7819/comments","review_comment_url":"https://api.github.com/repos/concrete5/concrete5/pulls/comments{/number}","comments_url":"https://api.github.com/repos/concrete5/concrete5/issues/7819/comments","statuses_url":"https://api.github.com/repos/concrete5/concrete5/statuses/bc43dbd95dc834b31fc8fa6d15940d6498060b67","head":{"label":"mlocati:file-author-removed-getuser","ref":"file-author-removed-getuser","sha":"bc43dbd95dc834b31fc8fa6d15940d6498060b67","user":{"login":"mlocati","id":928116,"node_id":"MDQ6VXNlcjkyODExNg==","avatar_url":"https://avatars3.githubusercontent.com/u/928116?v=4","gravatar_id":"","url":"https://api.github.com/users/mlocati","html_url":"https://github.com/mlocati","followers_url":"https://api.github.com/users/mlocati/followers","following_url":"https://api.github.com/users/mlocati/following{/other_user}","gists_url":"https://api.github.com/users/mlocati/gists{/gist_id}","starred_url":"https://api.github.com/users/mlocati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlocati/subscriptions","organizations_url":"https://api.github.com/users/mlocati/orgs","repos_url":"https://api.github.com/users/mlocati/repos","events_url":"https://api.github.com/users/mlocati/events{/privacy}","received_events_url":"https://api.github.com/users/mlocati/received_events","type":"User","site_admin":false},"repo":{"id":19068220,"node_id":"MDEwOlJlcG9zaXRvcnkxOTA2ODIyMA==","name":"concrete5","full_name":"mlocati/concrete5","private":false,"owner":{"login":"mlocati","id":928116,"node_id":"MDQ6VXNlcjkyODExNg==","avatar_url":"https://avatars3.githubusercontent.com/u/928116?v=4","gravatar_id":"","url":"https://api.github.com/users/mlocati","html_url":"https://github.com/mlocati","followers_url":"https://api.github.com/users/mlocati/followers","following_url":"https://api.github.com/users/mlocati/following{/other_user}","gists_url":"https://api.github.com/users/mlocati/gists{/gist_id}","starred_url":"https://api.github.com/users/mlocati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlocati/subscriptions","organizations_url":"https://api.github.com/users/mlocati/orgs","repos_url":"https://api.github.com/users/mlocati/repos","events_url":"https://api.github.com/users/mlocati/events{/privacy}","received_events_url":"https://api.github.com/users/mlocati/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mlocati/concrete5","description":"My development fork of concrete5","fork":true,"url":"https://api.github.com/repos/mlocati/concrete5","forks_url":"https://api.github.com/repos/mlocati/concrete5/forks","keys_url":"https://api.github.com/repos/mlocati/concrete5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mlocati/concrete5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mlocati/concrete5/teams","hooks_url":"https://api.github.com/repos/mlocati/concrete5/hooks","issue_events_url":"https://api.github.com/repos/mlocati/concrete5/issues/events{/number}","events_url":"https://api.github.com/repos/mlocati/concrete5/events","assignees_url":"https://api.github.com/repos/mlocati/concrete5/assignees{/user}","branches_url":"https://api.github.com/repos/mlocati/concrete5/branches{/branch}","tags_url":"https://api.github.com/repos/mlocati/concrete5/tags","blobs_url":"https://api.github.com/repos/mlocati/concrete5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mlocati/concrete5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mlocati/concrete5/git/refs{/sha}","trees_url":"https://api.github.com/repos/mlocati/concrete5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mlocati/concrete5/statuses/{sha}","languages_url":"https://api.github.com/repos/mlocati/concrete5/languages","stargazers_url":"https://api.github.com/repos/mlocati/concrete5/stargazers","contributors_url":"https://api.github.com/repos/mlocati/concrete5/contributors","subscribers_url":"https://api.github.com/repos/mlocati/concrete5/subscribers","subscription_url":"https://api.github.com/repos/mlocati/concrete5/subscription","commits_url":"https://api.github.com/repos/mlocati/concrete5/commits{/sha}","git_commits_url":"https://api.github.com/repos/mlocati/concrete5/git/commits{/sha}","comments_url":"https://api.github.com/repos/mlocati/concrete5/comments{/number}","issue_comment_url":"https://api.github.com/repos/mlocati/concrete5/issues/comments{/number}","contents_url":"https://api.github.com/repos/mlocati/concrete5/contents/{+path}","compare_url":"https://api.github.com/repos/mlocati/concrete5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mlocati/concrete5/merges","archive_url":"https://api.github.com/repos/mlocati/concrete5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mlocati/concrete5/downloads","issues_url":"https://api.github.com/repos/mlocati/concrete5/issues{/number}","pulls_url":"https://api.github.com/repos/mlocati/concrete5/pulls{/number}","milestones_url":"https://api.github.com/repos/mlocati/concrete5/milestones{/number}","notifications_url":"https://api.github.com/repos/mlocati/concrete5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mlocati/concrete5/labels{/name}","releases_url":"https://api.github.com/repos/mlocati/concrete5/releases{/id}","deployments_url":"https://api.github.com/repos/mlocati/concrete5/deployments","created_at":"2014-04-23T12:09:20Z","updated_at":"2019-05-08T06:02:29Z","pushed_at":"2019-05-17T13:50:02Z","git_url":"git://github.com/mlocati/concrete5.git","ssh_url":"git@github.com:mlocati/concrete5.git","clone_url":"https://github.com/mlocati/concrete5.git","svn_url":"https://github.com/mlocati/concrete5","homepage":"https://github.com/concrete5/concrete5","size":113387,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"concrete5:develop","ref":"develop","sha":"308e0cfacac522dd39bc920b55be1ca5dd8d5633","user":{"login":"concrete5","id":657929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1NzkyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/657929?v=4","gravatar_id":"","url":"https://api.github.com/users/concrete5","html_url":"https://github.com/concrete5","followers_url":"https://api.github.com/users/concrete5/followers","following_url":"https://api.github.com/users/concrete5/following{/other_user}","gists_url":"https://api.github.com/users/concrete5/gists{/gist_id}","starred_url":"https://api.github.com/users/concrete5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concrete5/subscriptions","organizations_url":"https://api.github.com/users/concrete5/orgs","repos_url":"https://api.github.com/users/concrete5/repos","events_url":"https://api.github.com/users/concrete5/events{/privacy}","received_events_url":"https://api.github.com/users/concrete5/received_events","type":"Organization","site_admin":false},"repo":{"id":19040482,"node_id":"MDEwOlJlcG9zaXRvcnkxOTA0MDQ4Mg==","name":"concrete5","full_name":"concrete5/concrete5","private":false,"owner":{"login":"concrete5","id":657929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1NzkyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/657929?v=4","gravatar_id":"","url":"https://api.github.com/users/concrete5","html_url":"https://github.com/concrete5","followers_url":"https://api.github.com/users/concrete5/followers","following_url":"https://api.github.com/users/concrete5/following{/other_user}","gists_url":"https://api.github.com/users/concrete5/gists{/gist_id}","starred_url":"https://api.github.com/users/concrete5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concrete5/subscriptions","organizations_url":"https://api.github.com/users/concrete5/orgs","repos_url":"https://api.github.com/users/concrete5/repos","events_url":"https://api.github.com/users/concrete5/events{/privacy}","received_events_url":"https://api.github.com/users/concrete5/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/concrete5/concrete5","description":"Official repository for concrete5 development","fork":false,"url":"https://api.github.com/repos/concrete5/concrete5","forks_url":"https://api.github.com/repos/concrete5/concrete5/forks","keys_url":"https://api.github.com/repos/concrete5/concrete5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/concrete5/concrete5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/concrete5/concrete5/teams","hooks_url":"https://api.github.com/repos/concrete5/concrete5/hooks","issue_events_url":"https://api.github.com/repos/concrete5/concrete5/issues/events{/number}","events_url":"https://api.github.com/repos/concrete5/concrete5/events","assignees_url":"https://api.github.com/repos/concrete5/concrete5/assignees{/user}","branches_url":"https://api.github.com/repos/concrete5/concrete5/branches{/branch}","tags_url":"https://api.github.com/repos/concrete5/concrete5/tags","blobs_url":"https://api.github.com/repos/concrete5/concrete5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/concrete5/concrete5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/concrete5/concrete5/git/refs{/sha}","trees_url":"https://api.github.com/repos/concrete5/concrete5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/concrete5/concrete5/statuses/{sha}","languages_url":"https://api.github.com/repos/concrete5/concrete5/languages","stargazers_url":"https://api.github.com/repos/concrete5/concrete5/stargazers","contributors_url":"https://api.github.com/repos/concrete5/concrete5/contributors","subscribers_url":"https://api.github.com/repos/concrete5/concrete5/subscribers","subscription_url":"https://api.github.com/repos/concrete5/concrete5/subscription","commits_url":"https://api.github.com/repos/concrete5/concrete5/commits{/sha}","git_commits_url":"https://api.github.com/repos/concrete5/concrete5/git/commits{/sha}","comments_url":"https://api.github.com/repos/concrete5/concrete5/comments{/number}","issue_comment_url":"https://api.github.com/repos/concrete5/concrete5/issues/comments{/number}","contents_url":"https://api.github.com/repos/concrete5/concrete5/contents/{+path}","compare_url":"https://api.github.com/repos/concrete5/concrete5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/concrete5/concrete5/merges","archive_url":"https://api.github.com/repos/concrete5/concrete5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/concrete5/concrete5/downloads","issues_url":"https://api.github.com/repos/concrete5/concrete5/issues{/number}","pulls_url":"https://api.github.com/repos/concrete5/concrete5/pulls{/number}","milestones_url":"https://api.github.com/repos/concrete5/concrete5/milestones{/number}","notifications_url":"https://api.github.com/repos/concrete5/concrete5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/concrete5/concrete5/labels{/name}","releases_url":"https://api.github.com/repos/concrete5/concrete5/releases{/id}","deployments_url":"https://api.github.com/repos/concrete5/concrete5/deployments","created_at":"2014-04-22T18:12:28Z","updated_at":"2019-05-17T11:53:26Z","pushed_at":"2019-05-17T12:11:03Z","git_url":"git://github.com/concrete5/concrete5.git","ssh_url":"git@github.com:concrete5/concrete5.git","clone_url":"https://github.com/concrete5/concrete5.git","svn_url":"https://github.com/concrete5/concrete5","homepage":"https://www.concrete5.org","size":106488,"stargazers_count":589,"watchers_count":589,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":373,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":786,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":373,"open_issues":786,"watchers":589,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/concrete5/concrete5/pulls/7819"},"html":{"href":"https://github.com/concrete5/concrete5/pull/7819"},"issue":{"href":"https://api.github.com/repos/concrete5/concrete5/issues/7819"},"comments":{"href":"https://api.github.com/repos/concrete5/concrete5/issues/7819/comments"},"review_comments":{"href":"https://api.github.com/repos/concrete5/concrete5/pulls/7819/comments"},"review_comment":{"href":"https://api.github.com/repos/concrete5/concrete5/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/concrete5/concrete5/pulls/7819/commits"},"statuses":{"href":"https://api.github.com/repos/concrete5/concrete5/statuses/bc43dbd95dc834b31fc8fa6d15940d6498060b67"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":26,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"mlocati"}}