Skip to content

fix(daily-stats-email): static subject/title (drop event.date)#11

Closed
pigri wants to merge 1 commit into
mainfrom
fix/daily-stats-email-static-subject
Closed

fix(daily-stats-email): static subject/title (drop event.date)#11
pigri wants to merge 1 commit into
mainfrom
fix/daily-stats-email-static-subject

Conversation

@pigri

@pigri pigri commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

The param-template expr engine (deepnoodle-ai/expr) supports no conditional/guard (no ternary, ??, ?., in, get), and any access to a missing map key errors. So subject/title referencing ${inputs.event.date} hard-fail with key "date" not found on any run lacking the event payload (manual rerun). Make them static. The full stats body is unaffected (rendered by data.template's Go html/template, which tolerates missing keys). Existing install will be patched in workflow_prod (both definition + published_definition).

The parameter-template expr engine has no way to guard a missing map key
(no ternary/??/in), so subject + title referencing ${inputs.event.date}
hard-fail ("key date not found") on any run without the event payload
(e.g. a manual rerun). Make them static; the daily date is still implied
by the send date and the full stats remain in the body (rendered by the
tolerant data.template Go renderer).
@pigri pigri closed this Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant