Skip to content

✨: feat(schedules): evento schedule.changed para plugins de escala - #141

Merged
diovanibmotta merged 2 commits into
feat/microkernel-pluginsfrom
feat/schedule-changed-event
Dec 3, 2026
Merged

diovanibmotta merged 2 commits into
feat/microkernel-pluginsfrom
feat/schedule-changed-event

Conversation

@diovanibmotta

Copy link
Copy Markdown
Collaborator

Resumo

  • Novo evento schedule.changed (scheduleId, teamId, cause, shiftIds, actorId), publicado quando os plantões de escala publicada mudam: edição de plantão, troca aprovada ou recálculo de feriado.
  • schedule.published passa a trazer teamId.
  • Kernel 2.5.0; nota de contrato em docs/plugins.md.

Plugins de escala (ex.: Splunk On-Call) passam a ouvir só schedule.published, schedule.changed e schedule.deleted. Férias, exceções e feriados seguem tratados pelo core (críticas e schedule.impact).

Validação

  • typecheck, lint e testes sem banco passam; testes com banco não rodaram localmente (CI roda).

Merge deste PR antes do plugin splunk-on-call-plugin (exigirá kernel ^2.5.0).

🤖 Generated with Claude Code

- publica schedule.changed (teamId, cause, shiftIds) ao editar plantão, aprovar troca ou recalcular feriado em escala publicada
- schedule.published passa a trazer teamId
- kernel 2.5.0 e catálogo de eventos atualizados

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…hanged

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@diovanibmotta
diovanibmotta marked this pull request as ready for review December 3, 2026 20:16
@diovanibmotta
diovanibmotta merged commit fb54bc6 into feat/microkernel-plugins Dec 3, 2026
5 checks passed
@diovanibmotta
diovanibmotta deleted the feat/schedule-changed-event branch December 3, 2026 20:16
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

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

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