Skip to content
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

Loans migrator should be more robust #753

Open
bltravis opened this issue Mar 28, 2024 · 0 comments
Open

Loans migrator should be more robust #753

bltravis opened this issue Mar 28, 2024 · 0 comments
Labels

Comments

@bltravis
Copy link
Collaborator

When migrating loans, the goal of the process should be to load every loan, only failing when an item or patron does not exist in the system or the item has another open loan. To this end, I propose adding the following logic to the loans_migrator task:

  • Pull patrons from FOLIO, instead reading them from local files
  • Pull items from FOLIO, instead of reading them from local files
  • If an item has a status that is not loanable, change the status (eg. missing, etc., set a staff note and an item check-in note indicating the original status)
  • If a patron does not have a barcode, fall back to the legacy patron ID (if present, similar to how proxy borrower support is implemented, remove it from the patron record when the loan is complete)
  • If an item does not have a barcode, fall back to the item UUID (via legacyId) (add it as the barcode, and remove it when the loan is created)
@bltravis bltravis added the loans label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant