{"action":"created","comment":{"url":"https://api.github.com/repos/assembl/assembl/pulls/comments/83625252","pull_request_review_id":4455902,"id":83625252,"diff_hunk":"@@ -348,6 +357,36 @@ def has_next_sibling(self):\n             return self != self.parent.children[-1]\n         return False\n \n+    @property\n+    def has_live_child(self):\n+        for child in self.children:\n+            if child.publication_state not in deleted_publication_states:\n+                return True\n+\n+    def delete_post(self, cause):","path":"assembl/models/post.py","position":null,"original_position":33,"commit_id":"c4c9245317cc30bd9999795308bbae5f0ee46619","original_commit_id":"24785c7627b51aaf6a803553cb399cfd54ad6d06","user":{"login":"maparent","id":202691,"avatar_url":"https://avatars.githubusercontent.com/u/202691?v=3","gravatar_id":"","url":"https://api.github.com/users/maparent","html_url":"https://github.com/maparent","followers_url":"https://api.github.com/users/maparent/followers","following_url":"https://api.github.com/users/maparent/following{/other_user}","gists_url":"https://api.github.com/users/maparent/gists{/gist_id}","starred_url":"https://api.github.com/users/maparent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maparent/subscriptions","organizations_url":"https://api.github.com/users/maparent/orgs","repos_url":"https://api.github.com/users/maparent/repos","events_url":"https://api.github.com/users/maparent/events{/privacy}","received_events_url":"https://api.github.com/users/maparent/received_events","type":"User","site_admin":false},"body":"Thank you, corrected.","created_at":"2016-10-17T11:37:38Z","updated_at":"2016-10-17T11:37:38Z","html_url":"https://github.com/assembl/assembl/pull/49#discussion_r83625252","pull_request_url":"https://api.github.com/repos/assembl/assembl/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/assembl/assembl/pulls/comments/83625252"},"html":{"href":"https://github.com/assembl/assembl/pull/49#discussion_r83625252"},"pull_request":{"href":"https://api.github.com/repos/assembl/assembl/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/assembl/assembl/pulls/49","id":89169024,"html_url":"https://github.com/assembl/assembl/pull/49","diff_url":"https://github.com/assembl/assembl/pull/49.diff","patch_url":"https://github.com/assembl/assembl/pull/49.patch","issue_url":"https://api.github.com/repos/assembl/assembl/issues/49","number":49,"state":"open","locked":false,"title":"Deleted post count","user":{"login":"swergas","id":733425,"avatar_url":"https://avatars.githubusercontent.com/u/733425?v=3","gravatar_id":"","url":"https://api.github.com/users/swergas","html_url":"https://github.com/swergas","followers_url":"https://api.github.com/users/swergas/followers","following_url":"https://api.github.com/users/swergas/following{/other_user}","gists_url":"https://api.github.com/users/swergas/gists{/gist_id}","starred_url":"https://api.github.com/users/swergas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swergas/subscriptions","organizations_url":"https://api.github.com/users/swergas/orgs","repos_url":"https://api.github.com/users/swergas/repos","events_url":"https://api.github.com/users/swergas/events{/privacy}","received_events_url":"https://api.github.com/users/swergas/received_events","type":"User","site_admin":false},"body":"I create a pull request of @maparent branch so that we continue to match github flow and to provide a container for code review comments.","created_at":"2016-10-13T09:48:26Z","updated_at":"2016-10-17T11:37:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e57f8a9059cfef8b5b957c908e0afc4af4e15c98","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/assembl/assembl/pulls/49/commits","review_comments_url":"https://api.github.com/repos/assembl/assembl/pulls/49/comments","review_comment_url":"https://api.github.com/repos/assembl/assembl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/assembl/assembl/issues/49/comments","statuses_url":"https://api.github.com/repos/assembl/assembl/statuses/c4c9245317cc30bd9999795308bbae5f0ee46619","head":{"label":"assembl:deleted_post_count","ref":"deleted_post_count","sha":"c4c9245317cc30bd9999795308bbae5f0ee46619","user":{"login":"assembl","id":20449542,"avatar_url":"https://avatars.githubusercontent.com/u/20449542?v=3","gravatar_id":"","url":"https://api.github.com/users/assembl","html_url":"https://github.com/assembl","followers_url":"https://api.github.com/users/assembl/followers","following_url":"https://api.github.com/users/assembl/following{/other_user}","gists_url":"https://api.github.com/users/assembl/gists{/gist_id}","starred_url":"https://api.github.com/users/assembl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assembl/subscriptions","organizations_url":"https://api.github.com/users/assembl/orgs","repos_url":"https://api.github.com/users/assembl/repos","events_url":"https://api.github.com/users/assembl/events{/privacy}","received_events_url":"https://api.github.com/users/assembl/received_events","type":"Organization","site_admin":false},"repo":{"id":18962634,"name":"assembl","full_name":"assembl/assembl","owner":{"login":"assembl","id":20449542,"avatar_url":"https://avatars.githubusercontent.com/u/20449542?v=3","gravatar_id":"","url":"https://api.github.com/users/assembl","html_url":"https://github.com/assembl","followers_url":"https://api.github.com/users/assembl/followers","following_url":"https://api.github.com/users/assembl/following{/other_user}","gists_url":"https://api.github.com/users/assembl/gists{/gist_id}","starred_url":"https://api.github.com/users/assembl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assembl/subscriptions","organizations_url":"https://api.github.com/users/assembl/orgs","repos_url":"https://api.github.com/users/assembl/repos","events_url":"https://api.github.com/users/assembl/events{/privacy}","received_events_url":"https://api.github.com/users/assembl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/assembl/assembl","description":"Assembl is an online debate and synthesis platform","fork":false,"url":"https://api.github.com/repos/assembl/assembl","forks_url":"https://api.github.com/repos/assembl/assembl/forks","keys_url":"https://api.github.com/repos/assembl/assembl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/assembl/assembl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/assembl/assembl/teams","hooks_url":"https://api.github.com/repos/assembl/assembl/hooks","issue_events_url":"https://api.github.com/repos/assembl/assembl/issues/events{/number}","events_url":"https://api.github.com/repos/assembl/assembl/events","assignees_url":"https://api.github.com/repos/assembl/assembl/assignees{/user}","branches_url":"https://api.github.com/repos/assembl/assembl/branches{/branch}","tags_url":"https://api.github.com/repos/assembl/assembl/tags","blobs_url":"https://api.github.com/repos/assembl/assembl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/assembl/assembl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/assembl/assembl/git/refs{/sha}","trees_url":"https://api.github.com/repos/assembl/assembl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/assembl/assembl/statuses/{sha}","languages_url":"https://api.github.com/repos/assembl/assembl/languages","stargazers_url":"https://api.github.com/repos/assembl/assembl/stargazers","contributors_url":"https://api.github.com/repos/assembl/assembl/contributors","subscribers_url":"https://api.github.com/repos/assembl/assembl/subscribers","subscription_url":"https://api.github.com/repos/assembl/assembl/subscription","commits_url":"https://api.github.com/repos/assembl/assembl/commits{/sha}","git_commits_url":"https://api.github.com/repos/assembl/assembl/git/commits{/sha}","comments_url":"https://api.github.com/repos/assembl/assembl/comments{/number}","issue_comment_url":"https://api.github.com/repos/assembl/assembl/issues/comments{/number}","contents_url":"https://api.github.com/repos/assembl/assembl/contents/{+path}","compare_url":"https://api.github.com/repos/assembl/assembl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/assembl/assembl/merges","archive_url":"https://api.github.com/repos/assembl/assembl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/assembl/assembl/downloads","issues_url":"https://api.github.com/repos/assembl/assembl/issues{/number}","pulls_url":"https://api.github.com/repos/assembl/assembl/pulls{/number}","milestones_url":"https://api.github.com/repos/assembl/assembl/milestones{/number}","notifications_url":"https://api.github.com/repos/assembl/assembl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/assembl/assembl/labels{/name}","releases_url":"https://api.github.com/repos/assembl/assembl/releases{/id}","deployments_url":"https://api.github.com/repos/assembl/assembl/deployments","created_at":"2014-04-20T10:52:11Z","updated_at":"2016-09-18T15:22:15Z","pushed_at":"2016-10-17T11:36:52Z","git_url":"git://github.com/assembl/assembl.git","ssh_url":"git@github.com:assembl/assembl.git","clone_url":"https://github.com/assembl/assembl.git","svn_url":"https://github.com/assembl/assembl","homepage":"http://assembl.org","size":24843,"stargazers_count":58,"watchers_count":58,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":18,"forks":15,"open_issues":18,"watchers":58,"default_branch":"develop"}},"base":{"label":"assembl:develop","ref":"develop","sha":"a9a82f3652b0cce16ee6ec9b929373c10465b440","user":{"login":"assembl","id":20449542,"avatar_url":"https://avatars.githubusercontent.com/u/20449542?v=3","gravatar_id":"","url":"https://api.github.com/users/assembl","html_url":"https://github.com/assembl","followers_url":"https://api.github.com/users/assembl/followers","following_url":"https://api.github.com/users/assembl/following{/other_user}","gists_url":"https://api.github.com/users/assembl/gists{/gist_id}","starred_url":"https://api.github.com/users/assembl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assembl/subscriptions","organizations_url":"https://api.github.com/users/assembl/orgs","repos_url":"https://api.github.com/users/assembl/repos","events_url":"https://api.github.com/users/assembl/events{/privacy}","received_events_url":"https://api.github.com/users/assembl/received_events","type":"Organization","site_admin":false},"repo":{"id":18962634,"name":"assembl","full_name":"assembl/assembl","owner":{"login":"assembl","id":20449542,"avatar_url":"https://avatars.githubusercontent.com/u/20449542?v=3","gravatar_id":"","url":"https://api.github.com/users/assembl","html_url":"https://github.com/assembl","followers_url":"https://api.github.com/users/assembl/followers","following_url":"https://api.github.com/users/assembl/following{/other_user}","gists_url":"https://api.github.com/users/assembl/gists{/gist_id}","starred_url":"https://api.github.com/users/assembl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assembl/subscriptions","organizations_url":"https://api.github.com/users/assembl/orgs","repos_url":"https://api.github.com/users/assembl/repos","events_url":"https://api.github.com/users/assembl/events{/privacy}","received_events_url":"https://api.github.com/users/assembl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/assembl/assembl","description":"Assembl is an online debate and synthesis platform","fork":false,"url":"https://api.github.com/repos/assembl/assembl","forks_url":"https://api.github.com/repos/assembl/assembl/forks","keys_url":"https://api.github.com/repos/assembl/assembl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/assembl/assembl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/assembl/assembl/teams","hooks_url":"https://api.github.com/repos/assembl/assembl/hooks","issue_events_url":"https://api.github.com/repos/assembl/assembl/issues/events{/number}","events_url":"https://api.github.com/repos/assembl/assembl/events","assignees_url":"https://api.github.com/repos/assembl/assembl/assignees{/user}","branches_url":"https://api.github.com/repos/assembl/assembl/branches{/branch}","tags_url":"https://api.github.com/repos/assembl/assembl/tags","blobs_url":"https://api.github.com/repos/assembl/assembl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/assembl/assembl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/assembl/assembl/git/refs{/sha}","trees_url":"https://api.github.com/repos/assembl/assembl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/assembl/assembl/statuses/{sha}","languages_url":"https://api.github.com/repos/assembl/assembl/languages","stargazers_url":"https://api.github.com/repos/assembl/assembl/stargazers","contributors_url":"https://api.github.com/repos/assembl/assembl/contributors","subscribers_url":"https://api.github.com/repos/assembl/assembl/subscribers","subscription_url":"https://api.github.com/repos/assembl/assembl/subscription","commits_url":"https://api.github.com/repos/assembl/assembl/commits{/sha}","git_commits_url":"https://api.github.com/repos/assembl/assembl/git/commits{/sha}","comments_url":"https://api.github.com/repos/assembl/assembl/comments{/number}","issue_comment_url":"https://api.github.com/repos/assembl/assembl/issues/comments{/number}","contents_url":"https://api.github.com/repos/assembl/assembl/contents/{+path}","compare_url":"https://api.github.com/repos/assembl/assembl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/assembl/assembl/merges","archive_url":"https://api.github.com/repos/assembl/assembl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/assembl/assembl/downloads","issues_url":"https://api.github.com/repos/assembl/assembl/issues{/number}","pulls_url":"https://api.github.com/repos/assembl/assembl/pulls{/number}","milestones_url":"https://api.github.com/repos/assembl/assembl/milestones{/number}","notifications_url":"https://api.github.com/repos/assembl/assembl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/assembl/assembl/labels{/name}","releases_url":"https://api.github.com/repos/assembl/assembl/releases{/id}","deployments_url":"https://api.github.com/repos/assembl/assembl/deployments","created_at":"2014-04-20T10:52:11Z","updated_at":"2016-09-18T15:22:15Z","pushed_at":"2016-10-17T11:36:52Z","git_url":"git://github.com/assembl/assembl.git","ssh_url":"git@github.com:assembl/assembl.git","clone_url":"https://github.com/assembl/assembl.git","svn_url":"https://github.com/assembl/assembl","homepage":"http://assembl.org","size":24843,"stargazers_count":58,"watchers_count":58,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":18,"forks":15,"open_issues":18,"watchers":58,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/assembl/assembl/pulls/49"},"html":{"href":"https://github.com/assembl/assembl/pull/49"},"issue":{"href":"https://api.github.com/repos/assembl/assembl/issues/49"},"comments":{"href":"https://api.github.com/repos/assembl/assembl/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/assembl/assembl/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/assembl/assembl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/assembl/assembl/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/assembl/assembl/statuses/c4c9245317cc30bd9999795308bbae5f0ee46619"}}}}
{"actor":{"display_login":"maparent"}}