{"action":"created","comment":{"url":"https://api.github.com/repos/harvard-lil/h2o/pulls/comments/151134666","pull_request_review_id":76791839,"id":151134666,"diff_hunk":"@@ -0,0 +1,9 @@\n+## Translate playlists from [this file](https://docs.google.com/spreadsheets/d/1gHHsqbiZNxeYeWApM7GhU4L8wiZuIJP3EvCd_hXk8xk/edit?usp=sharing) these ids were pulled to create the playlist id array. Some of the numbers in the google sheet aren't the most recent version of that playlist, so the spreadsheet and array don't exactly match. This file was last updated 11/14/17 - any playlists added to this file after that date are not included in this array. \n+\n+1. `rake db:schema:load` clear the database and rebuild the sceme\n+2. `pg_restore --verbose --clean --no-acl --no-owner -U h2oadmin -h h2o-alpha-94.coc4xoq8nz1r.us-east-1.rds.amazonaws.com -d h2o ~/h2o_prod-data.dump` port the data dump into the database\n+2a. (for running locally: `pg_restore --verbose --clean --no-acl --no-owner -h localhost -d h2o_dev ~/h2o_prod-data.dump `)","path":"lib/playlist_id_migration_directions.md","position":5,"original_position":5,"commit_id":"c70072e995d36b04202f6bb4942f6c58a8456de3","original_commit_id":"c70072e995d36b04202f6bb4942f6c58a8456de3","user":{"login":"edwardloveall","id":49549,"avatar_url":"https://avatars1.githubusercontent.com/u/49549?v=4","gravatar_id":"","url":"https://api.github.com/users/edwardloveall","html_url":"https://github.com/edwardloveall","followers_url":"https://api.github.com/users/edwardloveall/followers","following_url":"https://api.github.com/users/edwardloveall/following{/other_user}","gists_url":"https://api.github.com/users/edwardloveall/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardloveall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardloveall/subscriptions","organizations_url":"https://api.github.com/users/edwardloveall/orgs","repos_url":"https://api.github.com/users/edwardloveall/repos","events_url":"https://api.github.com/users/edwardloveall/events{/privacy}","received_events_url":"https://api.github.com/users/edwardloveall/received_events","type":"User","site_admin":false},"body":"Same here","created_at":"2017-11-15T14:07:34Z","updated_at":"2017-11-15T14:09:09Z","html_url":"https://github.com/harvard-lil/h2o/pull/194#discussion_r151134666","pull_request_url":"https://api.github.com/repos/harvard-lil/h2o/pulls/194","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/harvard-lil/h2o/pulls/comments/151134666"},"html":{"href":"https://github.com/harvard-lil/h2o/pull/194#discussion_r151134666"},"pull_request":{"href":"https://api.github.com/repos/harvard-lil/h2o/pulls/194"}}},"pull_request":{"url":"https://api.github.com/repos/harvard-lil/h2o/pulls/194","id":152656224,"html_url":"https://github.com/harvard-lil/h2o/pull/194","diff_url":"https://github.com/harvard-lil/h2o/pull/194.diff","patch_url":"https://github.com/harvard-lil/h2o/pull/194.patch","issue_url":"https://api.github.com/repos/harvard-lil/h2o/issues/194","number":194,"state":"open","locked":false,"title":"New migrate script instructions","user":{"login":"cgruppioni","id":14900328,"avatar_url":"https://avatars0.githubusercontent.com/u/14900328?v=4","gravatar_id":"","url":"https://api.github.com/users/cgruppioni","html_url":"https://github.com/cgruppioni","followers_url":"https://api.github.com/users/cgruppioni/followers","following_url":"https://api.github.com/users/cgruppioni/following{/other_user}","gists_url":"https://api.github.com/users/cgruppioni/gists{/gist_id}","starred_url":"https://api.github.com/users/cgruppioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgruppioni/subscriptions","organizations_url":"https://api.github.com/users/cgruppioni/orgs","repos_url":"https://api.github.com/users/cgruppioni/repos","events_url":"https://api.github.com/users/cgruppioni/events{/privacy}","received_events_url":"https://api.github.com/users/cgruppioni/received_events","type":"User","site_admin":false},"body":"* ancestry is not carried over from playlists to casebooks (since it is linking to playlists that were not imported over). \r\n* instead we are saving the root playlist's user id into the new content_node field root_user_id\r\n    * all users were already being imported over with the migration so this works without other scripts needed to grab/manipulate data\r\n* if a user clones a casebook that was originally created in h2o v1, the ancestry data will only be filled in with v2 data. This doesn't really matter though because when the root_user_id field is filled in, that is the information that will always be used. \r\n\r\n\r\nInstructions for how to migrate now are in `lib/playlist_id_migration_directions.md` including some notes about how the data was set. One playlist item in particular breaks the script and needs to be deleted before migration. ","created_at":"2017-11-15T00:35:59Z","updated_at":"2017-11-15T14:09:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d8757bbf73db932bfce5b53be9ae2c529fc68f2","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/harvard-lil/h2o/pulls/194/commits","review_comments_url":"https://api.github.com/repos/harvard-lil/h2o/pulls/194/comments","review_comment_url":"https://api.github.com/repos/harvard-lil/h2o/pulls/comments{/number}","comments_url":"https://api.github.com/repos/harvard-lil/h2o/issues/194/comments","statuses_url":"https://api.github.com/repos/harvard-lil/h2o/statuses/c70072e995d36b04202f6bb4942f6c58a8456de3","head":{"label":"cgruppioni:final-migrate-script","ref":"final-migrate-script","sha":"c70072e995d36b04202f6bb4942f6c58a8456de3","user":{"login":"cgruppioni","id":14900328,"avatar_url":"https://avatars0.githubusercontent.com/u/14900328?v=4","gravatar_id":"","url":"https://api.github.com/users/cgruppioni","html_url":"https://github.com/cgruppioni","followers_url":"https://api.github.com/users/cgruppioni/followers","following_url":"https://api.github.com/users/cgruppioni/following{/other_user}","gists_url":"https://api.github.com/users/cgruppioni/gists{/gist_id}","starred_url":"https://api.github.com/users/cgruppioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgruppioni/subscriptions","organizations_url":"https://api.github.com/users/cgruppioni/orgs","repos_url":"https://api.github.com/users/cgruppioni/repos","events_url":"https://api.github.com/users/cgruppioni/events{/privacy}","received_events_url":"https://api.github.com/users/cgruppioni/received_events","type":"User","site_admin":false},"repo":{"id":85614260,"name":"h2o-1","full_name":"cgruppioni/h2o-1","owner":{"login":"cgruppioni","id":14900328,"avatar_url":"https://avatars0.githubusercontent.com/u/14900328?v=4","gravatar_id":"","url":"https://api.github.com/users/cgruppioni","html_url":"https://github.com/cgruppioni","followers_url":"https://api.github.com/users/cgruppioni/followers","following_url":"https://api.github.com/users/cgruppioni/following{/other_user}","gists_url":"https://api.github.com/users/cgruppioni/gists{/gist_id}","starred_url":"https://api.github.com/users/cgruppioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgruppioni/subscriptions","organizations_url":"https://api.github.com/users/cgruppioni/orgs","repos_url":"https://api.github.com/users/cgruppioni/repos","events_url":"https://api.github.com/users/cgruppioni/events{/privacy}","received_events_url":"https://api.github.com/users/cgruppioni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cgruppioni/h2o-1","description":null,"fork":true,"url":"https://api.github.com/repos/cgruppioni/h2o-1","forks_url":"https://api.github.com/repos/cgruppioni/h2o-1/forks","keys_url":"https://api.github.com/repos/cgruppioni/h2o-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cgruppioni/h2o-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cgruppioni/h2o-1/teams","hooks_url":"https://api.github.com/repos/cgruppioni/h2o-1/hooks","issue_events_url":"https://api.github.com/repos/cgruppioni/h2o-1/issues/events{/number}","events_url":"https://api.github.com/repos/cgruppioni/h2o-1/events","assignees_url":"https://api.github.com/repos/cgruppioni/h2o-1/assignees{/user}","branches_url":"https://api.github.com/repos/cgruppioni/h2o-1/branches{/branch}","tags_url":"https://api.github.com/repos/cgruppioni/h2o-1/tags","blobs_url":"https://api.github.com/repos/cgruppioni/h2o-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cgruppioni/h2o-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cgruppioni/h2o-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/cgruppioni/h2o-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cgruppioni/h2o-1/statuses/{sha}","languages_url":"https://api.github.com/repos/cgruppioni/h2o-1/languages","stargazers_url":"https://api.github.com/repos/cgruppioni/h2o-1/stargazers","contributors_url":"https://api.github.com/repos/cgruppioni/h2o-1/contributors","subscribers_url":"https://api.github.com/repos/cgruppioni/h2o-1/subscribers","subscription_url":"https://api.github.com/repos/cgruppioni/h2o-1/subscription","commits_url":"https://api.github.com/repos/cgruppioni/h2o-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/cgruppioni/h2o-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/cgruppioni/h2o-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/cgruppioni/h2o-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/cgruppioni/h2o-1/contents/{+path}","compare_url":"https://api.github.com/repos/cgruppioni/h2o-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cgruppioni/h2o-1/merges","archive_url":"https://api.github.com/repos/cgruppioni/h2o-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cgruppioni/h2o-1/downloads","issues_url":"https://api.github.com/repos/cgruppioni/h2o-1/issues{/number}","pulls_url":"https://api.github.com/repos/cgruppioni/h2o-1/pulls{/number}","milestones_url":"https://api.github.com/repos/cgruppioni/h2o-1/milestones{/number}","notifications_url":"https://api.github.com/repos/cgruppioni/h2o-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cgruppioni/h2o-1/labels{/name}","releases_url":"https://api.github.com/repos/cgruppioni/h2o-1/releases{/id}","deployments_url":"https://api.github.com/repos/cgruppioni/h2o-1/deployments","created_at":"2017-03-20T18:53:09Z","updated_at":"2017-07-24T14:50:55Z","pushed_at":"2017-11-15T00:34:45Z","git_url":"git://github.com/cgruppioni/h2o-1.git","ssh_url":"git@github.com:cgruppioni/h2o-1.git","clone_url":"https://github.com/cgruppioni/h2o-1.git","svn_url":"https://github.com/cgruppioni/h2o-1","homepage":null,"size":35575,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"harvard-lil:master","ref":"master","sha":"fbfa4a9f2617ffc9345f7461b550d6e6bde3169e","user":{"login":"harvard-lil","id":857200,"avatar_url":"https://avatars0.githubusercontent.com/u/857200?v=4","gravatar_id":"","url":"https://api.github.com/users/harvard-lil","html_url":"https://github.com/harvard-lil","followers_url":"https://api.github.com/users/harvard-lil/followers","following_url":"https://api.github.com/users/harvard-lil/following{/other_user}","gists_url":"https://api.github.com/users/harvard-lil/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-lil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-lil/subscriptions","organizations_url":"https://api.github.com/users/harvard-lil/orgs","repos_url":"https://api.github.com/users/harvard-lil/repos","events_url":"https://api.github.com/users/harvard-lil/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-lil/received_events","type":"Organization","site_admin":false},"repo":{"id":41750736,"name":"h2o","full_name":"harvard-lil/h2o","owner":{"login":"harvard-lil","id":857200,"avatar_url":"https://avatars0.githubusercontent.com/u/857200?v=4","gravatar_id":"","url":"https://api.github.com/users/harvard-lil","html_url":"https://github.com/harvard-lil","followers_url":"https://api.github.com/users/harvard-lil/followers","following_url":"https://api.github.com/users/harvard-lil/following{/other_user}","gists_url":"https://api.github.com/users/harvard-lil/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-lil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-lil/subscriptions","organizations_url":"https://api.github.com/users/harvard-lil/orgs","repos_url":"https://api.github.com/users/harvard-lil/repos","events_url":"https://api.github.com/users/harvard-lil/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-lil/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/harvard-lil/h2o","description":null,"fork":false,"url":"https://api.github.com/repos/harvard-lil/h2o","forks_url":"https://api.github.com/repos/harvard-lil/h2o/forks","keys_url":"https://api.github.com/repos/harvard-lil/h2o/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harvard-lil/h2o/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harvard-lil/h2o/teams","hooks_url":"https://api.github.com/repos/harvard-lil/h2o/hooks","issue_events_url":"https://api.github.com/repos/harvard-lil/h2o/issues/events{/number}","events_url":"https://api.github.com/repos/harvard-lil/h2o/events","assignees_url":"https://api.github.com/repos/harvard-lil/h2o/assignees{/user}","branches_url":"https://api.github.com/repos/harvard-lil/h2o/branches{/branch}","tags_url":"https://api.github.com/repos/harvard-lil/h2o/tags","blobs_url":"https://api.github.com/repos/harvard-lil/h2o/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harvard-lil/h2o/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harvard-lil/h2o/git/refs{/sha}","trees_url":"https://api.github.com/repos/harvard-lil/h2o/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harvard-lil/h2o/statuses/{sha}","languages_url":"https://api.github.com/repos/harvard-lil/h2o/languages","stargazers_url":"https://api.github.com/repos/harvard-lil/h2o/stargazers","contributors_url":"https://api.github.com/repos/harvard-lil/h2o/contributors","subscribers_url":"https://api.github.com/repos/harvard-lil/h2o/subscribers","subscription_url":"https://api.github.com/repos/harvard-lil/h2o/subscription","commits_url":"https://api.github.com/repos/harvard-lil/h2o/commits{/sha}","git_commits_url":"https://api.github.com/repos/harvard-lil/h2o/git/commits{/sha}","comments_url":"https://api.github.com/repos/harvard-lil/h2o/comments{/number}","issue_comment_url":"https://api.github.com/repos/harvard-lil/h2o/issues/comments{/number}","contents_url":"https://api.github.com/repos/harvard-lil/h2o/contents/{+path}","compare_url":"https://api.github.com/repos/harvard-lil/h2o/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harvard-lil/h2o/merges","archive_url":"https://api.github.com/repos/harvard-lil/h2o/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harvard-lil/h2o/downloads","issues_url":"https://api.github.com/repos/harvard-lil/h2o/issues{/number}","pulls_url":"https://api.github.com/repos/harvard-lil/h2o/pulls{/number}","milestones_url":"https://api.github.com/repos/harvard-lil/h2o/milestones{/number}","notifications_url":"https://api.github.com/repos/harvard-lil/h2o/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harvard-lil/h2o/labels{/name}","releases_url":"https://api.github.com/repos/harvard-lil/h2o/releases{/id}","deployments_url":"https://api.github.com/repos/harvard-lil/h2o/deployments","created_at":"2015-09-01T16:37:44Z","updated_at":"2017-10-06T18:31:46Z","pushed_at":"2017-11-15T00:35:59Z","git_url":"git://github.com/harvard-lil/h2o.git","ssh_url":"git@github.com:harvard-lil/h2o.git","clone_url":"https://github.com/harvard-lil/h2o.git","svn_url":"https://github.com/harvard-lil/h2o","homepage":null,"size":35553,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":35,"forks":5,"open_issues":35,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/harvard-lil/h2o/pulls/194"},"html":{"href":"https://github.com/harvard-lil/h2o/pull/194"},"issue":{"href":"https://api.github.com/repos/harvard-lil/h2o/issues/194"},"comments":{"href":"https://api.github.com/repos/harvard-lil/h2o/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/harvard-lil/h2o/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/harvard-lil/h2o/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/harvard-lil/h2o/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/harvard-lil/h2o/statuses/c70072e995d36b04202f6bb4942f6c58a8456de3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"edwardloveall"}}