{"action":"created","issue":{"url":"https://api.github.com/repos/openstax/cnx-db/issues/183","repository_url":"https://api.github.com/repos/openstax/cnx-db","labels_url":"https://api.github.com/repos/openstax/cnx-db/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/openstax/cnx-db/issues/183/comments","events_url":"https://api.github.com/repos/openstax/cnx-db/issues/183/events","html_url":"https://github.com/openstax/cnx-db/pull/183","id":461562852,"node_id":"MDExOlB1bGxSZXF1ZXN0MjkyNDYyMzU0","number":183,"title":"Add script/dump_book.py to dump/load a book from db","user":{"login":"karenc","id":153353,"node_id":"MDQ6VXNlcjE1MzM1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/153353?v=4","gravatar_id":"","url":"https://api.github.com/users/karenc","html_url":"https://github.com/karenc","followers_url":"https://api.github.com/users/karenc/followers","following_url":"https://api.github.com/users/karenc/following{/other_user}","gists_url":"https://api.github.com/users/karenc/gists{/gist_id}","starred_url":"https://api.github.com/users/karenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karenc/subscriptions","organizations_url":"https://api.github.com/users/karenc/orgs","repos_url":"https://api.github.com/users/karenc/repos","events_url":"https://api.github.com/users/karenc/events{/privacy}","received_events_url":"https://api.github.com/users/karenc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-06-27T14:28:07Z","updated_at":"2019-06-27T17:29:31Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/openstax/cnx-db/pulls/183","html_url":"https://github.com/openstax/cnx-db/pull/183","diff_url":"https://github.com/openstax/cnx-db/pull/183.diff","patch_url":"https://github.com/openstax/cnx-db/pull/183.patch"},"body":"This script attempts to dump a book from the server and load it into a\r\ndevelopment database.\r\n\r\n1. You need to download this script onto the server, e.g. staging08.cnx.org,\r\n   that runs archive.\r\n\r\n2. Use `./dump_book.py dump_book caa57dab-41c7-455e-bd6f-f443cda5519c@19.3` to\r\n   dump the prealgebra book.\r\n\r\n   2.1 If you are not using this on a cnx-deploy'd server, you can either\r\n       specify the path to the archive config file using `CONFIG_INI` or the\r\n       database connection string using `DB_CONN_STR` environment variables.\r\n\r\n   2.2 If you want to dump multiple books, just add more book ident hashes to\r\n       the end of the command line.\r\n\r\n3. Transfer the output file\r\n   `book_dump.prealgebra@19.3.tar` to the\r\n   development machine.\r\n\r\n4. Run `./dump_book.py load_book book_dump.prealgebra@19.3.tar`\r\n   to load the book into a development database.\r\n\r\n   4.1 If you are not using this on a cnx-deploy'd server, you can either\r\n       specify the path to the archive config file using `CONFIG_INI` or the\r\n       database connection string using `DB_CONN_STR` environment variables.\r\n\r\n   4.2 If you want to load multiple files, just add the filenames to the end of\r\n       the command line.\r\n\r\n**Note**: strictly for development use only."},"comment":{"url":"https://api.github.com/repos/openstax/cnx-db/issues/comments/506439017","html_url":"https://github.com/openstax/cnx-db/pull/183#issuecomment-506439017","issue_url":"https://api.github.com/repos/openstax/cnx-db/issues/183","id":506439017,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNjQzOTAxNw==","user":{"login":"codecov[bot]","id":22429695,"node_id":"MDM6Qm90MjI0Mjk2OTU=","avatar_url":"https://avatars2.githubusercontent.com/in/254?v=4","gravatar_id":"","url":"https://api.github.com/users/codecov%5Bbot%5D","html_url":"https://github.com/apps/codecov","followers_url":"https://api.github.com/users/codecov%5Bbot%5D/followers","following_url":"https://api.github.com/users/codecov%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codecov%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codecov%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codecov%5Bbot%5D/repos","events_url":"https://api.github.com/users/codecov%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codecov%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-06-27T17:29:31Z","updated_at":"2019-06-27T17:29:31Z","author_association":"NONE","body":"# [Codecov](https://codecov.io/gh/openstax/cnx-db/pull/183?src=pr&el=h1) Report\n> Merging [#183](https://codecov.io/gh/openstax/cnx-db/pull/183?src=pr&el=desc) into [master](https://codecov.io/gh/openstax/cnx-db/commit/47ec809a4a9a56cd090492c99b3db307a65b7477?src=pr&el=desc) will **not change** coverage.\n> The diff coverage is `n/a`.\n\n\n```diff\n@@          Coverage Diff          @@\n##           master   #183   +/-   ##\n=====================================\n  Coverage     100%   100%           \n=====================================\n  Files          10     10           \n  Lines         213    213           \n=====================================\n  Hits          213    213\n```\n\n\n\n"}}
{"actor":{"display_login":"codecov"}}