towerops/lib/towerops_web
Graham McIntire fb4da2df6d
Refactor handle_event SNMP test to reduce complexity
Extracted SNMP configuration extraction and connection testing
into separate helper functions, reducing cyclomatic complexity
from 11 to ~5.

- extract_snmp_config/1: Consolidates form data and params
- normalize_port/1: Handles port type conversion
- test_snmp_connection/1: Performs test and formats result

This makes the handle_event callback simpler and each concern
easier to test independently.
2026-01-06 13:11:07 -06:00
..
components Fix admin layout to use proper Phoenix component pattern 2026-01-06 13:04:22 -06:00
controllers Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00
live Refactor handle_event SNMP test to reduce complexity 2026-01-06 13:11:07 -06:00
endpoint.ex init 2025-12-21 11:10:43 -06:00
gettext.ex init 2025-12-21 11:10:43 -06:00
router.ex Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00
telemetry.ex format 2025-12-21 11:31:08 -06:00
user_auth.ex Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00