Block a user
feat(event-sourcing): Publish EventStored after successful SaveEvent
Code Review: Approved ✓
All review feedback has been successfully addressed:
Fixes verified:
- Duplicate blank line removed from event.go
- EventStored uses original event.Timestamp…
test(event): Add comprehensive VersionConflictError tests and retry pattern examples
Code Review: Approved ✓
Fixes applied successfully. All 9 comprehensive VersionConflictError tests pass and cover the required scenarios:
- Error message formatting with all context fields -…
docs: Verify and document append-only immutability guarantees
Code Review: Approved ✓
Error handling for json.Marshal and json.Unmarshal properly implemented with appropriate panic behavior documented. All tests passing including new immutability…
feat(event-sourcing): Publish EventStored after successful SaveEvent
Fixed review feedback✓
- Removed duplicate blank line in event.go
- Use original event timestamp for EventStored consistency
- Fixed MockEventBroadcaster channel panic issue
- Added JetStreamEven…
test(event): Add comprehensive VersionConflictError tests and retry pattern examples
Fixed review feedback
- Removed redundant newline from fmt.Println
- Added 9 comprehensive VersionConflictError tests
- All tests pass successfully
docs: Verify and document append-only immutability guarantees
Fixed review feedback
- Added error handling for json.Marshal
- Added error handling for json.Unmarshal
- Documented error behavior with panic for invalid Event structures
docs: Verify and document append-only immutability guarantees
Code Review: Changes Requested
Issues:
store/memory.go:30-32- Errors from json.Marshal and json.Unmarshal are silently discarded. While Event should always be JSON-marshallable,…
feat(event-sourcing): Publish EventStored after successful SaveEvent
Code Review: Changes Requested
Issues:
event.go:169- Duplicate blank line: empty line at 169 is unnecessary, creates inconsistent spacingstore/memory.go:75and `store/jetstream…
test(event): Add comprehensive VersionConflictError tests and retry pattern examples
Code Review: Changes Requested
Issues:
examples/version_conflict_retry.go:325- Redundant newline in fmt.Println: remove\nfrom string literal (fmt.Println already adds newline) 2.…
test(event): Add comprehensive VersionConflictError tests and retry pattern examples