{"action":"created","comment":{"url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/comments/29223067","id":29223067,"diff_hunk":"@@ -36,8 +36,12 @@\n   let(:current_user) {\n     FactoryGirl.create(:user, member_in_project: project, member_through_role: role)\n   }\n-  let(:role) { FactoryGirl.create(:role, permissions: permissions) }\n-  let(:permissions) { [:view_cost_entries] }\n+  let(:role) { FactoryGirl.create(:role, permissions: total_permissions) }\n+  let(:total_permissions) {","path":"spec/requests/api/cost_entries/cost_entries_by_work_package_resource_spec.rb","position":7,"original_position":7,"commit_id":"f0b117b32eb9d30c2bf9a92c6035f0b8f5fb1b99","original_commit_id":"f0b117b32eb9d30c2bf9a92c6035f0b8f5fb1b99","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Avoid using {...} for multi-line blocks.","created_at":"2015-04-28T08:33:36Z","updated_at":"2015-04-28T08:33:36Z","html_url":"https://github.com/finnlabs/openproject-costs/pull/134#discussion_r29223067","pull_request_url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/comments/29223067"},"html":{"href":"https://github.com/finnlabs/openproject-costs/pull/134#discussion_r29223067"},"pull_request":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/134","id":34244149,"html_url":"https://github.com/finnlabs/openproject-costs/pull/134","diff_url":"https://github.com/finnlabs/openproject-costs/pull/134.diff","patch_url":"https://github.com/finnlabs/openproject-costs/pull/134.patch","issue_url":"https://api.github.com/repos/finnlabs/openproject-costs/issues/134","number":134,"state":"open","locked":false,"title":"Fix APIv3 specs","user":{"login":"NobodysNightmare","id":453584,"avatar_url":"https://avatars.githubusercontent.com/u/453584?v=3","gravatar_id":"","url":"https://api.github.com/users/NobodysNightmare","html_url":"https://github.com/NobodysNightmare","followers_url":"https://api.github.com/users/NobodysNightmare/followers","following_url":"https://api.github.com/users/NobodysNightmare/following{/other_user}","gists_url":"https://api.github.com/users/NobodysNightmare/gists{/gist_id}","starred_url":"https://api.github.com/users/NobodysNightmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NobodysNightmare/subscriptions","organizations_url":"https://api.github.com/users/NobodysNightmare/orgs","repos_url":"https://api.github.com/users/NobodysNightmare/repos","events_url":"https://api.github.com/users/NobodysNightmare/events{/privacy}","received_events_url":"https://api.github.com/users/NobodysNightmare/received_events","type":"User","site_admin":false},"body":"This is part of general house keeping: https://community.openproject.org/work_packages/18714\r\n\r\nIt fixes wrongfully failing APIv3 integration tests.\r\nThe tests did not setup the permissions correctly and ommited access to the work package that was part of the URL (e.g. `/api/v3/work_packages/42/cost_entries`).\r\n\r\nTherefore, though the user had access to cost entries in a specific project, he had no access to the WP in question and therefore access to the given URL was denied.","created_at":"2015-04-28T08:33:33Z","updated_at":"2015-04-28T08:33:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e19367a04f3518a100dde0275cc2db5bc5ebac9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/134/commits","review_comments_url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/134/comments","review_comment_url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/finnlabs/openproject-costs/issues/134/comments","statuses_url":"https://api.github.com/repos/finnlabs/openproject-costs/statuses/f0b117b32eb9d30c2bf9a92c6035f0b8f5fb1b99","head":{"label":"NobodysNightmare:feature/fix_specs","ref":"feature/fix_specs","sha":"f0b117b32eb9d30c2bf9a92c6035f0b8f5fb1b99","user":{"login":"NobodysNightmare","id":453584,"avatar_url":"https://avatars.githubusercontent.com/u/453584?v=3","gravatar_id":"","url":"https://api.github.com/users/NobodysNightmare","html_url":"https://github.com/NobodysNightmare","followers_url":"https://api.github.com/users/NobodysNightmare/followers","following_url":"https://api.github.com/users/NobodysNightmare/following{/other_user}","gists_url":"https://api.github.com/users/NobodysNightmare/gists{/gist_id}","starred_url":"https://api.github.com/users/NobodysNightmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NobodysNightmare/subscriptions","organizations_url":"https://api.github.com/users/NobodysNightmare/orgs","repos_url":"https://api.github.com/users/NobodysNightmare/repos","events_url":"https://api.github.com/users/NobodysNightmare/events{/privacy}","received_events_url":"https://api.github.com/users/NobodysNightmare/received_events","type":"User","site_admin":false},"repo":{"id":32314400,"name":"openproject-costs","full_name":"NobodysNightmare/openproject-costs","owner":{"login":"NobodysNightmare","id":453584,"avatar_url":"https://avatars.githubusercontent.com/u/453584?v=3","gravatar_id":"","url":"https://api.github.com/users/NobodysNightmare","html_url":"https://github.com/NobodysNightmare","followers_url":"https://api.github.com/users/NobodysNightmare/followers","following_url":"https://api.github.com/users/NobodysNightmare/following{/other_user}","gists_url":"https://api.github.com/users/NobodysNightmare/gists{/gist_id}","starred_url":"https://api.github.com/users/NobodysNightmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NobodysNightmare/subscriptions","organizations_url":"https://api.github.com/users/NobodysNightmare/orgs","repos_url":"https://api.github.com/users/NobodysNightmare/repos","events_url":"https://api.github.com/users/NobodysNightmare/events{/privacy}","received_events_url":"https://api.github.com/users/NobodysNightmare/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NobodysNightmare/openproject-costs","description":"OpenProject plugin to manage project costs","fork":true,"url":"https://api.github.com/repos/NobodysNightmare/openproject-costs","forks_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/forks","keys_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/teams","hooks_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/hooks","issue_events_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/issues/events{/number}","events_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/events","assignees_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/assignees{/user}","branches_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/branches{/branch}","tags_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/tags","blobs_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/git/refs{/sha}","trees_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/statuses/{sha}","languages_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/languages","stargazers_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/stargazers","contributors_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/contributors","subscribers_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/subscribers","subscription_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/subscription","commits_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/commits{/sha}","git_commits_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/git/commits{/sha}","comments_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/comments{/number}","issue_comment_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/issues/comments{/number}","contents_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/contents/{+path}","compare_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/merges","archive_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/downloads","issues_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/issues{/number}","pulls_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/pulls{/number}","milestones_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/milestones{/number}","notifications_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/labels{/name}","releases_url":"https://api.github.com/repos/NobodysNightmare/openproject-costs/releases{/id}","created_at":"2015-03-16T09:31:55Z","updated_at":"2015-03-16T09:31:55Z","pushed_at":"2015-04-28T08:30:43Z","git_url":"git://github.com/NobodysNightmare/openproject-costs.git","ssh_url":"git@github.com:NobodysNightmare/openproject-costs.git","clone_url":"https://github.com/NobodysNightmare/openproject-costs.git","svn_url":"https://github.com/NobodysNightmare/openproject-costs","homepage":"https://www.openproject.org/projects/costs-plugin","size":1668,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"finnlabs:release/4.1","ref":"release/4.1","sha":"0d10baf63a0126d62794f355dcfa468927d004b7","user":{"login":"finnlabs","id":86719,"avatar_url":"https://avatars.githubusercontent.com/u/86719?v=3","gravatar_id":"","url":"https://api.github.com/users/finnlabs","html_url":"https://github.com/finnlabs","followers_url":"https://api.github.com/users/finnlabs/followers","following_url":"https://api.github.com/users/finnlabs/following{/other_user}","gists_url":"https://api.github.com/users/finnlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/finnlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnlabs/subscriptions","organizations_url":"https://api.github.com/users/finnlabs/orgs","repos_url":"https://api.github.com/users/finnlabs/repos","events_url":"https://api.github.com/users/finnlabs/events{/privacy}","received_events_url":"https://api.github.com/users/finnlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":9640519,"name":"openproject-costs","full_name":"finnlabs/openproject-costs","owner":{"login":"finnlabs","id":86719,"avatar_url":"https://avatars.githubusercontent.com/u/86719?v=3","gravatar_id":"","url":"https://api.github.com/users/finnlabs","html_url":"https://github.com/finnlabs","followers_url":"https://api.github.com/users/finnlabs/followers","following_url":"https://api.github.com/users/finnlabs/following{/other_user}","gists_url":"https://api.github.com/users/finnlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/finnlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnlabs/subscriptions","organizations_url":"https://api.github.com/users/finnlabs/orgs","repos_url":"https://api.github.com/users/finnlabs/repos","events_url":"https://api.github.com/users/finnlabs/events{/privacy}","received_events_url":"https://api.github.com/users/finnlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/finnlabs/openproject-costs","description":"OpenProject plugin to manage project costs","fork":false,"url":"https://api.github.com/repos/finnlabs/openproject-costs","forks_url":"https://api.github.com/repos/finnlabs/openproject-costs/forks","keys_url":"https://api.github.com/repos/finnlabs/openproject-costs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/finnlabs/openproject-costs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/finnlabs/openproject-costs/teams","hooks_url":"https://api.github.com/repos/finnlabs/openproject-costs/hooks","issue_events_url":"https://api.github.com/repos/finnlabs/openproject-costs/issues/events{/number}","events_url":"https://api.github.com/repos/finnlabs/openproject-costs/events","assignees_url":"https://api.github.com/repos/finnlabs/openproject-costs/assignees{/user}","branches_url":"https://api.github.com/repos/finnlabs/openproject-costs/branches{/branch}","tags_url":"https://api.github.com/repos/finnlabs/openproject-costs/tags","blobs_url":"https://api.github.com/repos/finnlabs/openproject-costs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/finnlabs/openproject-costs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/finnlabs/openproject-costs/git/refs{/sha}","trees_url":"https://api.github.com/repos/finnlabs/openproject-costs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/finnlabs/openproject-costs/statuses/{sha}","languages_url":"https://api.github.com/repos/finnlabs/openproject-costs/languages","stargazers_url":"https://api.github.com/repos/finnlabs/openproject-costs/stargazers","contributors_url":"https://api.github.com/repos/finnlabs/openproject-costs/contributors","subscribers_url":"https://api.github.com/repos/finnlabs/openproject-costs/subscribers","subscription_url":"https://api.github.com/repos/finnlabs/openproject-costs/subscription","commits_url":"https://api.github.com/repos/finnlabs/openproject-costs/commits{/sha}","git_commits_url":"https://api.github.com/repos/finnlabs/openproject-costs/git/commits{/sha}","comments_url":"https://api.github.com/repos/finnlabs/openproject-costs/comments{/number}","issue_comment_url":"https://api.github.com/repos/finnlabs/openproject-costs/issues/comments{/number}","contents_url":"https://api.github.com/repos/finnlabs/openproject-costs/contents/{+path}","compare_url":"https://api.github.com/repos/finnlabs/openproject-costs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/finnlabs/openproject-costs/merges","archive_url":"https://api.github.com/repos/finnlabs/openproject-costs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/finnlabs/openproject-costs/downloads","issues_url":"https://api.github.com/repos/finnlabs/openproject-costs/issues{/number}","pulls_url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls{/number}","milestones_url":"https://api.github.com/repos/finnlabs/openproject-costs/milestones{/number}","notifications_url":"https://api.github.com/repos/finnlabs/openproject-costs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/finnlabs/openproject-costs/labels{/name}","releases_url":"https://api.github.com/repos/finnlabs/openproject-costs/releases{/id}","created_at":"2013-04-24T05:58:04Z","updated_at":"2015-04-10T14:55:56Z","pushed_at":"2015-04-28T08:33:33Z","git_url":"git://github.com/finnlabs/openproject-costs.git","ssh_url":"git@github.com:finnlabs/openproject-costs.git","clone_url":"https://github.com/finnlabs/openproject-costs.git","svn_url":"https://github.com/finnlabs/openproject-costs","homepage":"https://www.openproject.org/projects/costs-plugin","size":3439,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":6,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/134"},"html":{"href":"https://github.com/finnlabs/openproject-costs/pull/134"},"issue":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/issues/134"},"comments":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/statuses/f0b117b32eb9d30c2bf9a92c6035f0b8f5fb1b99"}}}}