towerops/test/snmpkit/snmp_lib
Graham McIntire 3a408a8dc1 Security hardening + performance fixes across codebase
CRITICAL:
- Membership: remove :role/:org_id/:user_id from mass-assignment cast; use explicit create_changeset/4 and role_update_changeset/2
- GraphQL member resolver: add authorize_invite/3 checking admin/owner role and role hierarchy
- REST invitations controller: add auth check for invite creation

HIGH:
- ApiToken: remove :organization_id/:user_id from cast; use explicit create_changeset/4

MEDIUM:
- Move 8 LiveView Ecto queries into context modules (Admin, Alerts, Coverages, OnCall, Snmp)
- Replace Process.put/Process.get with socket assigns for unresolved_alert_count (user_auth + layouts + 50 templates)
- Add batch get_utilization_for_interfaces/1 to eliminate N+1 capacity queries in device show
- Replace Process.sleep with Process.monitor/assert_receive or Process.send_after in 5 test files

LOW:
- Add handle_params/3 to UserResetPasswordLive, UserRegistrationLive, StatusPageLive
- Remove redundant Repo.preload calls; add preloads to list_site_devices/1
- Fix @impl annotations and credo nesting warnings
2026-06-21 17:40:50 -05:00
..
mib Fix failing tests and clean up code 2026-06-16 14:54:34 -05:00
pdu credo fixes 2026-06-15 11:15:46 -05:00
security Fix all mix credo --strict and compiler warnings 2026-06-13 15:45:09 -05:00
asn1_test.exs credo fixes 2026-06-13 18:20:20 -05:00
cache_test.exs credo fixes 2026-06-15 11:15:46 -05:00
config_test.exs credo fixes 2026-06-15 11:15:46 -05:00
dashboard_test.exs credo fixes 2026-06-15 11:15:46 -05:00
decoder_long_length_test.exs snmpkit overhaul and etcd 2026-01-23 16:23:57 -06:00
error_handler_test.exs Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
error_test.exs credo fixes 2026-06-15 11:15:46 -05:00
host_parser_test.exs credo fixes 2026-06-15 11:15:46 -05:00
manager_test.exs feat(insights): AI surfaces its own observations from full network state 2026-05-10 14:29:56 -05:00
mib_test.exs credo fixes 2026-06-15 11:15:46 -05:00
monitor_test.exs credo fixes 2026-06-15 11:15:46 -05:00
oid_test.exs credo fixes 2026-06-13 18:20:20 -05:00
pdu_test.exs credo fixes 2026-06-15 11:15:46 -05:00
pool_test.exs credo fixes 2026-06-15 11:15:46 -05:00
security_test.exs credo fixes 2026-06-15 11:15:46 -05:00
snmpv3_edge_cases_test.exs Fix all mix credo --strict and compiler warnings 2026-06-13 15:45:09 -05:00
snmpv3_integration_test.exs improve credo 2026-01-23 18:21:40 -06:00
transport_test.exs credo fixes 2026-06-15 11:15:46 -05:00
types_test.exs credo fixes 2026-06-15 11:15:46 -05:00
utils_test.exs Fix all mix credo --strict and compiler warnings 2026-06-13 15:45:09 -05:00
walker_test.exs credo fixes 2026-06-15 11:15:46 -05:00