towerops/lib/towerops_web/live/agent_live
Graham McIntire 97cdb8e46c
fix: handle cloud pollers in agent show page and fix NoResultsError
Two issues fixed:
1. Cloud pollers (organization_id = nil) were causing access denied errors
   when superadmins tried to view them. Now allows access if user is
   superadmin and agent is a cloud poller.

2. Ecto.NoResultsError was being raised without required :queryable option,
   causing KeyError crash. Now properly raises with queryable parameter.

Error was:
  KeyError: key :queryable not found in []
  (ecto 3.13.5) lib/ecto/exceptions.ex:203: Ecto.NoResultsError.exception/1
  (towerops) lib/towerops_web/live/agent_live/show.ex:16: mount/3
2026-01-25 09:09:50 -06:00
..
edit.ex Add agent rename functionality 2026-01-17 15:48:47 -06:00
edit.html.heex more dark mode 2026-01-20 17:23:11 -06:00
helpers.ex more dark mode 2026-01-20 17:23:11 -06:00
index.ex cloud poller id 2026-01-25 08:52:35 -06:00
index.html.heex improve cloud poller display 2026-01-24 13:33:01 -06:00
show.ex fix: handle cloud pollers in agent show page and fix NoResultsError 2026-01-25 09:09:50 -06:00
show.html.heex more dark mode 2026-01-20 17:23:11 -06:00