Valkyrize Pals: Run work migration script
Opened this issue · 3 comments
Summary
After the valkyrized app has been deployed to production, we could run a script to migrate records instead of relying on lazy migrations.
"This script allows you to run a lambda on every instance of works, collections, etc in a resumable way. Very useful for migrating from Fedora to Postgres using Valkyrie." - Kiah
ref:
- scientist-softserv/adventist_knapsack#773
- Instructions https://github.com/samvera/hyku/pull/2251/files
- https://github.com/samvera/hyku/blob/main/lib/reprocessor.rb
- samvera/hyku#2166
See Kiah for help on with this. He performed this task for GBH.
Tasks
- Run this on staging
- Run this on production
NOTES
related to
- scientist-softserv/hykuup_knapsack#238
- scientist-softserv/hykuup_knapsack#214
BLUF: DO NOT RUN MIGRATION SCRIPT
When saving an active fedora collection to migrate it to a valkyrie collection, the thumbnail seems to be retaining. When uploading a new thumbnail, it has to be done now through the branding tab. Do not run the migration, because doing each step seems to have locked one of the records we were testing.
ref:
- https://github.com/samvera/hyku/blob/main/app/services/hyrax/indexes_thumbnails_decorator.rb (the reason why the migration task is not needed for thumbnails)
TODO:
remove the task from hyku
Depends on scientist-softserv/adventist_knapsack#773
Blocked until the imported tenant data is fixed