towerops/lib/towerops/on_call
Graham McIntire 2528e78ff9 refactor: extract per-schema Query modules for organization_id filters
Adds 7 new composable Query modules following the existing
DeviceQuery/AlertQuery pattern. Each exposes base/0 and for_organization/1,2
plus filters used by 2+ callers.

New modules:
- Towerops.OnCall.ScheduleQuery
- Towerops.OnCall.EscalationPolicyQuery
- Towerops.Maintenance.MaintenanceWindowQuery
- Towerops.Organizations.MembershipQuery
- Towerops.Organizations.InvitationQuery
- Towerops.Agents.AgentTokenQuery
- Towerops.Gaiia.DeviceSubscriberLinkQuery

Refactors callsites in alerts, agents, devices, gaiia, maintenance, on_call,
organizations, search, and subscription_limits to use existing or new Query
modules instead of inline 'where: x.organization_id == ^...' clauses.
2026-04-30 14:26:30 -05:00
..
escalation.ex dialyzer: fix all unmatched_return warnings (154 → 0) 2026-04-21 10:03:55 -05:00
escalation_policy.ex chore: rate_limit rewrite + on-call redesign plan + handoff_notifications_mode 2026-04-28 12:17:29 -05:00
escalation_policy_query.ex refactor: extract per-schema Query modules for organization_id filters 2026-04-30 14:26:30 -05:00
escalation_rule.ex feat: add on-call schedules and escalation policies 2026-03-11 12:32:54 -05:00
escalation_target.ex feat: add on-call schedules and escalation policies 2026-03-11 12:32:54 -05:00
incident.ex feat: add on-call schedules and escalation policies 2026-03-11 12:32:54 -05:00
layer.ex feat: add on-call schedules and escalation policies 2026-03-11 12:32:54 -05:00
layer_member.ex feat: add on-call schedules and escalation policies 2026-03-11 12:32:54 -05:00
notification.ex feat: add on-call schedules and escalation policies 2026-03-11 12:32:54 -05:00
notifier.ex feat: add on-call schedules and escalation policies 2026-03-11 12:32:54 -05:00
override.ex feat: add on-call schedules and escalation policies 2026-03-11 12:32:54 -05:00
resolver.ex feat(on_call): drag-drop reorder + restrictions editor + new-schedule polish 2026-04-28 14:27:38 -05:00
schedule.ex dialyzer: fix unknown_type warnings (60 → 0) 2026-04-21 09:43:37 -05:00
schedule_query.ex refactor: extract per-schema Query modules for organization_id filters 2026-04-30 14:26:30 -05:00
user_color.ex feat(on_call): schedules list with gantt timeline (chunk 2) 2026-04-28 12:48:52 -05:00