Skip to content

docs(skills): one standard to send events and notifications from a service - #68

Merged
BatLeDev merged 2 commits into
mainfrom
docs-events-standard
Nov 13, 2026
Merged

BatLeDev merged 2 commits into
mainfrom
docs-events-standard

Conversation

@BatLeDev

Copy link
Copy Markdown
Member

A reference of the data-fair-service skill for sending events and notifications, the same way in every service.

  • references/events.md: the shared queue, started unconditionally (inactive without the events url); topic keys are a contract, never renamed; one emitter per resource, with its { en, fr } texts next to it; the topic action and a more precise text as two parameters; internalProcess takes a title; the data-fair and simple-directory exception (locale files); notifications to one user; subscribing from a UI.
  • The example copies catalogs/api/src/imports/service.ts.
  • references/i18n.md no longer recommends a central text table with a parity unit test.

Why: each service sent its events its own way (optional queue or not, French-only strings, central text tables in portals and catalogs). Docs only, no release.

…rvice

- references/events.md: the shared queue started unconditionally, topic keys as a
  contract never renamed, one emitter per resource with its { en, fr } texts next to it
- i18n.md no longer recommends a central text table with a parity unit test
- data-fair and simple-directory keep their locale files
… and text apart

The example now copies catalogs/api/src/imports/service.ts (resource is the catalog, required
session, a text more precise than the topic action), and the reference says why the topic
action and the text are two parameters. internalProcess takes a title, not a name.
@BatLeDev
BatLeDev marked this pull request as ready for review November 13, 2026 09:47
@BatLeDev
BatLeDev merged commit 2a4a720 into main Nov 13, 2026
1 check passed
@BatLeDev
BatLeDev deleted the docs-events-standard branch November 13, 2026 09:51
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