Closed mark-cooper closed 4 years ago
@kspurgin this is fixed here: https://github.com/collectionspace/collectionspace-refcache/blob/master/lib/collectionspace/refcache/search.rb#L12
Re-tested and all 100 imported and transferred as expected. Seems good to go to me...
@kspurgin I appreciate you looking at it so quickly, thx.
It's a little bit buried right now but if you want to preload the cache from a file you can still do that:
bundle exec rake cache:download
to generate a new cache file.When importing data for an empty system it would make sense to turn the cache search feature off, so we'll probably want runtime config around that behavior soon.
@mark-cooper -- When I tried to use this branch to load 100 collectionobject records (having name, place, and organization authorities and at least one vocabulary term), 7 of them failed to import.
The error I get in console is not super helpful, and is the kind of thing we were seeing with some of the XML-creation logic:
However, if I switch back to master (and rename my ~/.cspace-converter directory) and restart rails, all import with no failures.
Not sure how to track down exactly what the problem is. I will send you the file I am using to test, since it is real client data. (These records do not exist in Breman's CSpace test instance yet -- they have not been transferred, only imported)