Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

[HOLD] Migration third run #543

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft

[HOLD] Migration third run #543

wants to merge 24 commits into from

Conversation

mjgiarlo
Copy link
Member

@mjgiarlo mjgiarlo commented Jun 1, 2021

@jcoyne jcoyne force-pushed the migration-third-run branch 2 times, most recently from 7581b3a to 7dc4ebb Compare June 3, 2021 15:12
@jcoyne jcoyne force-pushed the migration-third-run branch 2 times, most recently from 8aca24c to affc12d Compare June 23, 2021 12:44
jcoyne and others added 24 commits July 14, 2021 10:43
By convention, use a file called "collection_druids.txt", which is a plain-text file containing a number of bare druids, one per line. This file is produced by copying a column of druids out of a spreadsheet maintained by the PO. This will filter both the collections and the items that are exported.
Prior this could be an array which does not respond to #find_each and winds up loading tons of data into memory. Monkeypatch AF to allow POSTing to Solr. Confirmed working.

And prefer `#each` with `#find_each` which, when chained with `#where`, has unpredictable results. (Instead of operating on the ~4K items in the relation returned by `#where`, `#find_each` operated on all instances of the model.) To support this, add amother AF monkeypatch to use HTTP POST.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants