{"action":"created","comment":{"url":"https://api.github.com/repos/nebulab/cangaroo/pulls/comments/75464889","id":75464889,"diff_hunk":"@@ -63,6 +64,31 @@ class FakeJob < Cangaroo::Job\n         expect(Cangaroo::PerformFlow).to_not have_received(:call)\n       end\n \n+      it 'creates a translation record and stores the response' do\n+        job.perform\n+\n+        translation = Cangaroo::Translation.find_by(job_id: job.job_id)\n+\n+        expect(translation).to_not be_nil\n+        expect(translation.successful?).to eq(true)\n+        expect(translation.destination_connection).to eq(destination_connection)\n+        expect(translation.object_type).to eq('orders')\n+        expect(translation.object_key).to eq('id')\n+        expect(translation.object_id).to eq('O123')\n+      end\n+\n+      context 'endpoint communication fails' do\n+        it 'creates a unsuccessful translation model' do\n+          client.stub(:post).and_raise('an error')","path":"spec/jobs/cangaroo/job_spec.rb","position":42,"original_position":42,"commit_id":"3386d1b4040428119527751db0fee2f01f8d7836","original_commit_id":"3386d1b4040428119527751db0fee2f01f8d7836","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2016-08-19T11:11:57Z","updated_at":"2016-08-19T11:11:57Z","html_url":"https://github.com/nebulab/cangaroo/pull/19#discussion_r75464889","pull_request_url":"https://api.github.com/repos/nebulab/cangaroo/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/nebulab/cangaroo/pulls/comments/75464889"},"html":{"href":"https://github.com/nebulab/cangaroo/pull/19#discussion_r75464889"},"pull_request":{"href":"https://api.github.com/repos/nebulab/cangaroo/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/nebulab/cangaroo/pulls/19","id":65399676,"html_url":"https://github.com/nebulab/cangaroo/pull/19","diff_url":"https://github.com/nebulab/cangaroo/pull/19.diff","patch_url":"https://github.com/nebulab/cangaroo/pull/19.patch","issue_url":"https://api.github.com/repos/nebulab/cangaroo/issues/19","number":19,"state":"open","locked":false,"title":"Persistence","user":{"login":"iloveitaly","id":150855,"avatar_url":"https://avatars.githubusercontent.com/u/150855?v=3","gravatar_id":"","url":"https://api.github.com/users/iloveitaly","html_url":"https://github.com/iloveitaly","followers_url":"https://api.github.com/users/iloveitaly/followers","following_url":"https://api.github.com/users/iloveitaly/following{/other_user}","gists_url":"https://api.github.com/users/iloveitaly/gists{/gist_id}","starred_url":"https://api.github.com/users/iloveitaly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iloveitaly/subscriptions","organizations_url":"https://api.github.com/users/iloveitaly/orgs","repos_url":"https://api.github.com/users/iloveitaly/repos","events_url":"https://api.github.com/users/iloveitaly/events{/privacy}","received_events_url":"https://api.github.com/users/iloveitaly/received_events","type":"User","site_admin":false},"body":"Initial audit log / persistence implementation.\r\n\r\nDependent PRs:\r\n\r\n* https://github.com/nebulab/cangaroo/pull/34\r\n* https://github.com/nebulab/cangaroo/pull/30\r\n* https://github.com/nebulab/cangaroo/pull/25\r\n\r\nTODO\r\n\r\n- [ ] specs for attempts\r\n- [ ] response includes the root keys right now. Consider if this is the best approach\r\n- [x] think on polljob logging\r\n- [x] think on logging transformation + request params in attempt","created_at":"2016-04-06T01:58:38Z","updated_at":"2016-08-19T11:11:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e65008c3c8f33046991031d1508de9281212c5ed","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nebulab/cangaroo/pulls/19/commits","review_comments_url":"https://api.github.com/repos/nebulab/cangaroo/pulls/19/comments","review_comment_url":"https://api.github.com/repos/nebulab/cangaroo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nebulab/cangaroo/issues/19/comments","statuses_url":"https://api.github.com/repos/nebulab/cangaroo/statuses/3386d1b4040428119527751db0fee2f01f8d7836","head":{"label":"iloveitaly:persistence","ref":"persistence","sha":"3386d1b4040428119527751db0fee2f01f8d7836","user":{"login":"iloveitaly","id":150855,"avatar_url":"https://avatars.githubusercontent.com/u/150855?v=3","gravatar_id":"","url":"https://api.github.com/users/iloveitaly","html_url":"https://github.com/iloveitaly","followers_url":"https://api.github.com/users/iloveitaly/followers","following_url":"https://api.github.com/users/iloveitaly/following{/other_user}","gists_url":"https://api.github.com/users/iloveitaly/gists{/gist_id}","starred_url":"https://api.github.com/users/iloveitaly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iloveitaly/subscriptions","organizations_url":"https://api.github.com/users/iloveitaly/orgs","repos_url":"https://api.github.com/users/iloveitaly/repos","events_url":"https://api.github.com/users/iloveitaly/events{/privacy}","received_events_url":"https://api.github.com/users/iloveitaly/received_events","type":"User","site_admin":false},"repo":{"id":54063747,"name":"cangaroo","full_name":"iloveitaly/cangaroo","owner":{"login":"iloveitaly","id":150855,"avatar_url":"https://avatars.githubusercontent.com/u/150855?v=3","gravatar_id":"","url":"https://api.github.com/users/iloveitaly","html_url":"https://github.com/iloveitaly","followers_url":"https://api.github.com/users/iloveitaly/followers","following_url":"https://api.github.com/users/iloveitaly/following{/other_user}","gists_url":"https://api.github.com/users/iloveitaly/gists{/gist_id}","starred_url":"https://api.github.com/users/iloveitaly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iloveitaly/subscriptions","organizations_url":"https://api.github.com/users/iloveitaly/orgs","repos_url":"https://api.github.com/users/iloveitaly/repos","events_url":"https://api.github.com/users/iloveitaly/events{/privacy}","received_events_url":"https://api.github.com/users/iloveitaly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iloveitaly/cangaroo","description":"Connect Any App to Any Service","fork":true,"url":"https://api.github.com/repos/iloveitaly/cangaroo","forks_url":"https://api.github.com/repos/iloveitaly/cangaroo/forks","keys_url":"https://api.github.com/repos/iloveitaly/cangaroo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iloveitaly/cangaroo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iloveitaly/cangaroo/teams","hooks_url":"https://api.github.com/repos/iloveitaly/cangaroo/hooks","issue_events_url":"https://api.github.com/repos/iloveitaly/cangaroo/issues/events{/number}","events_url":"https://api.github.com/repos/iloveitaly/cangaroo/events","assignees_url":"https://api.github.com/repos/iloveitaly/cangaroo/assignees{/user}","branches_url":"https://api.github.com/repos/iloveitaly/cangaroo/branches{/branch}","tags_url":"https://api.github.com/repos/iloveitaly/cangaroo/tags","blobs_url":"https://api.github.com/repos/iloveitaly/cangaroo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iloveitaly/cangaroo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iloveitaly/cangaroo/git/refs{/sha}","trees_url":"https://api.github.com/repos/iloveitaly/cangaroo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iloveitaly/cangaroo/statuses/{sha}","languages_url":"https://api.github.com/repos/iloveitaly/cangaroo/languages","stargazers_url":"https://api.github.com/repos/iloveitaly/cangaroo/stargazers","contributors_url":"https://api.github.com/repos/iloveitaly/cangaroo/contributors","subscribers_url":"https://api.github.com/repos/iloveitaly/cangaroo/subscribers","subscription_url":"https://api.github.com/repos/iloveitaly/cangaroo/subscription","commits_url":"https://api.github.com/repos/iloveitaly/cangaroo/commits{/sha}","git_commits_url":"https://api.github.com/repos/iloveitaly/cangaroo/git/commits{/sha}","comments_url":"https://api.github.com/repos/iloveitaly/cangaroo/comments{/number}","issue_comment_url":"https://api.github.com/repos/iloveitaly/cangaroo/issues/comments{/number}","contents_url":"https://api.github.com/repos/iloveitaly/cangaroo/contents/{+path}","compare_url":"https://api.github.com/repos/iloveitaly/cangaroo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iloveitaly/cangaroo/merges","archive_url":"https://api.github.com/repos/iloveitaly/cangaroo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iloveitaly/cangaroo/downloads","issues_url":"https://api.github.com/repos/iloveitaly/cangaroo/issues{/number}","pulls_url":"https://api.github.com/repos/iloveitaly/cangaroo/pulls{/number}","milestones_url":"https://api.github.com/repos/iloveitaly/cangaroo/milestones{/number}","notifications_url":"https://api.github.com/repos/iloveitaly/cangaroo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iloveitaly/cangaroo/labels{/name}","releases_url":"https://api.github.com/repos/iloveitaly/cangaroo/releases{/id}","deployments_url":"https://api.github.com/repos/iloveitaly/cangaroo/deployments","created_at":"2016-03-16T20:21:30Z","updated_at":"2016-04-17T19:39:11Z","pushed_at":"2016-08-19T11:11:46Z","git_url":"git://github.com/iloveitaly/cangaroo.git","ssh_url":"git@github.com:iloveitaly/cangaroo.git","clone_url":"https://github.com/iloveitaly/cangaroo.git","svn_url":"https://github.com/iloveitaly/cangaroo","homepage":"https://github.com/nebulab/cangaroo","size":212,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"nebulab:master","ref":"master","sha":"056e5a45c28b22fa1d4a3f2a6246a57fdab695d9","user":{"login":"nebulab","id":809406,"avatar_url":"https://avatars.githubusercontent.com/u/809406?v=3","gravatar_id":"","url":"https://api.github.com/users/nebulab","html_url":"https://github.com/nebulab","followers_url":"https://api.github.com/users/nebulab/followers","following_url":"https://api.github.com/users/nebulab/following{/other_user}","gists_url":"https://api.github.com/users/nebulab/gists{/gist_id}","starred_url":"https://api.github.com/users/nebulab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nebulab/subscriptions","organizations_url":"https://api.github.com/users/nebulab/orgs","repos_url":"https://api.github.com/users/nebulab/repos","events_url":"https://api.github.com/users/nebulab/events{/privacy}","received_events_url":"https://api.github.com/users/nebulab/received_events","type":"Organization","site_admin":false},"repo":{"id":44976590,"name":"cangaroo","full_name":"nebulab/cangaroo","owner":{"login":"nebulab","id":809406,"avatar_url":"https://avatars.githubusercontent.com/u/809406?v=3","gravatar_id":"","url":"https://api.github.com/users/nebulab","html_url":"https://github.com/nebulab","followers_url":"https://api.github.com/users/nebulab/followers","following_url":"https://api.github.com/users/nebulab/following{/other_user}","gists_url":"https://api.github.com/users/nebulab/gists{/gist_id}","starred_url":"https://api.github.com/users/nebulab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nebulab/subscriptions","organizations_url":"https://api.github.com/users/nebulab/orgs","repos_url":"https://api.github.com/users/nebulab/repos","events_url":"https://api.github.com/users/nebulab/events{/privacy}","received_events_url":"https://api.github.com/users/nebulab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nebulab/cangaroo","description":"Connect Any App to Any Service","fork":false,"url":"https://api.github.com/repos/nebulab/cangaroo","forks_url":"https://api.github.com/repos/nebulab/cangaroo/forks","keys_url":"https://api.github.com/repos/nebulab/cangaroo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nebulab/cangaroo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nebulab/cangaroo/teams","hooks_url":"https://api.github.com/repos/nebulab/cangaroo/hooks","issue_events_url":"https://api.github.com/repos/nebulab/cangaroo/issues/events{/number}","events_url":"https://api.github.com/repos/nebulab/cangaroo/events","assignees_url":"https://api.github.com/repos/nebulab/cangaroo/assignees{/user}","branches_url":"https://api.github.com/repos/nebulab/cangaroo/branches{/branch}","tags_url":"https://api.github.com/repos/nebulab/cangaroo/tags","blobs_url":"https://api.github.com/repos/nebulab/cangaroo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nebulab/cangaroo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nebulab/cangaroo/git/refs{/sha}","trees_url":"https://api.github.com/repos/nebulab/cangaroo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nebulab/cangaroo/statuses/{sha}","languages_url":"https://api.github.com/repos/nebulab/cangaroo/languages","stargazers_url":"https://api.github.com/repos/nebulab/cangaroo/stargazers","contributors_url":"https://api.github.com/repos/nebulab/cangaroo/contributors","subscribers_url":"https://api.github.com/repos/nebulab/cangaroo/subscribers","subscription_url":"https://api.github.com/repos/nebulab/cangaroo/subscription","commits_url":"https://api.github.com/repos/nebulab/cangaroo/commits{/sha}","git_commits_url":"https://api.github.com/repos/nebulab/cangaroo/git/commits{/sha}","comments_url":"https://api.github.com/repos/nebulab/cangaroo/comments{/number}","issue_comment_url":"https://api.github.com/repos/nebulab/cangaroo/issues/comments{/number}","contents_url":"https://api.github.com/repos/nebulab/cangaroo/contents/{+path}","compare_url":"https://api.github.com/repos/nebulab/cangaroo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nebulab/cangaroo/merges","archive_url":"https://api.github.com/repos/nebulab/cangaroo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nebulab/cangaroo/downloads","issues_url":"https://api.github.com/repos/nebulab/cangaroo/issues{/number}","pulls_url":"https://api.github.com/repos/nebulab/cangaroo/pulls{/number}","milestones_url":"https://api.github.com/repos/nebulab/cangaroo/milestones{/number}","notifications_url":"https://api.github.com/repos/nebulab/cangaroo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nebulab/cangaroo/labels{/name}","releases_url":"https://api.github.com/repos/nebulab/cangaroo/releases{/id}","deployments_url":"https://api.github.com/repos/nebulab/cangaroo/deployments","created_at":"2015-10-26T15:11:42Z","updated_at":"2016-08-18T19:24:43Z","pushed_at":"2016-08-19T11:11:46Z","git_url":"git://github.com/nebulab/cangaroo.git","ssh_url":"git@github.com:nebulab/cangaroo.git","clone_url":"https://github.com/nebulab/cangaroo.git","svn_url":"https://github.com/nebulab/cangaroo","homepage":"https://github.com/nebulab/cangaroo","size":211,"stargazers_count":50,"watchers_count":50,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":8,"forks":10,"open_issues":8,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nebulab/cangaroo/pulls/19"},"html":{"href":"https://github.com/nebulab/cangaroo/pull/19"},"issue":{"href":"https://api.github.com/repos/nebulab/cangaroo/issues/19"},"comments":{"href":"https://api.github.com/repos/nebulab/cangaroo/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/nebulab/cangaroo/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/nebulab/cangaroo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nebulab/cangaroo/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/nebulab/cangaroo/statuses/3386d1b4040428119527751db0fee2f01f8d7836"}}}}
{"actor":{"display_login":"houndci-bot"}}