{"action":"created","comment":{"url":"https://api.github.com/repos/apptentive/ACC/pulls/comments/42425729","id":42425729,"diff_hunk":"@@ -33,9 +34,11 @@ def internal_runner\n          puts e\n          result = false\n       end\n-      puts result\n       capability.last_result = result\n       capability.save\n+      check_result(capability)\n+      # new_result = Result.new(capability_id: capability.id, project_id: capability.project_id, time_start: time, time_end: time, result: capability.last_result)\n+      # new_result.save\n     end","path":"helpers/result_fetcher.rb","position":17,"original_position":17,"commit_id":"5eb48b8e9133478dfc6adfc6e22710d1d0be6bc9","original_commit_id":"5eb48b8e9133478dfc6adfc6e22710d1d0be6bc9","user":{"login":"CestLou","id":7103027,"avatar_url":"https://avatars.githubusercontent.com/u/7103027?v=3","gravatar_id":"","url":"https://api.github.com/users/CestLou","html_url":"https://github.com/CestLou","followers_url":"https://api.github.com/users/CestLou/followers","following_url":"https://api.github.com/users/CestLou/following{/other_user}","gists_url":"https://api.github.com/users/CestLou/gists{/gist_id}","starred_url":"https://api.github.com/users/CestLou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CestLou/subscriptions","organizations_url":"https://api.github.com/users/CestLou/orgs","repos_url":"https://api.github.com/users/CestLou/repos","events_url":"https://api.github.com/users/CestLou/events{/privacy}","received_events_url":"https://api.github.com/users/CestLou/received_events","type":"User","site_admin":false},"body":"does this need to be here still?","created_at":"2015-10-19T21:04:53Z","updated_at":"2015-10-19T21:04:53Z","html_url":"https://github.com/apptentive/ACC/pull/8#discussion_r42425729","pull_request_url":"https://api.github.com/repos/apptentive/ACC/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/apptentive/ACC/pulls/comments/42425729"},"html":{"href":"https://github.com/apptentive/ACC/pull/8#discussion_r42425729"},"pull_request":{"href":"https://api.github.com/repos/apptentive/ACC/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/apptentive/ACC/pulls/8","id":48113703,"html_url":"https://github.com/apptentive/ACC/pull/8","diff_url":"https://github.com/apptentive/ACC/pull/8.diff","patch_url":"https://github.com/apptentive/ACC/pull/8.patch","issue_url":"https://api.github.com/repos/apptentive/ACC/issues/8","number":8,"state":"open","locked":false,"title":"Marcom 103","user":{"login":"jakebarnett","id":8683752,"avatar_url":"https://avatars.githubusercontent.com/u/8683752?v=3","gravatar_id":"","url":"https://api.github.com/users/jakebarnett","html_url":"https://github.com/jakebarnett","followers_url":"https://api.github.com/users/jakebarnett/followers","following_url":"https://api.github.com/users/jakebarnett/following{/other_user}","gists_url":"https://api.github.com/users/jakebarnett/gists{/gist_id}","starred_url":"https://api.github.com/users/jakebarnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakebarnett/subscriptions","organizations_url":"https://api.github.com/users/jakebarnett/orgs","repos_url":"https://api.github.com/users/jakebarnett/repos","events_url":"https://api.github.com/users/jakebarnett/events{/privacy}","received_events_url":"https://api.github.com/users/jakebarnett/received_events","type":"User","site_admin":false},"body":"When last_result for a capability changes, we now record the change in a table called Results.\r\n\r\nResults table store stores :\r\n* result(t/f)\r\n* the capability_id\r\n* the project_id\r\n* the time we first started seeing the result\r\n* the time we stopped seeing the result","created_at":"2015-10-19T19:17:53Z","updated_at":"2015-10-19T21:04:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9df8dff79f729990736dacbb04c00a235b318dd8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apptentive/ACC/pulls/8/commits","review_comments_url":"https://api.github.com/repos/apptentive/ACC/pulls/8/comments","review_comment_url":"https://api.github.com/repos/apptentive/ACC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apptentive/ACC/issues/8/comments","statuses_url":"https://api.github.com/repos/apptentive/ACC/statuses/5eb48b8e9133478dfc6adfc6e22710d1d0be6bc9","head":{"label":"apptentive:MARCOM-103","ref":"MARCOM-103","sha":"5eb48b8e9133478dfc6adfc6e22710d1d0be6bc9","user":{"login":"apptentive","id":733925,"avatar_url":"https://avatars.githubusercontent.com/u/733925?v=3","gravatar_id":"","url":"https://api.github.com/users/apptentive","html_url":"https://github.com/apptentive","followers_url":"https://api.github.com/users/apptentive/followers","following_url":"https://api.github.com/users/apptentive/following{/other_user}","gists_url":"https://api.github.com/users/apptentive/gists{/gist_id}","starred_url":"https://api.github.com/users/apptentive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apptentive/subscriptions","organizations_url":"https://api.github.com/users/apptentive/orgs","repos_url":"https://api.github.com/users/apptentive/repos","events_url":"https://api.github.com/users/apptentive/events{/privacy}","received_events_url":"https://api.github.com/users/apptentive/received_events","type":"Organization","site_admin":false},"repo":{"id":40727999,"name":"ACC","full_name":"apptentive/ACC","owner":{"login":"apptentive","id":733925,"avatar_url":"https://avatars.githubusercontent.com/u/733925?v=3","gravatar_id":"","url":"https://api.github.com/users/apptentive","html_url":"https://github.com/apptentive","followers_url":"https://api.github.com/users/apptentive/followers","following_url":"https://api.github.com/users/apptentive/following{/other_user}","gists_url":"https://api.github.com/users/apptentive/gists{/gist_id}","starred_url":"https://api.github.com/users/apptentive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apptentive/subscriptions","organizations_url":"https://api.github.com/users/apptentive/orgs","repos_url":"https://api.github.com/users/apptentive/repos","events_url":"https://api.github.com/users/apptentive/events{/privacy}","received_events_url":"https://api.github.com/users/apptentive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apptentive/ACC","description":"ACC app","fork":true,"url":"https://api.github.com/repos/apptentive/ACC","forks_url":"https://api.github.com/repos/apptentive/ACC/forks","keys_url":"https://api.github.com/repos/apptentive/ACC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apptentive/ACC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apptentive/ACC/teams","hooks_url":"https://api.github.com/repos/apptentive/ACC/hooks","issue_events_url":"https://api.github.com/repos/apptentive/ACC/issues/events{/number}","events_url":"https://api.github.com/repos/apptentive/ACC/events","assignees_url":"https://api.github.com/repos/apptentive/ACC/assignees{/user}","branches_url":"https://api.github.com/repos/apptentive/ACC/branches{/branch}","tags_url":"https://api.github.com/repos/apptentive/ACC/tags","blobs_url":"https://api.github.com/repos/apptentive/ACC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apptentive/ACC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apptentive/ACC/git/refs{/sha}","trees_url":"https://api.github.com/repos/apptentive/ACC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apptentive/ACC/statuses/{sha}","languages_url":"https://api.github.com/repos/apptentive/ACC/languages","stargazers_url":"https://api.github.com/repos/apptentive/ACC/stargazers","contributors_url":"https://api.github.com/repos/apptentive/ACC/contributors","subscribers_url":"https://api.github.com/repos/apptentive/ACC/subscribers","subscription_url":"https://api.github.com/repos/apptentive/ACC/subscription","commits_url":"https://api.github.com/repos/apptentive/ACC/commits{/sha}","git_commits_url":"https://api.github.com/repos/apptentive/ACC/git/commits{/sha}","comments_url":"https://api.github.com/repos/apptentive/ACC/comments{/number}","issue_comment_url":"https://api.github.com/repos/apptentive/ACC/issues/comments{/number}","contents_url":"https://api.github.com/repos/apptentive/ACC/contents/{+path}","compare_url":"https://api.github.com/repos/apptentive/ACC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apptentive/ACC/merges","archive_url":"https://api.github.com/repos/apptentive/ACC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apptentive/ACC/downloads","issues_url":"https://api.github.com/repos/apptentive/ACC/issues{/number}","pulls_url":"https://api.github.com/repos/apptentive/ACC/pulls{/number}","milestones_url":"https://api.github.com/repos/apptentive/ACC/milestones{/number}","notifications_url":"https://api.github.com/repos/apptentive/ACC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apptentive/ACC/labels{/name}","releases_url":"https://api.github.com/repos/apptentive/ACC/releases{/id}","created_at":"2015-08-14T17:39:39Z","updated_at":"2015-09-02T02:19:46Z","pushed_at":"2015-10-19T21:02:25Z","git_url":"git://github.com/apptentive/ACC.git","ssh_url":"git@github.com:apptentive/ACC.git","clone_url":"https://github.com/apptentive/ACC.git","svn_url":"https://github.com/apptentive/ACC","homepage":null,"size":726,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"apptentive:master","ref":"master","sha":"125e6b9c372445419f946732c15e23f0323067a3","user":{"login":"apptentive","id":733925,"avatar_url":"https://avatars.githubusercontent.com/u/733925?v=3","gravatar_id":"","url":"https://api.github.com/users/apptentive","html_url":"https://github.com/apptentive","followers_url":"https://api.github.com/users/apptentive/followers","following_url":"https://api.github.com/users/apptentive/following{/other_user}","gists_url":"https://api.github.com/users/apptentive/gists{/gist_id}","starred_url":"https://api.github.com/users/apptentive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apptentive/subscriptions","organizations_url":"https://api.github.com/users/apptentive/orgs","repos_url":"https://api.github.com/users/apptentive/repos","events_url":"https://api.github.com/users/apptentive/events{/privacy}","received_events_url":"https://api.github.com/users/apptentive/received_events","type":"Organization","site_admin":false},"repo":{"id":40727999,"name":"ACC","full_name":"apptentive/ACC","owner":{"login":"apptentive","id":733925,"avatar_url":"https://avatars.githubusercontent.com/u/733925?v=3","gravatar_id":"","url":"https://api.github.com/users/apptentive","html_url":"https://github.com/apptentive","followers_url":"https://api.github.com/users/apptentive/followers","following_url":"https://api.github.com/users/apptentive/following{/other_user}","gists_url":"https://api.github.com/users/apptentive/gists{/gist_id}","starred_url":"https://api.github.com/users/apptentive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apptentive/subscriptions","organizations_url":"https://api.github.com/users/apptentive/orgs","repos_url":"https://api.github.com/users/apptentive/repos","events_url":"https://api.github.com/users/apptentive/events{/privacy}","received_events_url":"https://api.github.com/users/apptentive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apptentive/ACC","description":"ACC app","fork":true,"url":"https://api.github.com/repos/apptentive/ACC","forks_url":"https://api.github.com/repos/apptentive/ACC/forks","keys_url":"https://api.github.com/repos/apptentive/ACC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apptentive/ACC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apptentive/ACC/teams","hooks_url":"https://api.github.com/repos/apptentive/ACC/hooks","issue_events_url":"https://api.github.com/repos/apptentive/ACC/issues/events{/number}","events_url":"https://api.github.com/repos/apptentive/ACC/events","assignees_url":"https://api.github.com/repos/apptentive/ACC/assignees{/user}","branches_url":"https://api.github.com/repos/apptentive/ACC/branches{/branch}","tags_url":"https://api.github.com/repos/apptentive/ACC/tags","blobs_url":"https://api.github.com/repos/apptentive/ACC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apptentive/ACC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apptentive/ACC/git/refs{/sha}","trees_url":"https://api.github.com/repos/apptentive/ACC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apptentive/ACC/statuses/{sha}","languages_url":"https://api.github.com/repos/apptentive/ACC/languages","stargazers_url":"https://api.github.com/repos/apptentive/ACC/stargazers","contributors_url":"https://api.github.com/repos/apptentive/ACC/contributors","subscribers_url":"https://api.github.com/repos/apptentive/ACC/subscribers","subscription_url":"https://api.github.com/repos/apptentive/ACC/subscription","commits_url":"https://api.github.com/repos/apptentive/ACC/commits{/sha}","git_commits_url":"https://api.github.com/repos/apptentive/ACC/git/commits{/sha}","comments_url":"https://api.github.com/repos/apptentive/ACC/comments{/number}","issue_comment_url":"https://api.github.com/repos/apptentive/ACC/issues/comments{/number}","contents_url":"https://api.github.com/repos/apptentive/ACC/contents/{+path}","compare_url":"https://api.github.com/repos/apptentive/ACC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apptentive/ACC/merges","archive_url":"https://api.github.com/repos/apptentive/ACC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apptentive/ACC/downloads","issues_url":"https://api.github.com/repos/apptentive/ACC/issues{/number}","pulls_url":"https://api.github.com/repos/apptentive/ACC/pulls{/number}","milestones_url":"https://api.github.com/repos/apptentive/ACC/milestones{/number}","notifications_url":"https://api.github.com/repos/apptentive/ACC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apptentive/ACC/labels{/name}","releases_url":"https://api.github.com/repos/apptentive/ACC/releases{/id}","created_at":"2015-08-14T17:39:39Z","updated_at":"2015-09-02T02:19:46Z","pushed_at":"2015-10-19T21:02:25Z","git_url":"git://github.com/apptentive/ACC.git","ssh_url":"git@github.com:apptentive/ACC.git","clone_url":"https://github.com/apptentive/ACC.git","svn_url":"https://github.com/apptentive/ACC","homepage":null,"size":726,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apptentive/ACC/pulls/8"},"html":{"href":"https://github.com/apptentive/ACC/pull/8"},"issue":{"href":"https://api.github.com/repos/apptentive/ACC/issues/8"},"comments":{"href":"https://api.github.com/repos/apptentive/ACC/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/apptentive/ACC/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/apptentive/ACC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apptentive/ACC/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/apptentive/ACC/statuses/5eb48b8e9133478dfc6adfc6e22710d1d0be6bc9"}}}}