Skip to content

Add API for easily getting all historical events of certain kind (and/or other type of metadata) #72

Description

@paneq

without the need to use underlying ActiveRecord directly

event_ar = RailsEventStoreActiveRecord::Event.where(event_type: "MenuUpdated").find_each.select { |mu| mu.data["id"] == 72 }.last
event = RailsEventStoreActiveRecord::EventRepository.new.send(:build_event_entity, event_ar)
Catalog::MenuCatalogHandler.new.(event)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions