TurtleAI / derive

An Event Sourcing and CQRS solution.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Events produced by services aren't populated `source_event_id`

rwillians opened this issue · comments

Example of an event that was produced by a service and didn't get it's :source_event_id populated.

{
    "id": "30870348649259176310057341550594",
    "time": "2022-10-18T15:00:00.578187Z",
    "__type__": "Elixir.Hatch.TimeTracker.Events.TimeEntriesInvoiced",
    "command_id": null,
    "invoice_id": "30870348649203836077836212895744",
    "request_id": null,
    "time_entry_ids": [
        "30870348648779560964140893208576"
    ],
    "source_event_id": null
}

@venkatd do we need some sort of custom commit callback for our services?

@rwillians I've updated the Turtle.EventStore.commit implementation to add this in and pushed a commit to dev. Had to expose an api on the Derive side. Please confirm if it is working as expected.