towerops/lib/towerops_web
Graham McIntire 3f1d97218d
fix(alerts): auto-resolve device_down alerts when agent polls device successfully
When agents poll devices via SNMP and get successful results, the code was
only processing sensor/interface data without updating device status or
resolving alerts. This caused device_down alerts to persist even after
devices came back online.

This fix:
- Updates device status to 'up' when SNMP polling succeeds
- Auto-resolves any active device_down alerts
- Creates device_up alert (matching DeviceMonitorWorker behavior)
- Broadcasts device_status_changed via PubSub

Also fixes device_up alert creation to include resolved_at timestamp
(matching DeviceMonitorWorker behavior).

Test coverage: Added test verifying auto-resolution when device recovers.
2026-03-05 16:47:48 -06:00
..
channels fix(alerts): auto-resolve device_down alerts when agent polls device successfully 2026-03-05 16:47:48 -06:00
components feat: add TowerOps suffix to all page titles 2026-03-05 13:51:28 -06:00
controllers feat: dynamic favicon reflects real-time system health status 2026-03-05 13:47:54 -06:00
graphql Add granular org roles: executive, technician 2026-02-15 17:40:53 -06:00
helpers Dashboard: timezone-aware timestamps, site health as table, remove dead code 2026-02-14 16:07:26 -06:00
live feat: dynamic favicon reflects real-time system health status 2026-03-05 13:47:54 -06:00
plugs feat: add rate limiting to admin endpoints (100 req/min) 2026-03-05 14:11:19 -06:00
changelog_parser.ex fix: resolve 500 errors on /activity and /changelog 2026-02-13 19:49:12 -06:00
endpoint.ex fix: remove duplicate dashboard alert tests and add SQL Sandbox plug 2026-03-05 14:19:36 -06:00
gettext.ex init 2025-12-21 11:10:43 -06:00
gettext_helpers.ex feat: migrate email templates to gettext (Phase 2 - Emails) 2026-02-02 09:48:30 -06:00
permissions.ex i18n: add Spanish locale with full translations, language selector, and locale hook 2026-02-14 17:44:01 -06:00
plug_exceptions.ex handle exceptions gracefully on api endpoints 2026-02-04 12:18:14 -06:00
router.ex feat: add rate limiting to admin endpoints (100 req/min) 2026-03-05 14:11:19 -06:00
telemetry.ex fix: add Oban config to dev.exs and replace Exq telemetry with Oban 2026-01-24 16:39:45 -06:00
telemetry_filter.ex fix: suppress health check logs and downgrade CI artifacts to v3 2026-03-05 15:54:47 -06:00
user_auth.ex Prevent Oban polling/monitoring job stacking per device 2026-02-16 16:37:48 -06:00