{"action":"created","comment":{"url":"https://api.github.com/repos/superdesk/web-publisher/pulls/comments/70808676","id":70808676,"diff_hunk":"@@ -115,6 +119,24 @@ public function updateAction(Request $request, $id)\n         return $this->handleView(View::create($form, 500));\n     }\n \n+    private function reactOnStatusChange($originalArticleStatus, $article)","path":"src/SWP/Bundle/ContentBundle/Controller/ArticleController.php","position":44,"original_position":26,"commit_id":"92e5dd8888ff5f9e818ee2a096ff7d85b17530e7","original_commit_id":"b7fc0716a4d4d10125377601e7cedc3e5c120dab","user":{"login":"djbrd-sourcefabric","id":17853717,"avatar_url":"https://avatars.githubusercontent.com/u/17853717?v=3","gravatar_id":"","url":"https://api.github.com/users/djbrd-sourcefabric","html_url":"https://github.com/djbrd-sourcefabric","followers_url":"https://api.github.com/users/djbrd-sourcefabric/followers","following_url":"https://api.github.com/users/djbrd-sourcefabric/following{/other_user}","gists_url":"https://api.github.com/users/djbrd-sourcefabric/gists{/gist_id}","starred_url":"https://api.github.com/users/djbrd-sourcefabric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djbrd-sourcefabric/subscriptions","organizations_url":"https://api.github.com/users/djbrd-sourcefabric/orgs","repos_url":"https://api.github.com/users/djbrd-sourcefabric/repos","events_url":"https://api.github.com/users/djbrd-sourcefabric/events{/privacy}","received_events_url":"https://api.github.com/users/djbrd-sourcefabric/received_events","type":"User","site_admin":false},"body":"For a more general, universal solution, you could add a doctrine entity listener","created_at":"2016-07-14T13:56:09Z","updated_at":"2016-07-14T13:56:09Z","html_url":"https://github.com/superdesk/web-publisher/pull/86#discussion_r70808676","pull_request_url":"https://api.github.com/repos/superdesk/web-publisher/pulls/86","_links":{"self":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/comments/70808676"},"html":{"href":"https://github.com/superdesk/web-publisher/pull/86#discussion_r70808676"},"pull_request":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/86"}}},"pull_request":{"url":"https://api.github.com/repos/superdesk/web-publisher/pulls/86","id":77314023,"html_url":"https://github.com/superdesk/web-publisher/pull/86","diff_url":"https://github.com/superdesk/web-publisher/pull/86.diff","patch_url":"https://github.com/superdesk/web-publisher/pull/86.patch","issue_url":"https://api.github.com/repos/superdesk/web-publisher/issues/86","number":86,"state":"open","locked":false,"title":"implement publishing workflow, provide publishing status checker service","user":{"login":"ahilles107","id":298610,"avatar_url":"https://avatars.githubusercontent.com/u/298610?v=3","gravatar_id":"","url":"https://api.github.com/users/ahilles107","html_url":"https://github.com/ahilles107","followers_url":"https://api.github.com/users/ahilles107/followers","following_url":"https://api.github.com/users/ahilles107/following{/other_user}","gists_url":"https://api.github.com/users/ahilles107/gists{/gist_id}","starred_url":"https://api.github.com/users/ahilles107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahilles107/subscriptions","organizations_url":"https://api.github.com/users/ahilles107/orgs","repos_url":"https://api.github.com/users/ahilles107/repos","events_url":"https://api.github.com/users/ahilles107/events{/privacy}","received_events_url":"https://api.github.com/users/ahilles107/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | yes - all current articles will be marked as not published\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | SWP-186\r\n| License       | AGPLv3\r\n\r\n","created_at":"2016-07-13T15:52:07Z","updated_at":"2016-07-14T13:56:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75c22b26f16e2a6709b1ce05785bb9b11f14abe2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/superdesk/web-publisher/pulls/86/commits","review_comments_url":"https://api.github.com/repos/superdesk/web-publisher/pulls/86/comments","review_comment_url":"https://api.github.com/repos/superdesk/web-publisher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/superdesk/web-publisher/issues/86/comments","statuses_url":"https://api.github.com/repos/superdesk/web-publisher/statuses/92e5dd8888ff5f9e818ee2a096ff7d85b17530e7","head":{"label":"ahilles107:publishing_workflow","ref":"publishing_workflow","sha":"92e5dd8888ff5f9e818ee2a096ff7d85b17530e7","user":{"login":"ahilles107","id":298610,"avatar_url":"https://avatars.githubusercontent.com/u/298610?v=3","gravatar_id":"","url":"https://api.github.com/users/ahilles107","html_url":"https://github.com/ahilles107","followers_url":"https://api.github.com/users/ahilles107/followers","following_url":"https://api.github.com/users/ahilles107/following{/other_user}","gists_url":"https://api.github.com/users/ahilles107/gists{/gist_id}","starred_url":"https://api.github.com/users/ahilles107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahilles107/subscriptions","organizations_url":"https://api.github.com/users/ahilles107/orgs","repos_url":"https://api.github.com/users/ahilles107/repos","events_url":"https://api.github.com/users/ahilles107/events{/privacy}","received_events_url":"https://api.github.com/users/ahilles107/received_events","type":"User","site_admin":false},"repo":{"id":36223851,"name":"web-publisher","full_name":"ahilles107/web-publisher","owner":{"login":"ahilles107","id":298610,"avatar_url":"https://avatars.githubusercontent.com/u/298610?v=3","gravatar_id":"","url":"https://api.github.com/users/ahilles107","html_url":"https://github.com/ahilles107","followers_url":"https://api.github.com/users/ahilles107/followers","following_url":"https://api.github.com/users/ahilles107/following{/other_user}","gists_url":"https://api.github.com/users/ahilles107/gists{/gist_id}","starred_url":"https://api.github.com/users/ahilles107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahilles107/subscriptions","organizations_url":"https://api.github.com/users/ahilles107/orgs","repos_url":"https://api.github.com/users/ahilles107/repos","events_url":"https://api.github.com/users/ahilles107/events{/privacy}","received_events_url":"https://api.github.com/users/ahilles107/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahilles107/web-publisher","description":"Superdesk Web renderer","fork":true,"url":"https://api.github.com/repos/ahilles107/web-publisher","forks_url":"https://api.github.com/repos/ahilles107/web-publisher/forks","keys_url":"https://api.github.com/repos/ahilles107/web-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahilles107/web-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahilles107/web-publisher/teams","hooks_url":"https://api.github.com/repos/ahilles107/web-publisher/hooks","issue_events_url":"https://api.github.com/repos/ahilles107/web-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/ahilles107/web-publisher/events","assignees_url":"https://api.github.com/repos/ahilles107/web-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/ahilles107/web-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/ahilles107/web-publisher/tags","blobs_url":"https://api.github.com/repos/ahilles107/web-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahilles107/web-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahilles107/web-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahilles107/web-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahilles107/web-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/ahilles107/web-publisher/languages","stargazers_url":"https://api.github.com/repos/ahilles107/web-publisher/stargazers","contributors_url":"https://api.github.com/repos/ahilles107/web-publisher/contributors","subscribers_url":"https://api.github.com/repos/ahilles107/web-publisher/subscribers","subscription_url":"https://api.github.com/repos/ahilles107/web-publisher/subscription","commits_url":"https://api.github.com/repos/ahilles107/web-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahilles107/web-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahilles107/web-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahilles107/web-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahilles107/web-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/ahilles107/web-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahilles107/web-publisher/merges","archive_url":"https://api.github.com/repos/ahilles107/web-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahilles107/web-publisher/downloads","issues_url":"https://api.github.com/repos/ahilles107/web-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/ahilles107/web-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/ahilles107/web-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/ahilles107/web-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahilles107/web-publisher/labels{/name}","releases_url":"https://api.github.com/repos/ahilles107/web-publisher/releases{/id}","deployments_url":"https://api.github.com/repos/ahilles107/web-publisher/deployments","created_at":"2015-05-25T10:04:31Z","updated_at":"2016-02-10T15:29:51Z","pushed_at":"2016-07-14T13:21:26Z","git_url":"git://github.com/ahilles107/web-publisher.git","ssh_url":"git@github.com:ahilles107/web-publisher.git","clone_url":"https://github.com/ahilles107/web-publisher.git","svn_url":"https://github.com/ahilles107/web-publisher","homepage":null,"size":1587,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"superdesk:master","ref":"master","sha":"053b4c406258be332e01af7474e178e601f5dc33","user":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"repo":{"id":36218357,"name":"web-publisher","full_name":"superdesk/web-publisher","owner":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/superdesk/web-publisher","description":"Superdesk Web Publisher - the next generation publishing platform for journalists and newsrooms.","fork":false,"url":"https://api.github.com/repos/superdesk/web-publisher","forks_url":"https://api.github.com/repos/superdesk/web-publisher/forks","keys_url":"https://api.github.com/repos/superdesk/web-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superdesk/web-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superdesk/web-publisher/teams","hooks_url":"https://api.github.com/repos/superdesk/web-publisher/hooks","issue_events_url":"https://api.github.com/repos/superdesk/web-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/superdesk/web-publisher/events","assignees_url":"https://api.github.com/repos/superdesk/web-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/superdesk/web-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/superdesk/web-publisher/tags","blobs_url":"https://api.github.com/repos/superdesk/web-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superdesk/web-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superdesk/web-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/superdesk/web-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superdesk/web-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/superdesk/web-publisher/languages","stargazers_url":"https://api.github.com/repos/superdesk/web-publisher/stargazers","contributors_url":"https://api.github.com/repos/superdesk/web-publisher/contributors","subscribers_url":"https://api.github.com/repos/superdesk/web-publisher/subscribers","subscription_url":"https://api.github.com/repos/superdesk/web-publisher/subscription","commits_url":"https://api.github.com/repos/superdesk/web-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/superdesk/web-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/superdesk/web-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/superdesk/web-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/superdesk/web-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/superdesk/web-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superdesk/web-publisher/merges","archive_url":"https://api.github.com/repos/superdesk/web-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superdesk/web-publisher/downloads","issues_url":"https://api.github.com/repos/superdesk/web-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/superdesk/web-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/superdesk/web-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/superdesk/web-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superdesk/web-publisher/labels{/name}","releases_url":"https://api.github.com/repos/superdesk/web-publisher/releases{/id}","deployments_url":"https://api.github.com/repos/superdesk/web-publisher/deployments","created_at":"2015-05-25T08:04:59Z","updated_at":"2016-07-01T01:41:29Z","pushed_at":"2016-07-14T13:49:01Z","git_url":"git://github.com/superdesk/web-publisher.git","ssh_url":"git@github.com:superdesk/web-publisher.git","clone_url":"https://github.com/superdesk/web-publisher.git","svn_url":"https://github.com/superdesk/web-publisher","homepage":"","size":2358,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":4,"forks":9,"open_issues":4,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/86"},"html":{"href":"https://github.com/superdesk/web-publisher/pull/86"},"issue":{"href":"https://api.github.com/repos/superdesk/web-publisher/issues/86"},"comments":{"href":"https://api.github.com/repos/superdesk/web-publisher/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/superdesk/web-publisher/statuses/92e5dd8888ff5f9e818ee2a096ff7d85b17530e7"}}}}
{"actor":{"display_login":"djbrd-sourcefabric"}}