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
If hydrator encounters a deletion marker for an indexed record, the existing record should be deleted from the solr index.
Acceptance Criteria
When an EphemeraFolder record is deleted from Figgy, it should delete itself from the DPUL Collections solr index.
Technical Notes
One way this could happen is the following:
A deletion marker found by the HydrationConsumer is written to the HydrationCache with the record_id set as the DeletionMarker's resource_id
The TransformationConsumer, when it finds a HydrationCacheEntry for a DeletionMarker, writes a TransformationCacheEntry with the data {id: <record_id>, deleted: true}
The IndexingConsumer, when it finds an entry with deleted equal to true, will delete that record from the index. Maybe it should batch those up, actually - set a batcher in handle_message and then have the deletion batcher delete every message it gets in one query, if that's possible.
First step
Find a way to write a test.
The text was updated successfully, but these errors were encountered:
hackartisan
changed the title
If hydrator encouters a deletion marker for an indexed record, the existing record should be deleted from the solr index.
Synchronize deletes
Oct 23, 2024
If hydrator encounters a deletion marker for an indexed record, the existing record should be deleted from the solr index.
Acceptance Criteria
Technical Notes
One way this could happen is the following:
record_id
set as the DeletionMarker'sresource_id
{id: <record_id>, deleted: true}
deleted
equal to true, will delete that record from the index. Maybe it should batch those up, actually - set a batcher inhandle_message
and then have the deletion batcher delete every message it gets in one query, if that's possible.First step
Find a way to write a test.
The text was updated successfully, but these errors were encountered: