Implement EventSourcingMiddleware (after_action, priority 900) #110
Labels
No labels
Blocked
Duplicate
MoSCoW/Could Have
MoSCoW/Must Have
MoSCoW/Should Have
Points/1
Points/13
Points/2
Points/21
Points/3
Points/5
Points/8
Priority/Backlog
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
State/Completed
State/In progress
State/In review
State/Paused
State/Unverified
State/Verified
State/Wont Do
Type/Bug
Type/Epic
Type/Feature
Type/Legendary
Type/Task
Type/Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#104 Epic: Action Middleware Pipeline
aethyr/Aethyr
Reference: aethyr/Aethyr#110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Metadata
feat(dispatch): add event sourcing middlewarefeature/m1-middleware-pipelineBackground and Context
The specification (§ EventSourcingMiddleware) describes an after_action middleware at
priority 900 that centralizes ES event emission. It checks if the action class defines
event_source_command, constructs a Sequent command, and dispatches it. Errors arelogged and swallowed to never crash the game loop.
Expected Behavior
ServerConfig[:event_sourcing_enabled] && defined?(Sequent)action.class.respond_to?(:event_source_command)action.class.event_source_command(action, context)to get the commandSequent.command_service.execute_commands(command)Acceptance Criteria
Subtasks
Definition of Done
This issue is complete when:
Commit Message in Metadata exactly.
master, reviewed, and merged.