towerops/lib/towerops_web/live
Graham McIntire a2d96f8e6e
Implement hierarchical agent assignment for SNMP polling
Add three-level agent assignment hierarchy (Equipment > Site > Organization)
allowing flexible agent deployment strategies. Agents now receive only equipment
assigned to them through direct assignment or inheritance from site/organization
defaults.

Key changes:
- Add agent_token_id to Sites table with migration
- Implement get_effective_agent_token/1 for hierarchical resolution
- Add list_agent_polling_targets/1 to return polling targets per agent
- Update API config endpoint to use hierarchical polling targets
- Add agent assignment UI to equipment, site, and organization forms
- Show agent source (direct/site/org/none) in equipment form
- Add equipment count column to agent list
- Update terminology from "poll from server" to "cloud polling"

Tests:
- Add 8 comprehensive tests for list_agent_polling_targets/1
- Add end-to-end test for hierarchical config endpoint
- All 775 tests passing
2026-01-14 08:38:50 -06:00
..
admin Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00
agent_live Implement hierarchical agent assignment for SNMP polling 2026-01-14 08:38:50 -06:00
alert_live Fix impersonation to show correct user data and banner 2026-01-06 13:22:13 -06:00
equipment_live Implement hierarchical agent assignment for SNMP polling 2026-01-14 08:38:50 -06:00
graph_live Refactor credo issues: reduce complexity and nesting depth 2026-01-06 13:55:16 -06:00
org Implement hierarchical agent assignment for SNMP polling 2026-01-14 08:38:50 -06:00
org_live Fix impersonation to show correct user data and banner 2026-01-06 13:22:13 -06:00
site_live Implement hierarchical agent assignment for SNMP polling 2026-01-14 08:38:50 -06:00
dashboard_live.ex fix dialyzer things 2026-01-03 12:56:40 -06:00
dashboard_live.html.heex Fix impersonation to show correct user data and banner 2026-01-06 13:22:13 -06:00