Skip to content

Fix webhook alert recording and delivery tracking#726

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/webhook-alert-recording
Mar 27, 2026
Merged

Fix webhook alert recording and delivery tracking#726
erikdarlingdata merged 1 commit intodevfrom
fix/webhook-alert-recording

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • Dashboard: Moves RecordAlert back inside the SMTP block so it only fires when an email is actually attempted — eliminates duplicate "tray" entries introduced by feature/Add Teams and Slack webhook notifications #725 when SMTP is disabled. Adds a separate "webhook" record when Teams/Slack notifications are delivered.
  • Lite: Captures webhook send result and reflects it in the DuckDB notification_type column ("webhook" when only webhooks sent, "email+webhook" when both).
  • Both: Changes TrySendWebhookAlertsAsync return type from Task to Task<bool> so callers can act on delivery status.

Follows up on #725.

Test plan

  • Dashboard: disable SMTP, enable webhooks — alert history should show "tray" (from MainWindow) + "webhook" (from email service), not duplicate "tray" entries
  • Dashboard: enable both SMTP and webhooks — alert history should show "tray" + "email" + "webhook"
  • Lite: disable SMTP, enable webhooks — DuckDB alert log notification_type should be "webhook"
  • Lite: enable both — notification_type should be "email+webhook"

🤖 Generated with Claude Code

…ok delivery

Dashboard: move RecordAlert back inside SMTP block to prevent duplicate
"tray" entries when email is disabled. Add separate "webhook" record
when webhook notifications are delivered.

Lite: capture webhook send result and reflect in notification_type
column ("webhook" or "email+webhook") in DuckDB alert log.

Both: change TrySendWebhookAlertsAsync return type to Task<bool> so
callers can act on delivery status.

Follows up on #725.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 48ed513 into dev Mar 27, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/webhook-alert-recording branch April 9, 2026 00:34
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