{"action":"created","comment":{"url":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/comments/38270532","id":38270532,"diff_hunk":"@@ -53,7 +53,9 @@ def index_with_reports_view\n \n         if @issue\n           if @issue.respond_to?(\"lft\")\n-            work_package_ids = WorkPackage.all(select: :id, conditions: [\"root_id = ? AND lft >= ? AND rgt <= ?\", @issue.root_id, @issue.lft, @issue.rgt]).collect{|i| i.id.to_s}\n+            work_package_ids = WorkPackage\n+                               .where(['root_id = ? AND lft >= ? AND rgt <= ?', @issue.root_id, @issue.lft, @issue.rgt])","path":"lib/open_project/reporting/patches/timelog_controller_patch.rb","position":6,"original_position":6,"commit_id":"ce66467fe4235036423ec709ac6dc5690dfa4a3f","original_commit_id":"ce66467fe4235036423ec709ac6dc5690dfa4a3f","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":"Line is too long. [120/100]","created_at":"2015-08-30T10:46:23Z","updated_at":"2015-08-30T10:46:23Z","html_url":"https://github.com/finnlabs/openproject-reporting/pull/77#discussion_r38270532","pull_request_url":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/77","_links":{"self":{"href":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/comments/38270532"},"html":{"href":"https://github.com/finnlabs/openproject-reporting/pull/77#discussion_r38270532"},"pull_request":{"href":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/77","id":43489339,"html_url":"https://github.com/finnlabs/openproject-reporting/pull/77","diff_url":"https://github.com/finnlabs/openproject-reporting/pull/77.diff","patch_url":"https://github.com/finnlabs/openproject-reporting/pull/77.patch","issue_url":"https://api.github.com/repos/finnlabs/openproject-reporting/issues/77","number":77,"state":"open","locked":false,"title":"[20044] Upgrade to Rails 4.2.x","user":{"login":"myabc","id":755,"avatar_url":"https://avatars.githubusercontent.com/u/755?v=3","gravatar_id":"","url":"https://api.github.com/users/myabc","html_url":"https://github.com/myabc","followers_url":"https://api.github.com/users/myabc/followers","following_url":"https://api.github.com/users/myabc/following{/other_user}","gists_url":"https://api.github.com/users/myabc/gists{/gist_id}","starred_url":"https://api.github.com/users/myabc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myabc/subscriptions","organizations_url":"https://api.github.com/users/myabc/orgs","repos_url":"https://api.github.com/users/myabc/repos","events_url":"https://api.github.com/users/myabc/events{/privacy}","received_events_url":"https://api.github.com/users/myabc/received_events","type":"User","site_admin":false},"body":":warning: **Includes commits from Rails 4.2.x PR. Please review, merge first.**\n:warning: **Please review, merge opf/openproject#3421 first.**\n\nhttps://community.openproject.org/work_packages/20044","created_at":"2015-08-27T08:04:35Z","updated_at":"2015-08-30T10:46:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36c161d22d7adf9c9f88ff99a4d24aa158daaf00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/77/commits","review_comments_url":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/77/comments","review_comment_url":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/comments{/number}","comments_url":"https://api.github.com/repos/finnlabs/openproject-reporting/issues/77/comments","statuses_url":"https://api.github.com/repos/finnlabs/openproject-reporting/statuses/ce66467fe4235036423ec709ac6dc5690dfa4a3f","head":{"label":"finnlabs:feature/20044-rails-4.2","ref":"feature/20044-rails-4.2","sha":"ce66467fe4235036423ec709ac6dc5690dfa4a3f","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":10028446,"name":"openproject-reporting","full_name":"finnlabs/openproject-reporting","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-reporting","description":"","fork":false,"url":"https://api.github.com/repos/finnlabs/openproject-reporting","forks_url":"https://api.github.com/repos/finnlabs/openproject-reporting/forks","keys_url":"https://api.github.com/repos/finnlabs/openproject-reporting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/finnlabs/openproject-reporting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/finnlabs/openproject-reporting/teams","hooks_url":"https://api.github.com/repos/finnlabs/openproject-reporting/hooks","issue_events_url":"https://api.github.com/repos/finnlabs/openproject-reporting/issues/events{/number}","events_url":"https://api.github.com/repos/finnlabs/openproject-reporting/events","assignees_url":"https://api.github.com/repos/finnlabs/openproject-reporting/assignees{/user}","branches_url":"https://api.github.com/repos/finnlabs/openproject-reporting/branches{/branch}","tags_url":"https://api.github.com/repos/finnlabs/openproject-reporting/tags","blobs_url":"https://api.github.com/repos/finnlabs/openproject-reporting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/finnlabs/openproject-reporting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/finnlabs/openproject-reporting/git/refs{/sha}","trees_url":"https://api.github.com/repos/finnlabs/openproject-reporting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/finnlabs/openproject-reporting/statuses/{sha}","languages_url":"https://api.github.com/repos/finnlabs/openproject-reporting/languages","stargazers_url":"https://api.github.com/repos/finnlabs/openproject-reporting/stargazers","contributors_url":"https://api.github.com/repos/finnlabs/openproject-reporting/contributors","subscribers_url":"https://api.github.com/repos/finnlabs/openproject-reporting/subscribers","subscription_url":"https://api.github.com/repos/finnlabs/openproject-reporting/subscription","commits_url":"https://api.github.com/repos/finnlabs/openproject-reporting/commits{/sha}","git_commits_url":"https://api.github.com/repos/finnlabs/openproject-reporting/git/commits{/sha}","comments_url":"https://api.github.com/repos/finnlabs/openproject-reporting/comments{/number}","issue_comment_url":"https://api.github.com/repos/finnlabs/openproject-reporting/issues/comments{/number}","contents_url":"https://api.github.com/repos/finnlabs/openproject-reporting/contents/{+path}","compare_url":"https://api.github.com/repos/finnlabs/openproject-reporting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/finnlabs/openproject-reporting/merges","archive_url":"https://api.github.com/repos/finnlabs/openproject-reporting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/finnlabs/openproject-reporting/downloads","issues_url":"https://api.github.com/repos/finnlabs/openproject-reporting/issues{/number}","pulls_url":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls{/number}","milestones_url":"https://api.github.com/repos/finnlabs/openproject-reporting/milestones{/number}","notifications_url":"https://api.github.com/repos/finnlabs/openproject-reporting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/finnlabs/openproject-reporting/labels{/name}","releases_url":"https://api.github.com/repos/finnlabs/openproject-reporting/releases{/id}","created_at":"2013-05-13T09:27:44Z","updated_at":"2015-04-10T14:58:05Z","pushed_at":"2015-08-30T10:46:20Z","git_url":"git://github.com/finnlabs/openproject-reporting.git","ssh_url":"git@github.com:finnlabs/openproject-reporting.git","clone_url":"https://github.com/finnlabs/openproject-reporting.git","svn_url":"https://github.com/finnlabs/openproject-reporting","homepage":null,"size":3080,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":0,"default_branch":"dev"}},"base":{"label":"finnlabs:dev","ref":"dev","sha":"e767ab33f416fd5cba915443d36d4e84e9e6adcd","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":10028446,"name":"openproject-reporting","full_name":"finnlabs/openproject-reporting","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-reporting","description":"","fork":false,"url":"https://api.github.com/repos/finnlabs/openproject-reporting","forks_url":"https://api.github.com/repos/finnlabs/openproject-reporting/forks","keys_url":"https://api.github.com/repos/finnlabs/openproject-reporting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/finnlabs/openproject-reporting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/finnlabs/openproject-reporting/teams","hooks_url":"https://api.github.com/repos/finnlabs/openproject-reporting/hooks","issue_events_url":"https://api.github.com/repos/finnlabs/openproject-reporting/issues/events{/number}","events_url":"https://api.github.com/repos/finnlabs/openproject-reporting/events","assignees_url":"https://api.github.com/repos/finnlabs/openproject-reporting/assignees{/user}","branches_url":"https://api.github.com/repos/finnlabs/openproject-reporting/branches{/branch}","tags_url":"https://api.github.com/repos/finnlabs/openproject-reporting/tags","blobs_url":"https://api.github.com/repos/finnlabs/openproject-reporting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/finnlabs/openproject-reporting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/finnlabs/openproject-reporting/git/refs{/sha}","trees_url":"https://api.github.com/repos/finnlabs/openproject-reporting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/finnlabs/openproject-reporting/statuses/{sha}","languages_url":"https://api.github.com/repos/finnlabs/openproject-reporting/languages","stargazers_url":"https://api.github.com/repos/finnlabs/openproject-reporting/stargazers","contributors_url":"https://api.github.com/repos/finnlabs/openproject-reporting/contributors","subscribers_url":"https://api.github.com/repos/finnlabs/openproject-reporting/subscribers","subscription_url":"https://api.github.com/repos/finnlabs/openproject-reporting/subscription","commits_url":"https://api.github.com/repos/finnlabs/openproject-reporting/commits{/sha}","git_commits_url":"https://api.github.com/repos/finnlabs/openproject-reporting/git/commits{/sha}","comments_url":"https://api.github.com/repos/finnlabs/openproject-reporting/comments{/number}","issue_comment_url":"https://api.github.com/repos/finnlabs/openproject-reporting/issues/comments{/number}","contents_url":"https://api.github.com/repos/finnlabs/openproject-reporting/contents/{+path}","compare_url":"https://api.github.com/repos/finnlabs/openproject-reporting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/finnlabs/openproject-reporting/merges","archive_url":"https://api.github.com/repos/finnlabs/openproject-reporting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/finnlabs/openproject-reporting/downloads","issues_url":"https://api.github.com/repos/finnlabs/openproject-reporting/issues{/number}","pulls_url":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls{/number}","milestones_url":"https://api.github.com/repos/finnlabs/openproject-reporting/milestones{/number}","notifications_url":"https://api.github.com/repos/finnlabs/openproject-reporting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/finnlabs/openproject-reporting/labels{/name}","releases_url":"https://api.github.com/repos/finnlabs/openproject-reporting/releases{/id}","created_at":"2013-05-13T09:27:44Z","updated_at":"2015-04-10T14:58:05Z","pushed_at":"2015-08-30T10:46:20Z","git_url":"git://github.com/finnlabs/openproject-reporting.git","ssh_url":"git@github.com:finnlabs/openproject-reporting.git","clone_url":"https://github.com/finnlabs/openproject-reporting.git","svn_url":"https://github.com/finnlabs/openproject-reporting","homepage":null,"size":3080,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/77"},"html":{"href":"https://github.com/finnlabs/openproject-reporting/pull/77"},"issue":{"href":"https://api.github.com/repos/finnlabs/openproject-reporting/issues/77"},"comments":{"href":"https://api.github.com/repos/finnlabs/openproject-reporting/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/finnlabs/openproject-reporting/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/finnlabs/openproject-reporting/statuses/ce66467fe4235036423ec709ac6dc5690dfa4a3f"}}}}