towerops/lib/towerops_web/live/device_live
Graham McIntire bca2a3daeb
Some checks failed
Production Deployment / Run ExUnit Tests (push) Failing after 1m0s
Production Deployment / Build and Push Docker Image (push) Has been skipped
Fix remaining 4 audit items: policy enforcement, module splits, pagination, tests
SEC-M6: Role-based policy enforcement
- ForbiddenError exception for unauthorized access
- Policy.authorize!/3 in 6 LiveView modules
- Superuser bypass preserved
- 45/45 tests pass

Architecture: Oversized module splits
- topology.ex: 1590 -> 685 lines (-57%)
- New sub-modules: topology/evidence.ex, topology/map_view.ex, topology/stats.ex
- New devices/ordering.ex
- 217/217 tests pass

Architecture: Vendor HTTP pagination consolidation
- HTTP.paginate/5 shared helper in Towerops.HTTP
- visp, splynx, sonar refactored to use shared pagination
- 94/94 tests pass

Test Health + Credo fixes:
- api_tokens.ex: verify_token/1 flattened (nesting depth reduced)
- 3 new test files: AgentReleaseWebhookWorker, RfLinkHealthLive, MaintenanceLive.Index
- Weak assertions strengthened
- doctest Towerops.JobMonitoring added
- 255/255 tests pass
2026-07-26 15:47:19 -05:00
..
helpers Fix 22 audit findings across security, performance, and architecture 2026-07-26 15:31:25 -05:00
form.ex Fix remaining 4 audit items: policy enforcement, module splits, pagination, tests 2026-07-26 15:47:19 -05:00
form.html.heex chore: update phoenix_live_view 1.1.32→1.2.6, relax constraint to ~> 1.2 2026-07-08 10:57:31 -05:00
index.ex Fix 22 audit findings across security, performance, and architecture 2026-07-26 15:31:25 -05:00
index.html.heex Fix 22 audit findings across security, performance, and architecture 2026-07-26 15:31:25 -05:00
show.ex Fix remaining 4 audit items: policy enforcement, module splits, pagination, tests 2026-07-26 15:47:19 -05:00
show.html.heex chore: update phoenix_live_view 1.1.32→1.2.6, relax constraint to ~> 1.2 2026-07-08 10:57:31 -05:00