towerops/test/towerops_web/live
Graham McIntire c35a502425
Change agent revoke to delete with full cleanup
Replace the revoke functionality with delete to properly clean up agent references.
When an agent is deleted:
- All direct device assignments are removed
- Agent is removed from site defaults
- Agent is removed from organization defaults
- Devices automatically fall back to site/org agents or cloud polling

This ensures no orphaned references and provides better clarity about
what happens to device monitoring when an agent is removed.

- Add delete_agent_token/1 function in Agents context
- Update LiveView to use delete_agent event instead of revoke_agent
- Update UI button from "Revoke" to "Delete" with clearer confirmation message
- Add comprehensive tests for delete functionality and fallback behavior
- All 792 tests passing, no Credo warnings
2026-01-17 15:40:09 -06:00
..
agent_live Change agent revoke to delete with full cleanup 2026-01-17 15:40:09 -06:00
device_live_nested rename equipment to device 2026-01-17 14:48:46 -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 Change agent revoke to delete with full cleanup 2026-01-17 15:40:09 -06:00
alert_live_test.exs rename equipment to device 2026-01-17 14:48:46 -06:00
dashboard_live_test.exs rename equipment to device 2026-01-17 14:48:46 -06:00
device_live_test.exs rename equipment to device 2026-01-17 14:48:46 -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 rename equipment to device 2026-01-17 14:48:46 -06:00
user_settings_live_test.exs Convert User Settings from controller to LiveView 2026-01-15 16:29:50 -06:00