You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a defined rake task to purge orphaned sidecars, but when I run it, I get some errors:
desc"Sidecars - Purge orphans: Destroy orphaned sidecar Active Record objects"# When a Sidecar object exists,# but it's corresponding SolrDocument is no longer in the Solr index.taskpurge_orphans: [:environment]do# Remove all sidecars that have no corresponding SolrDocumentsidecars=Blacklight::Allmaps::Sidecar.allsidecars.eachdo |sc|
::SolrDocument.find(sc.document_id)rescuesc.destroyputs"orphaned / #{sc.document_id} / destroyed"endend
Expected behavior is that orphaned sidecars would be purged.
Actual behavior is that orphans are not purged with the following error message:
There is a defined rake task to purge orphaned sidecars, but when I run it, I get some errors:
Expected behavior is that orphaned sidecars would be purged.
Actual behavior is that orphans are not purged with the following error message:
NoMethodError: undefined method `document_id' for #<Blacklight::Allmaps::Sidecar id: 1, solr_document_id: "6cd985a1-1b1f-4d72-be9c-d64e5b3cdb30", document_type: "SolrDocument", manifest_id: nil, annotated: false, allmaps_id: nil, iiif_manifest: nil, allmaps_annotation: nil, solr_version: 1807289517394100224, created_at: "2024-05-15 19:11:52.838121000 +0000", updated_at: "2024-08-13 16:17:50.042777000 +0000"> (NoMethodError)
Did you mean? document_type
The text was updated successfully, but these errors were encountered: