-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation for testing lc call slips on staging #738
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It actually filters out the ones that don't meet the criteria for the
generally_relevant?
method. I was just saying that it used to be that thegenerally_relevant?
method was where we excluded based on publication location, but now that decision is made in therelevant_to_selector?
method.So, it should exclude juvenile, audiobooks, etc., but will include US / UK / Canada publications.