{"action":"created","comment":{"url":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/comments/167663314","pull_request_review_id":95914501,"id":167663314,"diff_hunk":"@@ -0,0 +1,61 @@\n+\n+\n+import datetime\n+import argparse\n+import subprocess\n+import os\n+import parsely_raw_data.redshift as redshift\n+\n+def daterange(d1, d2):\n+    return (d1 + datetime.timedelta(days=i) for i in range((d2 - d1).days + 1))","path":"dbt/parsely_dpl/historical_script.py","position":10,"original_position":10,"commit_id":"938ca87004418a51e54d92848895e09a09e7978c","original_commit_id":"938ca87004418a51e54d92848895e09a09e7978c","user":{"login":"rachelannelise","id":15525741,"avatar_url":"https://avatars3.githubusercontent.com/u/15525741?v=4","gravatar_id":"","url":"https://api.github.com/users/rachelannelise","html_url":"https://github.com/rachelannelise","followers_url":"https://api.github.com/users/rachelannelise/followers","following_url":"https://api.github.com/users/rachelannelise/following{/other_user}","gists_url":"https://api.github.com/users/rachelannelise/gists{/gist_id}","starred_url":"https://api.github.com/users/rachelannelise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachelannelise/subscriptions","organizations_url":"https://api.github.com/users/rachelannelise/orgs","repos_url":"https://api.github.com/users/rachelannelise/repos","events_url":"https://api.github.com/users/rachelannelise/events{/privacy}","received_events_url":"https://api.github.com/users/rachelannelise/received_events","type":"User","site_admin":false},"body":"This will be specific to the time of the computer/server that the script is being run on - I don't think this is something we can control. It will match the date inputted with the S3 bucket date. Which may be in UTC.","created_at":"2018-02-12T19:36:14Z","updated_at":"2018-02-12T19:36:14Z","html_url":"https://github.com/Parsely/parsely_raw_data/pull/28#discussion_r167663314","pull_request_url":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/28","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/comments/167663314"},"html":{"href":"https://github.com/Parsely/parsely_raw_data/pull/28#discussion_r167663314"},"pull_request":{"href":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/28"}},"in_reply_to_id":163591368},"pull_request":{"url":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/28","id":164682361,"html_url":"https://github.com/Parsely/parsely_raw_data/pull/28","diff_url":"https://github.com/Parsely/parsely_raw_data/pull/28.diff","patch_url":"https://github.com/Parsely/parsely_raw_data/pull/28.patch","issue_url":"https://api.github.com/repos/Parsely/parsely_raw_data/issues/28","number":28,"state":"open","locked":false,"title":"[WIP] Parse.ly DPL DBT Redshift v0.1","user":{"login":"rachelannelise","id":15525741,"avatar_url":"https://avatars3.githubusercontent.com/u/15525741?v=4","gravatar_id":"","url":"https://api.github.com/users/rachelannelise","html_url":"https://github.com/rachelannelise","followers_url":"https://api.github.com/users/rachelannelise/followers","following_url":"https://api.github.com/users/rachelannelise/following{/other_user}","gists_url":"https://api.github.com/users/rachelannelise/gists{/gist_id}","starred_url":"https://api.github.com/users/rachelannelise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachelannelise/subscriptions","organizations_url":"https://api.github.com/users/rachelannelise/orgs","repos_url":"https://api.github.com/users/rachelannelise/repos","events_url":"https://api.github.com/users/rachelannelise/events{/privacy}","received_events_url":"https://api.github.com/users/rachelannelise/received_events","type":"User","site_admin":false},"body":"This is the merge of of the DBT project into the parsely_raw_data master branch. It includes a subfolder called dbt in the parsely_raw_data root. No other changes were made to the main parsely_raw_data folder.","created_at":"2018-01-23T20:33:19Z","updated_at":"2018-02-12T19:36:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb86a91a23f595ca2091b4ccea9bc7f686fa4b45","assignee":{"login":"rachelannelise","id":15525741,"avatar_url":"https://avatars3.githubusercontent.com/u/15525741?v=4","gravatar_id":"","url":"https://api.github.com/users/rachelannelise","html_url":"https://github.com/rachelannelise","followers_url":"https://api.github.com/users/rachelannelise/followers","following_url":"https://api.github.com/users/rachelannelise/following{/other_user}","gists_url":"https://api.github.com/users/rachelannelise/gists{/gist_id}","starred_url":"https://api.github.com/users/rachelannelise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachelannelise/subscriptions","organizations_url":"https://api.github.com/users/rachelannelise/orgs","repos_url":"https://api.github.com/users/rachelannelise/repos","events_url":"https://api.github.com/users/rachelannelise/events{/privacy}","received_events_url":"https://api.github.com/users/rachelannelise/received_events","type":"User","site_admin":false},"assignees":[{"login":"rachelannelise","id":15525741,"avatar_url":"https://avatars3.githubusercontent.com/u/15525741?v=4","gravatar_id":"","url":"https://api.github.com/users/rachelannelise","html_url":"https://github.com/rachelannelise","followers_url":"https://api.github.com/users/rachelannelise/followers","following_url":"https://api.github.com/users/rachelannelise/following{/other_user}","gists_url":"https://api.github.com/users/rachelannelise/gists{/gist_id}","starred_url":"https://api.github.com/users/rachelannelise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachelannelise/subscriptions","organizations_url":"https://api.github.com/users/rachelannelise/orgs","repos_url":"https://api.github.com/users/rachelannelise/repos","events_url":"https://api.github.com/users/rachelannelise/events{/privacy}","received_events_url":"https://api.github.com/users/rachelannelise/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/28/commits","review_comments_url":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/28/comments","review_comment_url":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Parsely/parsely_raw_data/issues/28/comments","statuses_url":"https://api.github.com/repos/Parsely/parsely_raw_data/statuses/938ca87004418a51e54d92848895e09a09e7978c","head":{"label":"Parsely:dbt","ref":"dbt","sha":"938ca87004418a51e54d92848895e09a09e7978c","user":{"login":"Parsely","id":779641,"avatar_url":"https://avatars0.githubusercontent.com/u/779641?v=4","gravatar_id":"","url":"https://api.github.com/users/Parsely","html_url":"https://github.com/Parsely","followers_url":"https://api.github.com/users/Parsely/followers","following_url":"https://api.github.com/users/Parsely/following{/other_user}","gists_url":"https://api.github.com/users/Parsely/gists{/gist_id}","starred_url":"https://api.github.com/users/Parsely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parsely/subscriptions","organizations_url":"https://api.github.com/users/Parsely/orgs","repos_url":"https://api.github.com/users/Parsely/repos","events_url":"https://api.github.com/users/Parsely/events{/privacy}","received_events_url":"https://api.github.com/users/Parsely/received_events","type":"Organization","site_admin":false},"repo":{"id":53873124,"name":"parsely_raw_data","full_name":"Parsely/parsely_raw_data","owner":{"login":"Parsely","id":779641,"avatar_url":"https://avatars0.githubusercontent.com/u/779641?v=4","gravatar_id":"","url":"https://api.github.com/users/Parsely","html_url":"https://github.com/Parsely","followers_url":"https://api.github.com/users/Parsely/followers","following_url":"https://api.github.com/users/Parsely/following{/other_user}","gists_url":"https://api.github.com/users/Parsely/gists{/gist_id}","starred_url":"https://api.github.com/users/Parsely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parsely/subscriptions","organizations_url":"https://api.github.com/users/Parsely/orgs","repos_url":"https://api.github.com/users/Parsely/repos","events_url":"https://api.github.com/users/Parsely/events{/privacy}","received_events_url":"https://api.github.com/users/Parsely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Parsely/parsely_raw_data","description":"Access Parse.ly raw data via Amazon S3 and Kinesis","fork":false,"url":"https://api.github.com/repos/Parsely/parsely_raw_data","forks_url":"https://api.github.com/repos/Parsely/parsely_raw_data/forks","keys_url":"https://api.github.com/repos/Parsely/parsely_raw_data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Parsely/parsely_raw_data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Parsely/parsely_raw_data/teams","hooks_url":"https://api.github.com/repos/Parsely/parsely_raw_data/hooks","issue_events_url":"https://api.github.com/repos/Parsely/parsely_raw_data/issues/events{/number}","events_url":"https://api.github.com/repos/Parsely/parsely_raw_data/events","assignees_url":"https://api.github.com/repos/Parsely/parsely_raw_data/assignees{/user}","branches_url":"https://api.github.com/repos/Parsely/parsely_raw_data/branches{/branch}","tags_url":"https://api.github.com/repos/Parsely/parsely_raw_data/tags","blobs_url":"https://api.github.com/repos/Parsely/parsely_raw_data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Parsely/parsely_raw_data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Parsely/parsely_raw_data/git/refs{/sha}","trees_url":"https://api.github.com/repos/Parsely/parsely_raw_data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Parsely/parsely_raw_data/statuses/{sha}","languages_url":"https://api.github.com/repos/Parsely/parsely_raw_data/languages","stargazers_url":"https://api.github.com/repos/Parsely/parsely_raw_data/stargazers","contributors_url":"https://api.github.com/repos/Parsely/parsely_raw_data/contributors","subscribers_url":"https://api.github.com/repos/Parsely/parsely_raw_data/subscribers","subscription_url":"https://api.github.com/repos/Parsely/parsely_raw_data/subscription","commits_url":"https://api.github.com/repos/Parsely/parsely_raw_data/commits{/sha}","git_commits_url":"https://api.github.com/repos/Parsely/parsely_raw_data/git/commits{/sha}","comments_url":"https://api.github.com/repos/Parsely/parsely_raw_data/comments{/number}","issue_comment_url":"https://api.github.com/repos/Parsely/parsely_raw_data/issues/comments{/number}","contents_url":"https://api.github.com/repos/Parsely/parsely_raw_data/contents/{+path}","compare_url":"https://api.github.com/repos/Parsely/parsely_raw_data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Parsely/parsely_raw_data/merges","archive_url":"https://api.github.com/repos/Parsely/parsely_raw_data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Parsely/parsely_raw_data/downloads","issues_url":"https://api.github.com/repos/Parsely/parsely_raw_data/issues{/number}","pulls_url":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls{/number}","milestones_url":"https://api.github.com/repos/Parsely/parsely_raw_data/milestones{/number}","notifications_url":"https://api.github.com/repos/Parsely/parsely_raw_data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Parsely/parsely_raw_data/labels{/name}","releases_url":"https://api.github.com/repos/Parsely/parsely_raw_data/releases{/id}","deployments_url":"https://api.github.com/repos/Parsely/parsely_raw_data/deployments","created_at":"2016-03-14T16:34:34Z","updated_at":"2018-02-09T21:09:54Z","pushed_at":"2018-01-24T19:58:40Z","git_url":"git://github.com/Parsely/parsely_raw_data.git","ssh_url":"git@github.com:Parsely/parsely_raw_data.git","clone_url":"https://github.com/Parsely/parsely_raw_data.git","svn_url":"https://github.com/Parsely/parsely_raw_data","homepage":"","size":449,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":3,"open_issues":3,"watchers":6,"default_branch":"master"}},"base":{"label":"Parsely:master","ref":"master","sha":"405567a79cf28f8a75c8793fe268e370fe0e13cd","user":{"login":"Parsely","id":779641,"avatar_url":"https://avatars0.githubusercontent.com/u/779641?v=4","gravatar_id":"","url":"https://api.github.com/users/Parsely","html_url":"https://github.com/Parsely","followers_url":"https://api.github.com/users/Parsely/followers","following_url":"https://api.github.com/users/Parsely/following{/other_user}","gists_url":"https://api.github.com/users/Parsely/gists{/gist_id}","starred_url":"https://api.github.com/users/Parsely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parsely/subscriptions","organizations_url":"https://api.github.com/users/Parsely/orgs","repos_url":"https://api.github.com/users/Parsely/repos","events_url":"https://api.github.com/users/Parsely/events{/privacy}","received_events_url":"https://api.github.com/users/Parsely/received_events","type":"Organization","site_admin":false},"repo":{"id":53873124,"name":"parsely_raw_data","full_name":"Parsely/parsely_raw_data","owner":{"login":"Parsely","id":779641,"avatar_url":"https://avatars0.githubusercontent.com/u/779641?v=4","gravatar_id":"","url":"https://api.github.com/users/Parsely","html_url":"https://github.com/Parsely","followers_url":"https://api.github.com/users/Parsely/followers","following_url":"https://api.github.com/users/Parsely/following{/other_user}","gists_url":"https://api.github.com/users/Parsely/gists{/gist_id}","starred_url":"https://api.github.com/users/Parsely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parsely/subscriptions","organizations_url":"https://api.github.com/users/Parsely/orgs","repos_url":"https://api.github.com/users/Parsely/repos","events_url":"https://api.github.com/users/Parsely/events{/privacy}","received_events_url":"https://api.github.com/users/Parsely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Parsely/parsely_raw_data","description":"Access Parse.ly raw data via Amazon S3 and Kinesis","fork":false,"url":"https://api.github.com/repos/Parsely/parsely_raw_data","forks_url":"https://api.github.com/repos/Parsely/parsely_raw_data/forks","keys_url":"https://api.github.com/repos/Parsely/parsely_raw_data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Parsely/parsely_raw_data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Parsely/parsely_raw_data/teams","hooks_url":"https://api.github.com/repos/Parsely/parsely_raw_data/hooks","issue_events_url":"https://api.github.com/repos/Parsely/parsely_raw_data/issues/events{/number}","events_url":"https://api.github.com/repos/Parsely/parsely_raw_data/events","assignees_url":"https://api.github.com/repos/Parsely/parsely_raw_data/assignees{/user}","branches_url":"https://api.github.com/repos/Parsely/parsely_raw_data/branches{/branch}","tags_url":"https://api.github.com/repos/Parsely/parsely_raw_data/tags","blobs_url":"https://api.github.com/repos/Parsely/parsely_raw_data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Parsely/parsely_raw_data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Parsely/parsely_raw_data/git/refs{/sha}","trees_url":"https://api.github.com/repos/Parsely/parsely_raw_data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Parsely/parsely_raw_data/statuses/{sha}","languages_url":"https://api.github.com/repos/Parsely/parsely_raw_data/languages","stargazers_url":"https://api.github.com/repos/Parsely/parsely_raw_data/stargazers","contributors_url":"https://api.github.com/repos/Parsely/parsely_raw_data/contributors","subscribers_url":"https://api.github.com/repos/Parsely/parsely_raw_data/subscribers","subscription_url":"https://api.github.com/repos/Parsely/parsely_raw_data/subscription","commits_url":"https://api.github.com/repos/Parsely/parsely_raw_data/commits{/sha}","git_commits_url":"https://api.github.com/repos/Parsely/parsely_raw_data/git/commits{/sha}","comments_url":"https://api.github.com/repos/Parsely/parsely_raw_data/comments{/number}","issue_comment_url":"https://api.github.com/repos/Parsely/parsely_raw_data/issues/comments{/number}","contents_url":"https://api.github.com/repos/Parsely/parsely_raw_data/contents/{+path}","compare_url":"https://api.github.com/repos/Parsely/parsely_raw_data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Parsely/parsely_raw_data/merges","archive_url":"https://api.github.com/repos/Parsely/parsely_raw_data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Parsely/parsely_raw_data/downloads","issues_url":"https://api.github.com/repos/Parsely/parsely_raw_data/issues{/number}","pulls_url":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls{/number}","milestones_url":"https://api.github.com/repos/Parsely/parsely_raw_data/milestones{/number}","notifications_url":"https://api.github.com/repos/Parsely/parsely_raw_data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Parsely/parsely_raw_data/labels{/name}","releases_url":"https://api.github.com/repos/Parsely/parsely_raw_data/releases{/id}","deployments_url":"https://api.github.com/repos/Parsely/parsely_raw_data/deployments","created_at":"2016-03-14T16:34:34Z","updated_at":"2018-02-09T21:09:54Z","pushed_at":"2018-01-24T19:58:40Z","git_url":"git://github.com/Parsely/parsely_raw_data.git","ssh_url":"git@github.com:Parsely/parsely_raw_data.git","clone_url":"https://github.com/Parsely/parsely_raw_data.git","svn_url":"https://github.com/Parsely/parsely_raw_data","homepage":"","size":449,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":3,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/28"},"html":{"href":"https://github.com/Parsely/parsely_raw_data/pull/28"},"issue":{"href":"https://api.github.com/repos/Parsely/parsely_raw_data/issues/28"},"comments":{"href":"https://api.github.com/repos/Parsely/parsely_raw_data/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Parsely/parsely_raw_data/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/Parsely/parsely_raw_data/statuses/938ca87004418a51e54d92848895e09a09e7978c"}},"author_association":"NONE"}}
{"actor":{"display_login":"rachelannelise"}}