Pulse/internal/notifications
rcourtman 3b347b6548 fix: harden SQLite against I/O contention causing persistent lock errors
- Move all SQLite pragmas from db.Exec() to DSN parameters so every
  connection the pool creates gets busy_timeout and other settings.
  Previously only the first connection had these applied.
- Set MaxOpenConns(1) on audit, RBAC, and notification databases
  (metrics already had this). Fixes potential for multiple connections
  where new ones lack busy_timeout.
- Increase busy_timeout from 5s to 30s across all databases to
  tolerate disk I/O pressure during backup windows.
- Fix nested query deadlocks in GetRoles(), GetUserAssignments(), and
  CancelByAlertIDs() that would deadlock with MaxOpenConns(1).
- Fix circuit breaker retryInterval not resetting on recovery, which
  caused the next trip to start at 5-minute backoff instead of 5s.

Related to #1156
2026-02-02 17:29:14 +00:00
..
concurrency_test.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
email_enhanced.go fix: negotiate SMTP auth mechanism from server capabilities. Related to #1165 2026-02-02 11:36:00 +00:00
email_enhanced_test.go fix: negotiate SMTP auth mechanism from server capabilities. Related to #1165 2026-02-02 11:36:00 +00:00
email_providers.go chore: remove more dead code 2025-11-27 00:10:55 +00:00
email_template.go refactor: replace deprecated strings.Title with custom titleCase 2025-11-27 09:22:52 +00:00
email_template_test.go test: Add singleAlertTemplate type coverage tests 2025-12-02 13:45:49 +00:00
notification_utils_test.go style: Apply gofmt to 37 files 2025-12-02 17:21:48 +00:00
notifications.go refactor: Add testability improvements to core packages 2026-01-19 19:25:38 +00:00
notifications_additional_test.go test: expand backend coverage 2026-01-25 21:08:44 +00:00
notifications_test.go fix(test): disable email in TestSendResolvedAlert to avoid retry delays 2026-01-20 18:29:29 +00:00
queue.go fix: harden SQLite against I/O contention causing persistent lock errors 2026-02-02 17:29:14 +00:00
queue_test.go test: Add UpdateStatus not found test for notifications package 2025-12-02 14:26:17 +00:00
security_utils_test.go test: Add edge case for extractTelegramChatID URL parse error 2025-12-02 00:31:50 +00:00
templates_test.go fix(frontend): extend kiosk mode to Docker and Hosts pages 2026-01-11 12:16:20 +00:00
webhook_allowlist_test.go test: Add ValidateWebhookURL edge case tests for notifications package 2025-12-02 13:41:34 +00:00
webhook_client_test.go test: Add secure webhook client tests for redirect handling 2025-12-02 10:26:34 +00:00
webhook_enhanced.go feat: Add mention support for webhook alerts. Related to #1118 2026-01-18 15:16:37 +00:00
webhook_enhanced_test.go test: improve coverage for API, AI, Alerts, and Frontend Utils 2026-01-20 15:52:39 +00:00
webhook_retry_test.go Add unit tests for isRetryableWebhookError (internal/notifications) 2025-11-30 22:03:26 +00:00
webhook_templates.go feat: Add mention support for webhook alerts. Related to #1118 2026-01-18 15:16:37 +00:00