rails_event_store icon indicating copy to clipboard operation
rails_event_store copied to clipboard

RubyEventStore::EventDuplicatedInStream does not provide valuable debugging info

Open paneq opened this issue 7 years ago • 2 comments

such as id of duplicated event and stream name.

paneq avatar Aug 27 '18 14:08 paneq

First of all we do not allow events with duplicate ids, regardless of stream. We allow linking to multiple streams but also disallow linking to same event twice.

For both cases we reuse the same error, which might be fine. But communicating the issue could be different:

  • in case of append/publish it doesn't matter which stream you choose, all subsequent appends of that event_id would fail
  • in case of link you possibly can succeed by picking different stream name

mostlyobvious avatar Oct 11 '18 09:10 mostlyobvious

At least communicating event_id would definitely help

mostlyobvious avatar Oct 11 '18 09:10 mostlyobvious