Closed stevehodgkiss closed 7 years ago
An example of this PR in Identity here https://github.com/envato/identity/pull/807
This is looking awesome! Really excited for the next release. 👏
@grassdog @andrewgr @vonconrad waiting for some more feedback / +1's to move forward with this.
Adds the ability to use custom event classes like in @andrewgr's presentation (
ItemAdded = Class.new(EventSourcery::Event)
) with backwards compatibility support for storing event types in different ways (underscored for example).The ESP's are backwards compatible with the old method name dispatch mechanism. In a future release this will be removed (to allow a time period for upgrading apps).
Interested in feedback on how the event type serialisation works. As you can see from the commits I've switched approaches a few times already.