Skip to content

✨: feat(events): inclui teamId no payload de schedule.deleted - #140

Merged
diovanibmotta merged 1 commit into
feat/microkernel-pluginsfrom
feat/schedule-deleted-team-id
Dec 3, 2026
Merged

diovanibmotta merged 1 commit into
feat/microkernel-pluginsfrom
feat/schedule-deleted-team-id

Conversation

@diovanibmotta

Copy link
Copy Markdown
Collaborator

Resumo

  • schedule.deleted passa a levar teamId: quando o evento é entregue a escala já foi apagada e ScheduleDto não traz a equipe, então plugins não sabem qual equipe foi afetada
  • caso de uso: o splunk-on-call-plugin (#33) hoje deduz a equipe pelos membros escalados; com teamId marca só a equipe certa
  • KERNEL_API_VERSION 2.4.0 (campo novo, compatível; docs/plugins.md e comentário do plugin-sdk atualizados)

Testes

  • typecheck, lint, prettier ok; testes sem banco passam
  • asserção do teamId em publish.test.ts depende de TEST_DATABASE_URL: roda no CI, não rodei localmente

- plugin não consegue achar a equipe: a escala já foi apagada e ScheduleDto não traz team_id
- teamId vem da equipe ativa da requisição, na mesma transação
- KERNEL_API_VERSION 2.4.0 (campo novo, compatível)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@diovanibmotta diovanibmotta added the enhancement New feature or request label Dec 3, 2026
@diovanibmotta diovanibmotta self-assigned this Dec 3, 2026
@diovanibmotta diovanibmotta added this to the Microkernel / Plugins milestone Dec 3, 2026
@diovanibmotta
diovanibmotta marked this pull request as ready for review December 3, 2026 19:43
@diovanibmotta
diovanibmotta merged commit ad6de55 into feat/microkernel-plugins Dec 3, 2026
5 checks passed
@diovanibmotta
diovanibmotta deleted the feat/schedule-deleted-team-id branch December 3, 2026 19:43
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.0.0-rc.21 🎉

The release is available on:

  • npm package (@rc dist-tag)
  • npm package (@rc dist-tag)
  • npm package (@rc dist-tag)
  • npm package (@rc dist-tag)
  • GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request released on @rc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant