{"action":"created","comment":{"url":"https://api.github.com/repos/fullstorydev/hauser/pulls/comments/241954698","pull_request_review_id":185360386,"id":241954698,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTk1NDY5OA==","diff_hunk":"@@ -110,14 +110,19 @@ func (rs *Redshift) UploadFile(name string) (string, error) {\n \tdefer cancelFn()\n \n \t_, objName := filepath.Split(name)\n-\ts3path := fmt.Sprintf(\"s3://%s/%s\", rs.conf.S3.Bucket, objName)\n+\n+\tbucketParts := strings.Split(rs.conf.S3.Bucket, \"/\")\n+\tbucketName := bucketParts[0]\n+\tkeyPath := strings.Trim(strings.Join(bucketParts[1:], \"/\"), \"/\")\n+\tkey := fmt.Sprintf(\"%s/%s\", keyPath, objName)","path":"warehouse/redshift.go","position":null,"original_position":9,"commit_id":"5b719f5d67f4a4134117845eb658fa640b349325","original_commit_id":"57c1032a6460eb14e18c82f68cde9fe922f80e41","user":{"login":"patrick-fs","id":45576380,"node_id":"MDQ6VXNlcjQ1NTc2Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/45576380?v=4","gravatar_id":"","url":"https://api.github.com/users/patrick-fs","html_url":"https://github.com/patrick-fs","followers_url":"https://api.github.com/users/patrick-fs/followers","following_url":"https://api.github.com/users/patrick-fs/following{/other_user}","gists_url":"https://api.github.com/users/patrick-fs/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick-fs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick-fs/subscriptions","organizations_url":"https://api.github.com/users/patrick-fs/orgs","repos_url":"https://api.github.com/users/patrick-fs/repos","events_url":"https://api.github.com/users/patrick-fs/events{/privacy}","received_events_url":"https://api.github.com/users/patrick-fs/received_events","type":"User","site_admin":false},"body":"Done!","created_at":"2018-12-15T16:48:31Z","updated_at":"2018-12-15T16:48:31Z","html_url":"https://github.com/fullstorydev/hauser/pull/39#discussion_r241954698","pull_request_url":"https://api.github.com/repos/fullstorydev/hauser/pulls/39","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/fullstorydev/hauser/pulls/comments/241954698"},"html":{"href":"https://github.com/fullstorydev/hauser/pull/39#discussion_r241954698"},"pull_request":{"href":"https://api.github.com/repos/fullstorydev/hauser/pulls/39"}},"in_reply_to_id":241756779},"pull_request":{"url":"https://api.github.com/repos/fullstorydev/hauser/pulls/39","id":238198703,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4MTk4NzAz","html_url":"https://github.com/fullstorydev/hauser/pull/39","diff_url":"https://github.com/fullstorydev/hauser/pull/39.diff","patch_url":"https://github.com/fullstorydev/hauser/pull/39.patch","issue_url":"https://api.github.com/repos/fullstorydev/hauser/issues/39","number":39,"state":"open","locked":false,"title":"fix for issue https://github.com/fullstorydev/hauser/issues/34","user":{"login":"patrick-fs","id":45576380,"node_id":"MDQ6VXNlcjQ1NTc2Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/45576380?v=4","gravatar_id":"","url":"https://api.github.com/users/patrick-fs","html_url":"https://github.com/patrick-fs","followers_url":"https://api.github.com/users/patrick-fs/followers","following_url":"https://api.github.com/users/patrick-fs/following{/other_user}","gists_url":"https://api.github.com/users/patrick-fs/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick-fs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick-fs/subscriptions","organizations_url":"https://api.github.com/users/patrick-fs/orgs","repos_url":"https://api.github.com/users/patrick-fs/repos","events_url":"https://api.github.com/users/patrick-fs/events{/privacy}","received_events_url":"https://api.github.com/users/patrick-fs/received_events","type":"User","site_admin":false},"body":"Verified the following values for config.toml/s3/Bucket:\r\n\r\npatrick-fs-test/fullstory/\r\npatrick-fs-test/fullstory\r\npatrick-fs-test/\r\npatrick-fs-test","created_at":"2018-12-12T22:07:51Z","updated_at":"2018-12-15T16:48:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69a65370b73c76e6a45dfb63d945b7c7a68eda9d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fullstorydev/hauser/pulls/39/commits","review_comments_url":"https://api.github.com/repos/fullstorydev/hauser/pulls/39/comments","review_comment_url":"https://api.github.com/repos/fullstorydev/hauser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fullstorydev/hauser/issues/39/comments","statuses_url":"https://api.github.com/repos/fullstorydev/hauser/statuses/5b719f5d67f4a4134117845eb658fa640b349325","head":{"label":"patrick-fs:patrick/s3-keypath-fix","ref":"patrick/s3-keypath-fix","sha":"5b719f5d67f4a4134117845eb658fa640b349325","user":{"login":"patrick-fs","id":45576380,"node_id":"MDQ6VXNlcjQ1NTc2Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/45576380?v=4","gravatar_id":"","url":"https://api.github.com/users/patrick-fs","html_url":"https://github.com/patrick-fs","followers_url":"https://api.github.com/users/patrick-fs/followers","following_url":"https://api.github.com/users/patrick-fs/following{/other_user}","gists_url":"https://api.github.com/users/patrick-fs/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick-fs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick-fs/subscriptions","organizations_url":"https://api.github.com/users/patrick-fs/orgs","repos_url":"https://api.github.com/users/patrick-fs/repos","events_url":"https://api.github.com/users/patrick-fs/events{/privacy}","received_events_url":"https://api.github.com/users/patrick-fs/received_events","type":"User","site_admin":false},"repo":{"id":160720231,"node_id":"MDEwOlJlcG9zaXRvcnkxNjA3MjAyMzE=","name":"hauser","full_name":"patrick-fs/hauser","private":false,"owner":{"login":"patrick-fs","id":45576380,"node_id":"MDQ6VXNlcjQ1NTc2Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/45576380?v=4","gravatar_id":"","url":"https://api.github.com/users/patrick-fs","html_url":"https://github.com/patrick-fs","followers_url":"https://api.github.com/users/patrick-fs/followers","following_url":"https://api.github.com/users/patrick-fs/following{/other_user}","gists_url":"https://api.github.com/users/patrick-fs/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick-fs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick-fs/subscriptions","organizations_url":"https://api.github.com/users/patrick-fs/orgs","repos_url":"https://api.github.com/users/patrick-fs/repos","events_url":"https://api.github.com/users/patrick-fs/events{/privacy}","received_events_url":"https://api.github.com/users/patrick-fs/received_events","type":"User","site_admin":false},"html_url":"https://github.com/patrick-fs/hauser","description":"Service for moving your FullStory export files to a data warehouse","fork":true,"url":"https://api.github.com/repos/patrick-fs/hauser","forks_url":"https://api.github.com/repos/patrick-fs/hauser/forks","keys_url":"https://api.github.com/repos/patrick-fs/hauser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patrick-fs/hauser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patrick-fs/hauser/teams","hooks_url":"https://api.github.com/repos/patrick-fs/hauser/hooks","issue_events_url":"https://api.github.com/repos/patrick-fs/hauser/issues/events{/number}","events_url":"https://api.github.com/repos/patrick-fs/hauser/events","assignees_url":"https://api.github.com/repos/patrick-fs/hauser/assignees{/user}","branches_url":"https://api.github.com/repos/patrick-fs/hauser/branches{/branch}","tags_url":"https://api.github.com/repos/patrick-fs/hauser/tags","blobs_url":"https://api.github.com/repos/patrick-fs/hauser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patrick-fs/hauser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patrick-fs/hauser/git/refs{/sha}","trees_url":"https://api.github.com/repos/patrick-fs/hauser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patrick-fs/hauser/statuses/{sha}","languages_url":"https://api.github.com/repos/patrick-fs/hauser/languages","stargazers_url":"https://api.github.com/repos/patrick-fs/hauser/stargazers","contributors_url":"https://api.github.com/repos/patrick-fs/hauser/contributors","subscribers_url":"https://api.github.com/repos/patrick-fs/hauser/subscribers","subscription_url":"https://api.github.com/repos/patrick-fs/hauser/subscription","commits_url":"https://api.github.com/repos/patrick-fs/hauser/commits{/sha}","git_commits_url":"https://api.github.com/repos/patrick-fs/hauser/git/commits{/sha}","comments_url":"https://api.github.com/repos/patrick-fs/hauser/comments{/number}","issue_comment_url":"https://api.github.com/repos/patrick-fs/hauser/issues/comments{/number}","contents_url":"https://api.github.com/repos/patrick-fs/hauser/contents/{+path}","compare_url":"https://api.github.com/repos/patrick-fs/hauser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patrick-fs/hauser/merges","archive_url":"https://api.github.com/repos/patrick-fs/hauser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patrick-fs/hauser/downloads","issues_url":"https://api.github.com/repos/patrick-fs/hauser/issues{/number}","pulls_url":"https://api.github.com/repos/patrick-fs/hauser/pulls{/number}","milestones_url":"https://api.github.com/repos/patrick-fs/hauser/milestones{/number}","notifications_url":"https://api.github.com/repos/patrick-fs/hauser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patrick-fs/hauser/labels{/name}","releases_url":"https://api.github.com/repos/patrick-fs/hauser/releases{/id}","deployments_url":"https://api.github.com/repos/patrick-fs/hauser/deployments","created_at":"2018-12-06T19:13:43Z","updated_at":"2018-12-12T21:04:41Z","pushed_at":"2018-12-14T23:34:23Z","git_url":"git://github.com/patrick-fs/hauser.git","ssh_url":"git@github.com:patrick-fs/hauser.git","clone_url":"https://github.com/patrick-fs/hauser.git","svn_url":"https://github.com/patrick-fs/hauser","homepage":null,"size":33635,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fullstorydev:master","ref":"master","sha":"04131af71ccd772967235804ff1454ce81d083a2","user":{"login":"fullstorydev","id":33756472,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzNzU2NDcy","avatar_url":"https://avatars3.githubusercontent.com/u/33756472?v=4","gravatar_id":"","url":"https://api.github.com/users/fullstorydev","html_url":"https://github.com/fullstorydev","followers_url":"https://api.github.com/users/fullstorydev/followers","following_url":"https://api.github.com/users/fullstorydev/following{/other_user}","gists_url":"https://api.github.com/users/fullstorydev/gists{/gist_id}","starred_url":"https://api.github.com/users/fullstorydev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullstorydev/subscriptions","organizations_url":"https://api.github.com/users/fullstorydev/orgs","repos_url":"https://api.github.com/users/fullstorydev/repos","events_url":"https://api.github.com/users/fullstorydev/events{/privacy}","received_events_url":"https://api.github.com/users/fullstorydev/received_events","type":"Organization","site_admin":false},"repo":{"id":101294833,"node_id":"MDEwOlJlcG9zaXRvcnkxMDEyOTQ4MzM=","name":"hauser","full_name":"fullstorydev/hauser","private":false,"owner":{"login":"fullstorydev","id":33756472,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzNzU2NDcy","avatar_url":"https://avatars3.githubusercontent.com/u/33756472?v=4","gravatar_id":"","url":"https://api.github.com/users/fullstorydev","html_url":"https://github.com/fullstorydev","followers_url":"https://api.github.com/users/fullstorydev/followers","following_url":"https://api.github.com/users/fullstorydev/following{/other_user}","gists_url":"https://api.github.com/users/fullstorydev/gists{/gist_id}","starred_url":"https://api.github.com/users/fullstorydev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullstorydev/subscriptions","organizations_url":"https://api.github.com/users/fullstorydev/orgs","repos_url":"https://api.github.com/users/fullstorydev/repos","events_url":"https://api.github.com/users/fullstorydev/events{/privacy}","received_events_url":"https://api.github.com/users/fullstorydev/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/fullstorydev/hauser","description":"Service for moving your FullStory export files to a data warehouse","fork":false,"url":"https://api.github.com/repos/fullstorydev/hauser","forks_url":"https://api.github.com/repos/fullstorydev/hauser/forks","keys_url":"https://api.github.com/repos/fullstorydev/hauser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fullstorydev/hauser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fullstorydev/hauser/teams","hooks_url":"https://api.github.com/repos/fullstorydev/hauser/hooks","issue_events_url":"https://api.github.com/repos/fullstorydev/hauser/issues/events{/number}","events_url":"https://api.github.com/repos/fullstorydev/hauser/events","assignees_url":"https://api.github.com/repos/fullstorydev/hauser/assignees{/user}","branches_url":"https://api.github.com/repos/fullstorydev/hauser/branches{/branch}","tags_url":"https://api.github.com/repos/fullstorydev/hauser/tags","blobs_url":"https://api.github.com/repos/fullstorydev/hauser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fullstorydev/hauser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fullstorydev/hauser/git/refs{/sha}","trees_url":"https://api.github.com/repos/fullstorydev/hauser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fullstorydev/hauser/statuses/{sha}","languages_url":"https://api.github.com/repos/fullstorydev/hauser/languages","stargazers_url":"https://api.github.com/repos/fullstorydev/hauser/stargazers","contributors_url":"https://api.github.com/repos/fullstorydev/hauser/contributors","subscribers_url":"https://api.github.com/repos/fullstorydev/hauser/subscribers","subscription_url":"https://api.github.com/repos/fullstorydev/hauser/subscription","commits_url":"https://api.github.com/repos/fullstorydev/hauser/commits{/sha}","git_commits_url":"https://api.github.com/repos/fullstorydev/hauser/git/commits{/sha}","comments_url":"https://api.github.com/repos/fullstorydev/hauser/comments{/number}","issue_comment_url":"https://api.github.com/repos/fullstorydev/hauser/issues/comments{/number}","contents_url":"https://api.github.com/repos/fullstorydev/hauser/contents/{+path}","compare_url":"https://api.github.com/repos/fullstorydev/hauser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fullstorydev/hauser/merges","archive_url":"https://api.github.com/repos/fullstorydev/hauser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fullstorydev/hauser/downloads","issues_url":"https://api.github.com/repos/fullstorydev/hauser/issues{/number}","pulls_url":"https://api.github.com/repos/fullstorydev/hauser/pulls{/number}","milestones_url":"https://api.github.com/repos/fullstorydev/hauser/milestones{/number}","notifications_url":"https://api.github.com/repos/fullstorydev/hauser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fullstorydev/hauser/labels{/name}","releases_url":"https://api.github.com/repos/fullstorydev/hauser/releases{/id}","deployments_url":"https://api.github.com/repos/fullstorydev/hauser/deployments","created_at":"2017-08-24T12:55:29Z","updated_at":"2018-12-12T15:09:41Z","pushed_at":"2018-12-14T23:34:24Z","git_url":"git://github.com/fullstorydev/hauser.git","ssh_url":"git@github.com:fullstorydev/hauser.git","clone_url":"https://github.com/fullstorydev/hauser.git","svn_url":"https://github.com/fullstorydev/hauser","homepage":null,"size":33579,"stargazers_count":11,"watchers_count":11,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":7,"open_issues":8,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fullstorydev/hauser/pulls/39"},"html":{"href":"https://github.com/fullstorydev/hauser/pull/39"},"issue":{"href":"https://api.github.com/repos/fullstorydev/hauser/issues/39"},"comments":{"href":"https://api.github.com/repos/fullstorydev/hauser/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/fullstorydev/hauser/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/fullstorydev/hauser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fullstorydev/hauser/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/fullstorydev/hauser/statuses/5b719f5d67f4a4134117845eb658fa640b349325"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"patrick-fs"}}