{"action":"created","comment":{"url":"https://api.github.com/repos/coduno/compute/pulls/comments/35660956","id":35660956,"diff_hunk":"@@ -3,46 +3,24 @@ package main\n import (\n \t\"flag\"\n \t\"fmt\"\n-\t\"io/ioutil\"\n \t\"net/http\"\n-\t\"os/user\"\n-\t\"path\"\n \t\"strings\"\n \n-\t\"golang.org/x/net/context\"\n-\t\"golang.org/x/oauth2\"\n-\t\"golang.org/x/oauth2/google\"\n-\t\"google.golang.org/cloud\"\n-\t\"google.golang.org/cloud/datastore\"\n-\n \t\"github.com/coduno/compute/runner\"\n \t\"github.com/coduno/engine/cloud/model\"\n+\t\"golang.org/x/net/context\"\n+\t\"google.golang.org/cloud/datastore\"\n )\n \n-var client *http.Client\n+var client *datastore.Client\n \n func init() {\n-\tuser, err := user.Current()\n-\tif err != nil {\n-\t\tpanic(err)\n-\t}\n+\tvar err error\n+\tclient, err = datastore.NewClient(context.Background(), \"coduno\")","path":"main.go","position":31,"original_position":31,"commit_id":"48aacc3ab3414eb27b77c7dac2b45416157951bc","original_commit_id":"48aacc3ab3414eb27b77c7dac2b45416157951bc","user":{"login":"flowlo","id":542154,"avatar_url":"https://avatars.githubusercontent.com/u/542154?v=3","gravatar_id":"","url":"https://api.github.com/users/flowlo","html_url":"https://github.com/flowlo","followers_url":"https://api.github.com/users/flowlo/followers","following_url":"https://api.github.com/users/flowlo/following{/other_user}","gists_url":"https://api.github.com/users/flowlo/gists{/gist_id}","starred_url":"https://api.github.com/users/flowlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flowlo/subscriptions","organizations_url":"https://api.github.com/users/flowlo/orgs","repos_url":"https://api.github.com/users/flowlo/repos","events_url":"https://api.github.com/users/flowlo/events{/privacy}","received_events_url":"https://api.github.com/users/flowlo/received_events","type":"User","site_admin":false},"body":"Make this a `const appId = \"coduno\"`.","created_at":"2015-07-28T15:29:11Z","updated_at":"2015-07-28T15:29:11Z","html_url":"https://github.com/coduno/compute/pull/7#discussion_r35660956","pull_request_url":"https://api.github.com/repos/coduno/compute/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/coduno/compute/pulls/comments/35660956"},"html":{"href":"https://github.com/coduno/compute/pull/7#discussion_r35660956"},"pull_request":{"href":"https://api.github.com/repos/coduno/compute/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/coduno/compute/pulls/7","id":41022414,"html_url":"https://github.com/coduno/compute/pull/7","diff_url":"https://github.com/coduno/compute/pull/7.diff","patch_url":"https://github.com/coduno/compute/pull/7.patch","issue_url":"https://api.github.com/repos/coduno/compute/issues/7","number":7,"state":"open","locked":false,"title":"logging, switch to client type datastore","user":{"login":"victorbalan","id":9076766,"avatar_url":"https://avatars.githubusercontent.com/u/9076766?v=3","gravatar_id":"","url":"https://api.github.com/users/victorbalan","html_url":"https://github.com/victorbalan","followers_url":"https://api.github.com/users/victorbalan/followers","following_url":"https://api.github.com/users/victorbalan/following{/other_user}","gists_url":"https://api.github.com/users/victorbalan/gists{/gist_id}","starred_url":"https://api.github.com/users/victorbalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorbalan/subscriptions","organizations_url":"https://api.github.com/users/victorbalan/orgs","repos_url":"https://api.github.com/users/victorbalan/repos","events_url":"https://api.github.com/users/victorbalan/events{/privacy}","received_events_url":"https://api.github.com/users/victorbalan/received_events","type":"User","site_admin":false},"body":" * Enable logging\r\n * Introduces:\r\n   - logger.LogRun\r\n   - logger.LogInfo","created_at":"2015-07-28T15:08:26Z","updated_at":"2015-07-28T15:29:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f334ef1cc0030cd9016f5f6fbed711ed1a76c29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coduno/compute/pulls/7/commits","review_comments_url":"https://api.github.com/repos/coduno/compute/pulls/7/comments","review_comment_url":"https://api.github.com/repos/coduno/compute/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coduno/compute/issues/7/comments","statuses_url":"https://api.github.com/repos/coduno/compute/statuses/48aacc3ab3414eb27b77c7dac2b45416157951bc","head":{"label":"victorbalan:logging","ref":"logging","sha":"48aacc3ab3414eb27b77c7dac2b45416157951bc","user":{"login":"victorbalan","id":9076766,"avatar_url":"https://avatars.githubusercontent.com/u/9076766?v=3","gravatar_id":"","url":"https://api.github.com/users/victorbalan","html_url":"https://github.com/victorbalan","followers_url":"https://api.github.com/users/victorbalan/followers","following_url":"https://api.github.com/users/victorbalan/following{/other_user}","gists_url":"https://api.github.com/users/victorbalan/gists{/gist_id}","starred_url":"https://api.github.com/users/victorbalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorbalan/subscriptions","organizations_url":"https://api.github.com/users/victorbalan/orgs","repos_url":"https://api.github.com/users/victorbalan/repos","events_url":"https://api.github.com/users/victorbalan/events{/privacy}","received_events_url":"https://api.github.com/users/victorbalan/received_events","type":"User","site_admin":false},"repo":{"id":39010688,"name":"compute","full_name":"victorbalan/compute","owner":{"login":"victorbalan","id":9076766,"avatar_url":"https://avatars.githubusercontent.com/u/9076766?v=3","gravatar_id":"","url":"https://api.github.com/users/victorbalan","html_url":"https://github.com/victorbalan","followers_url":"https://api.github.com/users/victorbalan/followers","following_url":"https://api.github.com/users/victorbalan/following{/other_user}","gists_url":"https://api.github.com/users/victorbalan/gists{/gist_id}","starred_url":"https://api.github.com/users/victorbalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorbalan/subscriptions","organizations_url":"https://api.github.com/users/victorbalan/orgs","repos_url":"https://api.github.com/users/victorbalan/repos","events_url":"https://api.github.com/users/victorbalan/events{/privacy}","received_events_url":"https://api.github.com/users/victorbalan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/victorbalan/compute","description":null,"fork":true,"url":"https://api.github.com/repos/victorbalan/compute","forks_url":"https://api.github.com/repos/victorbalan/compute/forks","keys_url":"https://api.github.com/repos/victorbalan/compute/keys{/key_id}","collaborators_url":"https://api.github.com/repos/victorbalan/compute/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/victorbalan/compute/teams","hooks_url":"https://api.github.com/repos/victorbalan/compute/hooks","issue_events_url":"https://api.github.com/repos/victorbalan/compute/issues/events{/number}","events_url":"https://api.github.com/repos/victorbalan/compute/events","assignees_url":"https://api.github.com/repos/victorbalan/compute/assignees{/user}","branches_url":"https://api.github.com/repos/victorbalan/compute/branches{/branch}","tags_url":"https://api.github.com/repos/victorbalan/compute/tags","blobs_url":"https://api.github.com/repos/victorbalan/compute/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/victorbalan/compute/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/victorbalan/compute/git/refs{/sha}","trees_url":"https://api.github.com/repos/victorbalan/compute/git/trees{/sha}","statuses_url":"https://api.github.com/repos/victorbalan/compute/statuses/{sha}","languages_url":"https://api.github.com/repos/victorbalan/compute/languages","stargazers_url":"https://api.github.com/repos/victorbalan/compute/stargazers","contributors_url":"https://api.github.com/repos/victorbalan/compute/contributors","subscribers_url":"https://api.github.com/repos/victorbalan/compute/subscribers","subscription_url":"https://api.github.com/repos/victorbalan/compute/subscription","commits_url":"https://api.github.com/repos/victorbalan/compute/commits{/sha}","git_commits_url":"https://api.github.com/repos/victorbalan/compute/git/commits{/sha}","comments_url":"https://api.github.com/repos/victorbalan/compute/comments{/number}","issue_comment_url":"https://api.github.com/repos/victorbalan/compute/issues/comments{/number}","contents_url":"https://api.github.com/repos/victorbalan/compute/contents/{+path}","compare_url":"https://api.github.com/repos/victorbalan/compute/compare/{base}...{head}","merges_url":"https://api.github.com/repos/victorbalan/compute/merges","archive_url":"https://api.github.com/repos/victorbalan/compute/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/victorbalan/compute/downloads","issues_url":"https://api.github.com/repos/victorbalan/compute/issues{/number}","pulls_url":"https://api.github.com/repos/victorbalan/compute/pulls{/number}","milestones_url":"https://api.github.com/repos/victorbalan/compute/milestones{/number}","notifications_url":"https://api.github.com/repos/victorbalan/compute/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/victorbalan/compute/labels{/name}","releases_url":"https://api.github.com/repos/victorbalan/compute/releases{/id}","created_at":"2015-07-13T12:28:09Z","updated_at":"2015-07-28T05:59:28Z","pushed_at":"2015-07-28T15:07:20Z","git_url":"git://github.com/victorbalan/compute.git","ssh_url":"git@github.com:victorbalan/compute.git","clone_url":"https://github.com/victorbalan/compute.git","svn_url":"https://github.com/victorbalan/compute","homepage":null,"size":108,"stargazers_count":0,"watchers_count":0,"language":"Go","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":0,"default_branch":"master"}},"base":{"label":"coduno:master","ref":"master","sha":"63093db04efdda298cd56c73c0fe701e53dd3e77","user":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"repo":{"id":38737405,"name":"compute","full_name":"coduno/compute","owner":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coduno/compute","description":null,"fork":false,"url":"https://api.github.com/repos/coduno/compute","forks_url":"https://api.github.com/repos/coduno/compute/forks","keys_url":"https://api.github.com/repos/coduno/compute/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coduno/compute/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coduno/compute/teams","hooks_url":"https://api.github.com/repos/coduno/compute/hooks","issue_events_url":"https://api.github.com/repos/coduno/compute/issues/events{/number}","events_url":"https://api.github.com/repos/coduno/compute/events","assignees_url":"https://api.github.com/repos/coduno/compute/assignees{/user}","branches_url":"https://api.github.com/repos/coduno/compute/branches{/branch}","tags_url":"https://api.github.com/repos/coduno/compute/tags","blobs_url":"https://api.github.com/repos/coduno/compute/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coduno/compute/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coduno/compute/git/refs{/sha}","trees_url":"https://api.github.com/repos/coduno/compute/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coduno/compute/statuses/{sha}","languages_url":"https://api.github.com/repos/coduno/compute/languages","stargazers_url":"https://api.github.com/repos/coduno/compute/stargazers","contributors_url":"https://api.github.com/repos/coduno/compute/contributors","subscribers_url":"https://api.github.com/repos/coduno/compute/subscribers","subscription_url":"https://api.github.com/repos/coduno/compute/subscription","commits_url":"https://api.github.com/repos/coduno/compute/commits{/sha}","git_commits_url":"https://api.github.com/repos/coduno/compute/git/commits{/sha}","comments_url":"https://api.github.com/repos/coduno/compute/comments{/number}","issue_comment_url":"https://api.github.com/repos/coduno/compute/issues/comments{/number}","contents_url":"https://api.github.com/repos/coduno/compute/contents/{+path}","compare_url":"https://api.github.com/repos/coduno/compute/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coduno/compute/merges","archive_url":"https://api.github.com/repos/coduno/compute/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coduno/compute/downloads","issues_url":"https://api.github.com/repos/coduno/compute/issues{/number}","pulls_url":"https://api.github.com/repos/coduno/compute/pulls{/number}","milestones_url":"https://api.github.com/repos/coduno/compute/milestones{/number}","notifications_url":"https://api.github.com/repos/coduno/compute/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coduno/compute/labels{/name}","releases_url":"https://api.github.com/repos/coduno/compute/releases{/id}","created_at":"2015-07-08T06:54:15Z","updated_at":"2015-07-27T18:01:48Z","pushed_at":"2015-07-28T15:08:27Z","git_url":"git://github.com/coduno/compute.git","ssh_url":"git@github.com:coduno/compute.git","clone_url":"https://github.com/coduno/compute.git","svn_url":"https://github.com/coduno/compute","homepage":null,"size":149,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coduno/compute/pulls/7"},"html":{"href":"https://github.com/coduno/compute/pull/7"},"issue":{"href":"https://api.github.com/repos/coduno/compute/issues/7"},"comments":{"href":"https://api.github.com/repos/coduno/compute/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/coduno/compute/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/coduno/compute/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coduno/compute/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/coduno/compute/statuses/48aacc3ab3414eb27b77c7dac2b45416157951bc"}}}}