sul-dlss / vatican_exhibits

Vatican installation of Spotlight
https://spotlight.vatlib.it
Other
0 stars 1 forks source link

Support the case when a record is not found #372

Closed mejackreed closed 5 years ago

mejackreed commented 5 years ago

Part of #337 . Fixes an issue where indexing will fail, when an Annotot::Annotation has been deleted/destroyed, but the associated AnnotationResource still references and tries to lookup the Annotot::Annotation.

I've tested this pretty well with production data. I've spun off #373 for discussion about the long reindexing process, which has only happened for production exported exhibits (I haven't seen it happen yet in a development scenario e.g create a new exhibit, add content, etc).