STORY: Update SRS domain event model

Description

The payload structure of the Kafka event emitted by SRS has been updated from . Purpose of the ticket is to update mod-linked-data to consume the events in new structure. Otherwise the synchronization will break.

 Old structure:

eventPayload property of the event contains the impacted Record object

New structure:

eventPayload property will contain old and newsub-properties. Each of these properties will contain a Record object. For SOURCE_RECORD_CREATED event, old property will be empty.

 

NOTE: LDE does not handle or listen for delete messages; just create and update in the SRS module. See below.

 

From MODSOURCE-840:

Create/Update/Delete operations in the module should generate related events with the new/old body for the entity (instances/authorities)
Acceptance Criteria:

  1. The domain event has new/old fields

  2. The domain has a unique identifier for the message and a timestamp of the event

Environment

None

Potential Workaround

None

Attachments

3

Checklist

hide

Activity

Show:

Tetiana Kovalchuk February 14, 2025 at 10:48 AM

Tested on edev diku

Build version:

No TCs created, as task is technical.

Verified "SOURCE_RECORD_CREATED" Kafka event is created with “new” sub-field in payload when resource is created in the Inventory and "SOURCE_RECORD_UPDATED" event is created with “new” and “old” sub-fields in payload when resource is updated in the Inventory.

 

Done

Details

Assignee

Reporter

Labels

Priority

Story Points

Sprint

Development Team

Citation

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created February 3, 2025 at 10:29 PM
Updated March 4, 2025 at 7:51 PM
Resolved February 19, 2025 at 9:53 PM
TestRail: Cases
TestRail: Runs