-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #738 from pulibrary/testing-lc-call-slips
Add documentation for testing lc call slips on staging
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### Testing LC Call Slips on staging | ||
|
||
One convenient way to try your changes on | ||
production-like data is to run the process on | ||
staging: | ||
|
||
1. Deploy main to staging. | ||
1. SSH into one of the staging boxes and run `cd /opt/lib-jobs/current && bundle exec rake lib_jobs:process_newly_cataloged_records` | ||
1. [Open mailcatcher](../../README.md#staging-mail-catcher). | ||
1. Download one of the CSVs that you'd like to compare. | ||
1. Repeat the above steps, but with your branch deployed to staging. | ||
1. Compare the diff between the two CSVs to see | ||
if it is what you expect. Note that the order | ||
of rows may change, and this doesn't indicate | ||
a problem. | ||
1. You may also choose to run `bundle exec rake lib_jobs:create_csv_for_selector_comparison`, which | ||
generates a CSV of all possible records from OCLC, | ||
including ones that are typically filtered out like | ||
juvenile materials. You can use this one to make | ||
sure that your CSV in mailcatcher includes all the | ||
expected rows. |