towerops/test/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
..
agent_live Improve test coverage: AgentLive.Index, UserAuth, Cisco profile 2026-01-12 18:56:23 -06:00
equipment_live Add comprehensive tests for EquipmentLive.Show 2026-01-13 09:13:40 -06:00
org Implement hierarchical agent assignment for SNMP polling 2026-01-14 08:38:50 -06:00
org_live Add tests for Monitoring.Ping and OrgLive.New 2026-01-13 08:54:49 -06:00
agent_live_test.exs agent token changes 2026-01-13 13:43:43 -06:00
alert_live_test.exs Add comprehensive test coverage for LiveView modules and contexts 2026-01-03 11:21:53 -06:00
dashboard_live_test.exs Add active page navigation highlighting 2026-01-03 12:28:26 -06:00
equipment_live_test.exs Enhance EquipmentLive.Show test coverage with additional test cases 2026-01-12 18:35:37 -06:00
org_live_test.exs Fix all failing tests after UI changes 2026-01-05 11:33:26 -06:00
site_live_test.exs Fix all failing tests after UI changes 2026-01-05 11:33:26 -06:00