feat(events): publish runId on a public calendar run entry (Rust D125) #208
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/public-calendar-run-id"
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?
Core's part of module-rust phase 15, D125 (
docs/modules/rust/PLAN.md§31, merged in docs#273).What changes:
GET /public/eventsnow includesrunIdon each entry whosekindisrun. It is the same idPublicEventOccurrence.runIdalready publishes on the event page, and the id/events/:slug?run=takes.Why: a Rust map marker for a site event carries core's run id and nothing else about its event. The app's event page is addressed by slug, and the public calendar was the one public shape that listed a run without saying which one. Without this, the only way to find the event was to fetch every live event's page.
What does not change:
runId, because nothing is committed to it.publicOnly), so their markers stay unlinked.publicRunEntry, not by a spread.Changes:
eventPublic.model.js:runIdonpublicRunEntry.swagger.js:PublicEventEntry.runId, and the regeneratedswagger-output.json.eventPublic.test.js: the exact-keys test now listsrunId. A new test pins that a run entry's id is its run's, that the event page publishes the same id, and that a projection has none. The existing rehearsal test still passes, unchanged.Tests:
eventPublic.test.jspasses 27/27. The full suite innode:20shows 2 failures, both inrouteManifest.test.js, and both caused by this machine's git-ignoredmodules/uoandmodules/rustinstalls adding their mounts to the live route stack. In a clean worktree of this branch with no modules installed,routeManifest.test.jsandeventPublic.test.jspass 31/31.The docs change (
EVENTS.md§ API surface, whichBACKEND_DESIGN.mddefers to for the event routes) lands with phase 15's as-built docs PR.🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY