[Debt] Split large campaign router into focused route modules #52

Open
opened 2026-07-11 11:39:44 +02:00 by zemion · 0 comments
Owner

govoplan-campaign has a large backend router covering campaign CRUD, versions, recipient import profiles, jobs, review/send, reports, shares, and execution actions. This increases regression risk and makes route ownership harder to reason about.

Hotspot: src/govoplan_campaign/backend/router.py is close to 3,000 lines.

Acceptance: split routes by workflow area while preserving API paths, move shared query/response helpers into focused service modules, and add smoke tests for route registration/key endpoints.

`govoplan-campaign` has a large backend router covering campaign CRUD, versions, recipient import profiles, jobs, review/send, reports, shares, and execution actions. This increases regression risk and makes route ownership harder to reason about. Hotspot: `src/govoplan_campaign/backend/router.py` is close to 3,000 lines. Acceptance: split routes by workflow area while preserving API paths, move shared query/response helpers into focused service modules, and add smoke tests for route registration/key endpoints. <!-- codex-audit-2026-07-11:campaign-router-split -->
zemion added the
type
debt
module/campaign
priority
p3
status
ready
area/api
codex/ready
labels 2026-07-11 11:39:44 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: add-ideas/govoplan-campaign#52
No description provided.