events: send the message with the placeholders replaced #29

Closed
opened 2026-11-17 16:27:06 +01:00 by michael · 1 comment
Owner

Problem

The events send message with the placeholders still in it
("Removing {id} {version}"). daw_event/v1 is being made to require the
filled text, as daw_error/v1 already does (see the companion issue in
DAW/daw-contracts). Without it a consumer with no catalog shows {id}.

Scope

  • progress.lua: the emitter replaces the placeholders in the English
    text from data before the event goes to the sink; the template
    stays in M.events (it is also the text of the catalog resource)
  • tests: a progress event and the removal question carry the filled
    message, no { left

Acceptance criteria

  • depends on the companion issue in DAW/daw-contracts
  • tests first, fragjan code . and make test (Lua 5.1 and 5.4) pass

DAW/daw-contracts (companion issue), DAW/daw-module-manager#28

## Problem The events send `message` with the placeholders still in it ("Removing {id} {version}"). `daw_event/v1` is being made to require the filled text, as `daw_error/v1` already does (see the companion issue in DAW/daw-contracts). Without it a consumer with no catalog shows `{id}`. ## Scope - `progress.lua`: the emitter replaces the placeholders in the English text from `data` before the event goes to the sink; the template stays in `M.events` (it is also the text of the catalog resource) - tests: a progress event and the removal question carry the filled message, no `{` left ## Acceptance criteria - [ ] depends on the companion issue in DAW/daw-contracts - [ ] tests first, `fragjan code .` and `make test` (Lua 5.1 and 5.4) pass ## Related DAW/daw-contracts (companion issue), DAW/daw-module-manager#28
Author
Owner

Implemented on develop

Commits: 238160b

Pushed. Follow-up points, if any, are tracked in their own issues.

## Implemented on develop Commits: 238160b Pushed. Follow-up points, if any, are tracked in their own issues.
michael 2026-11-18 11:57:03 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/daw-module-manager#29
No description provided.