Authority control flows

Update/Delete authority record linked to bibliographic records

Event is listened on inventory.authority Kafka topic.

Some starting/ending steps were skipped in diagrams as they relate to regular "Data import" flow.

F.e. update/delete authority flows start with event sent by inventory modules and there's no indication of events sent to mod-search after "Instance" is updated.

Event schemas:

"Inventory event": https://github.com/folio-org/mod-entities-links/blob/master/src/main/resources/swagger.api/schemas/inventoryEvent.json

"Links change event"(mod-entities-links) : https://github.com/folio-org/mod-entities-links/blob/master/src/main/resources/swagger.api/mod-entities-links.yaml#L375 (linksChangeEvent)

"Links change event"(mod-source-record-storage) : https://github.com/folio-org/data-import-raml-storage/blob/e7f0fef18a5a00925e04a79bbbe5b6c82ae0df9c/schemas/mod-entities-links/bibAuthorityLinksUpdate.json

"Link update report"(mod-source-record-storage) : https://github.com/folio-org/data-import-raml-storage/blob/e7f0fef18a5a00925e04a79bbbe5b6c82ae0df9c/schemas/mod-source-record-storage/linkUpdateReport.json

"Link update report"(mod-inventory) : provided by `mod-source-record-storage-client` dependency

"MARC Bib update event"(mod-source-record-storage) : https://github.com/folio-org/data-import-raml-storage/blob/e7f0fef18a5a00925e04a79bbbe5b6c82ae0df9c/schemas/mod-source-record-storage/marcBibUpdate.json

"MARC Bib update event"(mod-inventory) : provided by `mod-source-record-storage-client` dependency


"jobId" in "Links change event" is generated in mod-entities-links and represents job for updating bib records linked to an authority record (which was updated through Data Import). As it's a new job - mod-source-record-storage create a new "Snapshot" for it before saving updated bib records.

Update authority event sequence start

Delete authority event sequence start

Update/Delete authority sequence continuation

Update bibliographic record linked to an authority record via "Data Import"

Update linked bib sequence