{"action":"created","comment":{"url":"https://api.github.com/repos/consul/consul/pulls/comments/336774009","pull_request_review_id":304253750,"id":336774009,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzNjc3NDAwOQ==","diff_hunk":"@@ -135,4 +135,59 @@\n \n     expect(page).not_to have_css(\"#related-content-list\")\n   end\n+\n+  describe 'user use case' do\n+    it 'logged can user add a related content', :js do\n+      login_as(user)\n+      visit eval(\"#{relationable.class.name.downcase}_path(relationable)\")\n+\n+      click_on(\"Add related content\")\n+\n+      within(\"#related_content\") do\n+        fill_in 'url', with: \"#{Setting['url']}/#{related1.class.name.downcase.pluralize}/#{related1.to_param}\"\n+        click_button \"Add\"\n+      end\n+\n+      within(\"#related-content-list\") do\n+        expect(page).to have_content(related1.title)\n+      end\n+    end\n+\n+    it 'logged user that added a new related content cannot vote it', :js do\n+      login_as(user)\n+      related_content = create(:related_content, parent_relationable: relationable, child_relationable: related1, author: build(:user))\n+\n+      visit eval(\"#{relationable.class.name.downcase}_path(relationable)\")\n+\n+      within(\"#related-content-list\") do\n+        expect(page).to_not have_css(\".score-positive\")\n+        expect(page).to_not have_css(\".score-negative\")","path":"spec/shared/features/relationable.rb","position":30,"original_position":30,"commit_id":"1609c1c3b5bff73d212447a41ab9712a858c3ce0","original_commit_id":"1609c1c3b5bff73d212447a41ab9712a858c3ce0","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"RSpec/NotToNot: Prefer not_to over to_not. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot)","created_at":"2019-10-20T11:09:33Z","updated_at":"2019-10-20T11:09:34Z","html_url":"https://github.com/consul/consul/pull/2214#discussion_r336774009","pull_request_url":"https://api.github.com/repos/consul/consul/pulls/2214","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/consul/consul/pulls/comments/336774009"},"html":{"href":"https://github.com/consul/consul/pull/2214#discussion_r336774009"},"pull_request":{"href":"https://api.github.com/repos/consul/consul/pulls/2214"}}},"pull_request":{"url":"https://api.github.com/repos/consul/consul/pulls/2214","id":159614232,"node_id":"MDExOlB1bGxSZXF1ZXN0MTU5NjE0MjMy","html_url":"https://github.com/consul/consul/pull/2214","diff_url":"https://github.com/consul/consul/pull/2214.diff","patch_url":"https://github.com/consul/consul/pull/2214.patch","issue_url":"https://api.github.com/repos/consul/consul/issues/2214","number":2214,"state":"open","locked":false,"title":"Increase test coverage for Related Content","user":{"login":"MariaCheca","id":2141690,"node_id":"MDQ6VXNlcjIxNDE2OTA=","avatar_url":"https://avatars0.githubusercontent.com/u/2141690?v=4","gravatar_id":"","url":"https://api.github.com/users/MariaCheca","html_url":"https://github.com/MariaCheca","followers_url":"https://api.github.com/users/MariaCheca/followers","following_url":"https://api.github.com/users/MariaCheca/following{/other_user}","gists_url":"https://api.github.com/users/MariaCheca/gists{/gist_id}","starred_url":"https://api.github.com/users/MariaCheca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MariaCheca/subscriptions","organizations_url":"https://api.github.com/users/MariaCheca/orgs","repos_url":"https://api.github.com/users/MariaCheca/repos","events_url":"https://api.github.com/users/MariaCheca/events{/privacy}","received_events_url":"https://api.github.com/users/MariaCheca/received_events","type":"User","site_admin":false},"body":"What\r\n====\r\nAdded test to cover situations where users perform different actions using the feature, navigate, etc.\r\n\r\nTest\r\n====\r\nAs usual.\r\n\r\nDeployment\r\n==========\r\nAs usual.\r\n","created_at":"2017-12-21T09:45:39Z","updated_at":"2019-10-20T11:09:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb71a99ebcd9b097277314d6c7b578a5c3d66082","assignee":null,"assignees":[],"requested_reviewers":[{"login":"bertocq","id":983242,"node_id":"MDQ6VXNlcjk4MzI0Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/983242?v=4","gravatar_id":"","url":"https://api.github.com/users/bertocq","html_url":"https://github.com/bertocq","followers_url":"https://api.github.com/users/bertocq/followers","following_url":"https://api.github.com/users/bertocq/following{/other_user}","gists_url":"https://api.github.com/users/bertocq/gists{/gist_id}","starred_url":"https://api.github.com/users/bertocq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertocq/subscriptions","organizations_url":"https://api.github.com/users/bertocq/orgs","repos_url":"https://api.github.com/users/bertocq/repos","events_url":"https://api.github.com/users/bertocq/events{/privacy}","received_events_url":"https://api.github.com/users/bertocq/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/consul/consul/pulls/2214/commits","review_comments_url":"https://api.github.com/repos/consul/consul/pulls/2214/comments","review_comment_url":"https://api.github.com/repos/consul/consul/pulls/comments{/number}","comments_url":"https://api.github.com/repos/consul/consul/issues/2214/comments","statuses_url":"https://api.github.com/repos/consul/consul/statuses/1609c1c3b5bff73d212447a41ab9712a858c3ce0","head":{"label":"consul:related-content-tests","ref":"related-content-tests","sha":"1609c1c3b5bff73d212447a41ab9712a858c3ce0","user":{"login":"consul","id":14167322,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTY3MzIy","avatar_url":"https://avatars2.githubusercontent.com/u/14167322?v=4","gravatar_id":"","url":"https://api.github.com/users/consul","html_url":"https://github.com/consul","followers_url":"https://api.github.com/users/consul/followers","following_url":"https://api.github.com/users/consul/following{/other_user}","gists_url":"https://api.github.com/users/consul/gists{/gist_id}","starred_url":"https://api.github.com/users/consul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consul/subscriptions","organizations_url":"https://api.github.com/users/consul/orgs","repos_url":"https://api.github.com/users/consul/repos","events_url":"https://api.github.com/users/consul/events{/privacy}","received_events_url":"https://api.github.com/users/consul/received_events","type":"Organization","site_admin":false},"repo":{"id":39152554,"node_id":"MDEwOlJlcG9zaXRvcnkzOTE1MjU1NA==","name":"consul","full_name":"consul/consul","private":false,"owner":{"login":"consul","id":14167322,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTY3MzIy","avatar_url":"https://avatars2.githubusercontent.com/u/14167322?v=4","gravatar_id":"","url":"https://api.github.com/users/consul","html_url":"https://github.com/consul","followers_url":"https://api.github.com/users/consul/followers","following_url":"https://api.github.com/users/consul/following{/other_user}","gists_url":"https://api.github.com/users/consul/gists{/gist_id}","starred_url":"https://api.github.com/users/consul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consul/subscriptions","organizations_url":"https://api.github.com/users/consul/orgs","repos_url":"https://api.github.com/users/consul/repos","events_url":"https://api.github.com/users/consul/events{/privacy}","received_events_url":"https://api.github.com/users/consul/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/consul/consul","description":"Consul - Open Government and E-Participation Web Software","fork":false,"url":"https://api.github.com/repos/consul/consul","forks_url":"https://api.github.com/repos/consul/consul/forks","keys_url":"https://api.github.com/repos/consul/consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/consul/consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/consul/consul/teams","hooks_url":"https://api.github.com/repos/consul/consul/hooks","issue_events_url":"https://api.github.com/repos/consul/consul/issues/events{/number}","events_url":"https://api.github.com/repos/consul/consul/events","assignees_url":"https://api.github.com/repos/consul/consul/assignees{/user}","branches_url":"https://api.github.com/repos/consul/consul/branches{/branch}","tags_url":"https://api.github.com/repos/consul/consul/tags","blobs_url":"https://api.github.com/repos/consul/consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/consul/consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/consul/consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/consul/consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/consul/consul/statuses/{sha}","languages_url":"https://api.github.com/repos/consul/consul/languages","stargazers_url":"https://api.github.com/repos/consul/consul/stargazers","contributors_url":"https://api.github.com/repos/consul/consul/contributors","subscribers_url":"https://api.github.com/repos/consul/consul/subscribers","subscription_url":"https://api.github.com/repos/consul/consul/subscription","commits_url":"https://api.github.com/repos/consul/consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/consul/consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/consul/consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/consul/consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/consul/consul/contents/{+path}","compare_url":"https://api.github.com/repos/consul/consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/consul/consul/merges","archive_url":"https://api.github.com/repos/consul/consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/consul/consul/downloads","issues_url":"https://api.github.com/repos/consul/consul/issues{/number}","pulls_url":"https://api.github.com/repos/consul/consul/pulls{/number}","milestones_url":"https://api.github.com/repos/consul/consul/milestones{/number}","notifications_url":"https://api.github.com/repos/consul/consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/consul/consul/labels{/name}","releases_url":"https://api.github.com/repos/consul/consul/releases{/id}","deployments_url":"https://api.github.com/repos/consul/consul/deployments","created_at":"2015-07-15T18:04:16Z","updated_at":"2019-10-19T03:10:46Z","pushed_at":"2019-10-20T11:09:26Z","git_url":"git://github.com/consul/consul.git","ssh_url":"git@github.com:consul/consul.git","clone_url":"https://github.com/consul/consul.git","svn_url":"https://github.com/consul/consul","homepage":"","size":60628,"stargazers_count":907,"watchers_count":907,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":635,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":324,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":635,"open_issues":324,"watchers":907,"default_branch":"master"}},"base":{"label":"consul:master","ref":"master","sha":"11f1beed62c87d12c05814396d17b7f007daceed","user":{"login":"consul","id":14167322,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTY3MzIy","avatar_url":"https://avatars2.githubusercontent.com/u/14167322?v=4","gravatar_id":"","url":"https://api.github.com/users/consul","html_url":"https://github.com/consul","followers_url":"https://api.github.com/users/consul/followers","following_url":"https://api.github.com/users/consul/following{/other_user}","gists_url":"https://api.github.com/users/consul/gists{/gist_id}","starred_url":"https://api.github.com/users/consul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consul/subscriptions","organizations_url":"https://api.github.com/users/consul/orgs","repos_url":"https://api.github.com/users/consul/repos","events_url":"https://api.github.com/users/consul/events{/privacy}","received_events_url":"https://api.github.com/users/consul/received_events","type":"Organization","site_admin":false},"repo":{"id":39152554,"node_id":"MDEwOlJlcG9zaXRvcnkzOTE1MjU1NA==","name":"consul","full_name":"consul/consul","private":false,"owner":{"login":"consul","id":14167322,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTY3MzIy","avatar_url":"https://avatars2.githubusercontent.com/u/14167322?v=4","gravatar_id":"","url":"https://api.github.com/users/consul","html_url":"https://github.com/consul","followers_url":"https://api.github.com/users/consul/followers","following_url":"https://api.github.com/users/consul/following{/other_user}","gists_url":"https://api.github.com/users/consul/gists{/gist_id}","starred_url":"https://api.github.com/users/consul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consul/subscriptions","organizations_url":"https://api.github.com/users/consul/orgs","repos_url":"https://api.github.com/users/consul/repos","events_url":"https://api.github.com/users/consul/events{/privacy}","received_events_url":"https://api.github.com/users/consul/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/consul/consul","description":"Consul - Open Government and E-Participation Web Software","fork":false,"url":"https://api.github.com/repos/consul/consul","forks_url":"https://api.github.com/repos/consul/consul/forks","keys_url":"https://api.github.com/repos/consul/consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/consul/consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/consul/consul/teams","hooks_url":"https://api.github.com/repos/consul/consul/hooks","issue_events_url":"https://api.github.com/repos/consul/consul/issues/events{/number}","events_url":"https://api.github.com/repos/consul/consul/events","assignees_url":"https://api.github.com/repos/consul/consul/assignees{/user}","branches_url":"https://api.github.com/repos/consul/consul/branches{/branch}","tags_url":"https://api.github.com/repos/consul/consul/tags","blobs_url":"https://api.github.com/repos/consul/consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/consul/consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/consul/consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/consul/consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/consul/consul/statuses/{sha}","languages_url":"https://api.github.com/repos/consul/consul/languages","stargazers_url":"https://api.github.com/repos/consul/consul/stargazers","contributors_url":"https://api.github.com/repos/consul/consul/contributors","subscribers_url":"https://api.github.com/repos/consul/consul/subscribers","subscription_url":"https://api.github.com/repos/consul/consul/subscription","commits_url":"https://api.github.com/repos/consul/consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/consul/consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/consul/consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/consul/consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/consul/consul/contents/{+path}","compare_url":"https://api.github.com/repos/consul/consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/consul/consul/merges","archive_url":"https://api.github.com/repos/consul/consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/consul/consul/downloads","issues_url":"https://api.github.com/repos/consul/consul/issues{/number}","pulls_url":"https://api.github.com/repos/consul/consul/pulls{/number}","milestones_url":"https://api.github.com/repos/consul/consul/milestones{/number}","notifications_url":"https://api.github.com/repos/consul/consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/consul/consul/labels{/name}","releases_url":"https://api.github.com/repos/consul/consul/releases{/id}","deployments_url":"https://api.github.com/repos/consul/consul/deployments","created_at":"2015-07-15T18:04:16Z","updated_at":"2019-10-19T03:10:46Z","pushed_at":"2019-10-20T11:09:26Z","git_url":"git://github.com/consul/consul.git","ssh_url":"git@github.com:consul/consul.git","clone_url":"https://github.com/consul/consul.git","svn_url":"https://github.com/consul/consul","homepage":"","size":60628,"stargazers_count":907,"watchers_count":907,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":635,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":324,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":635,"open_issues":324,"watchers":907,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/consul/consul/pulls/2214"},"html":{"href":"https://github.com/consul/consul/pull/2214"},"issue":{"href":"https://api.github.com/repos/consul/consul/issues/2214"},"comments":{"href":"https://api.github.com/repos/consul/consul/issues/2214/comments"},"review_comments":{"href":"https://api.github.com/repos/consul/consul/pulls/2214/comments"},"review_comment":{"href":"https://api.github.com/repos/consul/consul/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/consul/consul/pulls/2214/commits"},"statuses":{"href":"https://api.github.com/repos/consul/consul/statuses/1609c1c3b5bff73d212447a41ab9712a858c3ce0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}