GLOSSARY: a Handler implements evoq_command_handler #13
Loading…
Reference in a new issue
No description provided.
Delete branch "mercurius/evoq-3-glossary-handler"
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?
Purpose (docs): the corpus's Handler entry matches what evoq ships. A desk's handler implements
evoq_command_handler(evoq 1.31.1), and it returns{ok, [Event]}, not{ok, Event}, which had drifted.Refs reckon-db-org/evoq#3 (the design's step 4: "the corpus glossary line").
One entry changes in
GLOSSARY.md(### Handler):command_handlers/0;Behaviourrow:command_module/0,handle(State, Command);Returnsbecomes{ok, [Event]} | {error, Reason}.Also (folded from mcl-corpus#14, Refs #14):
skills/codegen/erlang/EVOQ_BEHAVIOURS.md:evoq_command_handler(callbacks, library functions, an example desk);command_handlers/0in the aggregate's optional callbacks;route/3, replacing a made-upmaybe_x:execute/2call;§5-§25 are the old §4-§24, renumbered.
guides/FAQ_ADD_EVENT_SOURCING.md:command_handlers/0in the optional list, and a row in the evoq-surface table. The worked example quotes mcl-whiteboard's real files, so it stays as it is. A code section showing the new desk shape is bigger than a few lines and stays with #14.