feat(notifications): post contract state changes to a Teams channel #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/teams-channel-notifications"
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?
The tracker only notified people by e-mail. The Teams channel had a slot in the outbox but no implementation, waiting for a Power Automate URL.
What changes
RichTextBlock/TextRun, notTextBlock, so markdown in a contract title or comment (e.g. a disguised link) shows as typed.TeamsChannelposts an Adaptive Card to a Teams Workflows "send webhook alerts to a channel" flow. It runs behind the outbox like e-mail, so retries, dead-letter and DryRun behave the same. The signed URL is never logged or stored in errors.Teams:Enabled=false). Switch it on and off in Portainer without removing the URL. Messages already queued while it is off are dropped with a note, not dead-lettered.RedirectAllTonow applies to e-mail only.POST /api/v1/admin/notifications/test-teamschecks the channel after a deploy.Deploy
docker-compose.ymlfirst.TEAMS_WEBHOOK_URL(secret).TEAMS_ENABLED=trueand update the stack.POST /api/v1/admin/notifications/test-teamsand check the channel.Do not set the webhook URL on dev. It would post to the real channel.
Tests
dotnet buildwith 0 warnings,dotnet test253 passed.