docs: update changelog for test fixes

This commit is contained in:
Graham McIntire 2026-03-05 09:51:14 -06:00
parent 117d13b44b
commit 139348f2a0
No known key found for this signature in database

View file

@ -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)