towerops/lib/towerops_web
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
..
channels more renames 2026-01-17 15:13:56 -06:00
components rename equipment to device 2026-01-17 14:48:46 -06:00
controllers credo cleanup 2026-01-17 15:00:52 -06:00
helpers Add build timestamp to footer with shared time formatting helpers 2026-01-17 11:10:50 -06:00
live Change agent revoke to delete with full cleanup 2026-01-17 15:40:09 -06:00
plugs Add comprehensive Dialyzer type specifications 2026-01-17 10:52:02 -06:00
endpoint.ex agent improvements and agent config 2026-01-16 17:26:51 -06:00
gettext.ex init 2025-12-21 11:10:43 -06:00
router.ex credo cleanup 2026-01-17 15:00:52 -06:00
telemetry.ex Add comprehensive Dialyzer type specifications 2026-01-17 10:52:02 -06:00
user_auth.ex moduledocs 2026-01-17 15:08:49 -06:00