{"action":"created","comment":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/212656548","pull_request_review_id":149338602,"id":212656548,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjY1NjU0OA==","diff_hunk":"@@ -1412,6 +1412,25 @@ def test_success_edit_post_hide_message_by_staff(self):\n         self.assertEqual(staff.user, post.editor)\n         self.assertEqual(text_hidden_expected, post.text_hidden)\n \n+    def test_hide_helpful_message(self):\n+        profile = ProfileFactory()\n+        category, forum = create_category()\n+        topic = add_topic_in_a_forum(forum, profile)\n+\n+        self.assertTrue(self.client.login(username=profile.user.username, password='hostel77'))\n+        response = self.client.post(reverse('post-useful') + '?message={}'.format(topic.last_message.pk), follow=False)\n+        self.assertEqual(302, response.status_code)\n+\n+        response = self.client.get(topic.get_absolute_url(), follow=False)\n+        self.assertNotContains(response, 'green hidden')\n+\n+        response = self.client.post(\n+            reverse('post-edit') + '?message={}'.format(topic.last_message.pk), {'delete_message': ''}, follow=False)\n+        self.assertEqual(302, response.status_code)\n+\n+        response = self.client.get(topic.get_absolute_url(), follow=False)\n+        self.assertContains(response, 'green hidden')","path":"zds/forum/tests/tests_views.py","position":21,"original_position":21,"commit_id":"ecff1ce80a7d3f58a630331f4fdb0b802975d7fa","original_commit_id":"ecff1ce80a7d3f58a630331f4fdb0b802975d7fa","user":{"login":"artragis","id":1523653,"node_id":"MDQ6VXNlcjE1MjM2NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1523653?v=4","gravatar_id":"","url":"https://api.github.com/users/artragis","html_url":"https://github.com/artragis","followers_url":"https://api.github.com/users/artragis/followers","following_url":"https://api.github.com/users/artragis/following{/other_user}","gists_url":"https://api.github.com/users/artragis/gists{/gist_id}","starred_url":"https://api.github.com/users/artragis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artragis/subscriptions","organizations_url":"https://api.github.com/users/artragis/orgs","repos_url":"https://api.github.com/users/artragis/repos","events_url":"https://api.github.com/users/artragis/events{/privacy}","received_events_url":"https://api.github.com/users/artragis/received_events","type":"User","site_admin":false},"body":"tu pourrais aussi ajouter un `notContains(\"helpful\")`? ","created_at":"2018-08-24T14:56:59Z","updated_at":"2018-08-24T14:57:00Z","html_url":"https://github.com/zestedesavoir/zds-site/pull/5023#discussion_r212656548","pull_request_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/5023","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/212656548"},"html":{"href":"https://github.com/zestedesavoir/zds-site/pull/5023#discussion_r212656548"},"pull_request":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/5023"}}},"pull_request":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/5023","id":210663589,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNjYzNTg5","html_url":"https://github.com/zestedesavoir/zds-site/pull/5023","diff_url":"https://github.com/zestedesavoir/zds-site/pull/5023.diff","patch_url":"https://github.com/zestedesavoir/zds-site/pull/5023.patch","issue_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/5023","number":5023,"state":"open","locked":false,"title":"Fix #5022: les messages masqués ne sont plus considérés comme utiles","user":{"login":"gcodeur","id":22531188,"node_id":"MDQ6VXNlcjIyNTMxMTg4","avatar_url":"https://avatars1.githubusercontent.com/u/22531188?v=4","gravatar_id":"","url":"https://api.github.com/users/gcodeur","html_url":"https://github.com/gcodeur","followers_url":"https://api.github.com/users/gcodeur/followers","following_url":"https://api.github.com/users/gcodeur/following{/other_user}","gists_url":"https://api.github.com/users/gcodeur/gists{/gist_id}","starred_url":"https://api.github.com/users/gcodeur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcodeur/subscriptions","organizations_url":"https://api.github.com/users/gcodeur/orgs","repos_url":"https://api.github.com/users/gcodeur/repos","events_url":"https://api.github.com/users/gcodeur/events{/privacy}","received_events_url":"https://api.github.com/users/gcodeur/received_events","type":"User","site_admin":false},"body":"Numéro du ticket concerné (optionnel) : #5022\r\n\r\n### Contrôle qualité\r\n\r\nVérifier que le marquage d'un post comme utile marche toujours, mais qu'un message masqué n'est plus affiché comme utile.","created_at":"2018-08-24T07:44:01Z","updated_at":"2018-08-24T14:57:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32481f10258def6c09ccd5a6d74bdee4a52c03dd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":77592990,"node_id":"MDU6TGFiZWw3NzU5Mjk5MA==","url":"https://api.github.com/repos/zestedesavoir/zds-site/labels/C-Front","name":"C-Front","color":"2c4ed6","default":false},{"id":68166147,"node_id":"MDU6TGFiZWw2ODE2NjE0Nw==","url":"https://api.github.com/repos/zestedesavoir/zds-site/labels/S-BUG","name":"S-BUG","color":"e11d21","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/5023/commits","review_comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/5023/comments","review_comment_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/5023/comments","statuses_url":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/ecff1ce80a7d3f58a630331f4fdb0b802975d7fa","head":{"label":"gcodeur:fix-5022","ref":"fix-5022","sha":"ecff1ce80a7d3f58a630331f4fdb0b802975d7fa","user":{"login":"gcodeur","id":22531188,"node_id":"MDQ6VXNlcjIyNTMxMTg4","avatar_url":"https://avatars1.githubusercontent.com/u/22531188?v=4","gravatar_id":"","url":"https://api.github.com/users/gcodeur","html_url":"https://github.com/gcodeur","followers_url":"https://api.github.com/users/gcodeur/followers","following_url":"https://api.github.com/users/gcodeur/following{/other_user}","gists_url":"https://api.github.com/users/gcodeur/gists{/gist_id}","starred_url":"https://api.github.com/users/gcodeur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcodeur/subscriptions","organizations_url":"https://api.github.com/users/gcodeur/orgs","repos_url":"https://api.github.com/users/gcodeur/repos","events_url":"https://api.github.com/users/gcodeur/events{/privacy}","received_events_url":"https://api.github.com/users/gcodeur/received_events","type":"User","site_admin":false},"repo":{"id":145615146,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU2MTUxNDY=","name":"zds-site","full_name":"gcodeur/zds-site","owner":{"login":"gcodeur","id":22531188,"node_id":"MDQ6VXNlcjIyNTMxMTg4","avatar_url":"https://avatars1.githubusercontent.com/u/22531188?v=4","gravatar_id":"","url":"https://api.github.com/users/gcodeur","html_url":"https://github.com/gcodeur","followers_url":"https://api.github.com/users/gcodeur/followers","following_url":"https://api.github.com/users/gcodeur/following{/other_user}","gists_url":"https://api.github.com/users/gcodeur/gists{/gist_id}","starred_url":"https://api.github.com/users/gcodeur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcodeur/subscriptions","organizations_url":"https://api.github.com/users/gcodeur/orgs","repos_url":"https://api.github.com/users/gcodeur/repos","events_url":"https://api.github.com/users/gcodeur/events{/privacy}","received_events_url":"https://api.github.com/users/gcodeur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gcodeur/zds-site","description":"Dépôt de Zeste de Savoir","fork":true,"url":"https://api.github.com/repos/gcodeur/zds-site","forks_url":"https://api.github.com/repos/gcodeur/zds-site/forks","keys_url":"https://api.github.com/repos/gcodeur/zds-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gcodeur/zds-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gcodeur/zds-site/teams","hooks_url":"https://api.github.com/repos/gcodeur/zds-site/hooks","issue_events_url":"https://api.github.com/repos/gcodeur/zds-site/issues/events{/number}","events_url":"https://api.github.com/repos/gcodeur/zds-site/events","assignees_url":"https://api.github.com/repos/gcodeur/zds-site/assignees{/user}","branches_url":"https://api.github.com/repos/gcodeur/zds-site/branches{/branch}","tags_url":"https://api.github.com/repos/gcodeur/zds-site/tags","blobs_url":"https://api.github.com/repos/gcodeur/zds-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gcodeur/zds-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gcodeur/zds-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/gcodeur/zds-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gcodeur/zds-site/statuses/{sha}","languages_url":"https://api.github.com/repos/gcodeur/zds-site/languages","stargazers_url":"https://api.github.com/repos/gcodeur/zds-site/stargazers","contributors_url":"https://api.github.com/repos/gcodeur/zds-site/contributors","subscribers_url":"https://api.github.com/repos/gcodeur/zds-site/subscribers","subscription_url":"https://api.github.com/repos/gcodeur/zds-site/subscription","commits_url":"https://api.github.com/repos/gcodeur/zds-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/gcodeur/zds-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/gcodeur/zds-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/gcodeur/zds-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/gcodeur/zds-site/contents/{+path}","compare_url":"https://api.github.com/repos/gcodeur/zds-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gcodeur/zds-site/merges","archive_url":"https://api.github.com/repos/gcodeur/zds-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gcodeur/zds-site/downloads","issues_url":"https://api.github.com/repos/gcodeur/zds-site/issues{/number}","pulls_url":"https://api.github.com/repos/gcodeur/zds-site/pulls{/number}","milestones_url":"https://api.github.com/repos/gcodeur/zds-site/milestones{/number}","notifications_url":"https://api.github.com/repos/gcodeur/zds-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gcodeur/zds-site/labels{/name}","releases_url":"https://api.github.com/repos/gcodeur/zds-site/releases{/id}","deployments_url":"https://api.github.com/repos/gcodeur/zds-site/deployments","created_at":"2018-08-21T20:20:51Z","updated_at":"2018-08-23T12:36:09Z","pushed_at":"2018-08-24T08:08:24Z","git_url":"git://github.com/gcodeur/zds-site.git","ssh_url":"git@github.com:gcodeur/zds-site.git","clone_url":"https://github.com/gcodeur/zds-site.git","svn_url":"https://github.com/gcodeur/zds-site","homepage":"https://zestedesavoir.com","size":114453,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"zestedesavoir:dev","ref":"dev","sha":"1937b8622cc9b9333713045163c246d1f2647bd7","user":{"login":"zestedesavoir","id":7406239,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MDYyMzk=","avatar_url":"https://avatars3.githubusercontent.com/u/7406239?v=4","gravatar_id":"","url":"https://api.github.com/users/zestedesavoir","html_url":"https://github.com/zestedesavoir","followers_url":"https://api.github.com/users/zestedesavoir/followers","following_url":"https://api.github.com/users/zestedesavoir/following{/other_user}","gists_url":"https://api.github.com/users/zestedesavoir/gists{/gist_id}","starred_url":"https://api.github.com/users/zestedesavoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zestedesavoir/subscriptions","organizations_url":"https://api.github.com/users/zestedesavoir/orgs","repos_url":"https://api.github.com/users/zestedesavoir/repos","events_url":"https://api.github.com/users/zestedesavoir/events{/privacy}","received_events_url":"https://api.github.com/users/zestedesavoir/received_events","type":"Organization","site_admin":false},"repo":{"id":14778920,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc3ODkyMA==","name":"zds-site","full_name":"zestedesavoir/zds-site","owner":{"login":"zestedesavoir","id":7406239,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MDYyMzk=","avatar_url":"https://avatars3.githubusercontent.com/u/7406239?v=4","gravatar_id":"","url":"https://api.github.com/users/zestedesavoir","html_url":"https://github.com/zestedesavoir","followers_url":"https://api.github.com/users/zestedesavoir/followers","following_url":"https://api.github.com/users/zestedesavoir/following{/other_user}","gists_url":"https://api.github.com/users/zestedesavoir/gists{/gist_id}","starred_url":"https://api.github.com/users/zestedesavoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zestedesavoir/subscriptions","organizations_url":"https://api.github.com/users/zestedesavoir/orgs","repos_url":"https://api.github.com/users/zestedesavoir/repos","events_url":"https://api.github.com/users/zestedesavoir/events{/privacy}","received_events_url":"https://api.github.com/users/zestedesavoir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zestedesavoir/zds-site","description":"Dépôt de Zeste de Savoir","fork":false,"url":"https://api.github.com/repos/zestedesavoir/zds-site","forks_url":"https://api.github.com/repos/zestedesavoir/zds-site/forks","keys_url":"https://api.github.com/repos/zestedesavoir/zds-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zestedesavoir/zds-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zestedesavoir/zds-site/teams","hooks_url":"https://api.github.com/repos/zestedesavoir/zds-site/hooks","issue_events_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/events{/number}","events_url":"https://api.github.com/repos/zestedesavoir/zds-site/events","assignees_url":"https://api.github.com/repos/zestedesavoir/zds-site/assignees{/user}","branches_url":"https://api.github.com/repos/zestedesavoir/zds-site/branches{/branch}","tags_url":"https://api.github.com/repos/zestedesavoir/zds-site/tags","blobs_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/{sha}","languages_url":"https://api.github.com/repos/zestedesavoir/zds-site/languages","stargazers_url":"https://api.github.com/repos/zestedesavoir/zds-site/stargazers","contributors_url":"https://api.github.com/repos/zestedesavoir/zds-site/contributors","subscribers_url":"https://api.github.com/repos/zestedesavoir/zds-site/subscribers","subscription_url":"https://api.github.com/repos/zestedesavoir/zds-site/subscription","commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/zestedesavoir/zds-site/contents/{+path}","compare_url":"https://api.github.com/repos/zestedesavoir/zds-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zestedesavoir/zds-site/merges","archive_url":"https://api.github.com/repos/zestedesavoir/zds-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zestedesavoir/zds-site/downloads","issues_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues{/number}","pulls_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls{/number}","milestones_url":"https://api.github.com/repos/zestedesavoir/zds-site/milestones{/number}","notifications_url":"https://api.github.com/repos/zestedesavoir/zds-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zestedesavoir/zds-site/labels{/name}","releases_url":"https://api.github.com/repos/zestedesavoir/zds-site/releases{/id}","deployments_url":"https://api.github.com/repos/zestedesavoir/zds-site/deployments","created_at":"2013-11-28T14:23:48Z","updated_at":"2018-08-23T18:50:29Z","pushed_at":"2018-08-24T08:08:25Z","git_url":"git://github.com/zestedesavoir/zds-site.git","ssh_url":"git@github.com:zestedesavoir/zds-site.git","clone_url":"https://github.com/zestedesavoir/zds-site.git","svn_url":"https://github.com/zestedesavoir/zds-site","homepage":"https://zestedesavoir.com","size":114441,"stargazers_count":217,"watchers_count":217,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":149,"mirror_url":null,"archived":false,"open_issues_count":234,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":149,"open_issues":234,"watchers":217,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/5023"},"html":{"href":"https://github.com/zestedesavoir/zds-site/pull/5023"},"issue":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/issues/5023"},"comments":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/issues/5023/comments"},"review_comments":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/5023/comments"},"review_comment":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/5023/commits"},"statuses":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/ecff1ce80a7d3f58a630331f4fdb0b802975d7fa"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"artragis"}}