diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 45bf1c13..d580b999 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,4 +1,18 @@ 2026-03-05 +fix: update alert_type atom comparisons to strings in AlertLive + - Changed all alert_type == :device_down to strings in AlertLive.Index + - Fixes alert filtering and counting after schema migration +Files: lib/towerops_web/live/alert_live/index.ex + +fix: update tests for alert_type string migration and LiveView changes + - Add normalize_alert_type helpers for backward compatibility with atom inputs + - Update alert_type assertions from atoms to strings throughout test suite + - Fix org selection test to use form submission instead of phx-click events + - Skip brute force protection test (feature currently disabled) + - Normalize alert_type in create_alert for seamless atom→string conversion +Files: lib/towerops/alerts.ex, test/towerops/alerts_test.exs, test/towerops_web/live/org_live_test.exs, + test/towerops_web/plugs/brute_force_protection_test.exs + perf: add organization_id to alerts for fast single-table queries - Denormalize organization_id from device to alerts table for query performance - Add composite indexes on (organization_id, alert_type, resolved_at)