towerops/lib/towerops_web/graphql/resolvers
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
..
activity.ex fix: resolve compilation errors, test failures, and credo issues 2026-02-14 12:23:10 -06:00
agent.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
alert.ex ux: improve PagerDuty integration clarity 2026-02-14 11:28:57 -06:00
check.ex dialyzer: fix all unmatched_return warnings (154 → 0) 2026-04-21 10:03:55 -05:00
device.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
escalation_policy.ex feat: add REST API and GraphQL for on-call schedules and escalation policies 2026-03-11 14:01:15 -05:00
helpers.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
integration.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
maintenance_window.ex add maintenance windows REST API and GraphQL support 2026-03-11 14:33:25 -05:00
member.ex Security hardening + performance fixes across codebase 2026-06-21 17:40:50 -05:00
organization.ex add mobile token auth to GraphQL endpoint (#48) 2026-03-16 15:23:07 -05:00
schedule.ex feat: add REST API and GraphQL for on-call schedules and escalation policies 2026-03-11 14:01:15 -05:00
site.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
time_series.ex fix: correct 32-bit SNMP counter wrap detection for all traffic calculations (#163) 2026-03-25 11:03:43 -05:00