[Debt] Replace IDM cross-module ORM imports with public capabilities #3

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

govoplan-idm explicitly depends on identity and organizations packages, but it imports their backend ORM models directly. That makes schema internals part of another module's runtime contract and increases migration coupling.

Code paths: src/govoplan_idm/backend/directory.py:8, src/govoplan_idm/backend/directory.py:10, src/govoplan_idm/backend/api/v1/routes.py:22, src/govoplan_idm/backend/api/v1/routes.py:24.

Acceptance: identity and organizations expose typed capability/query interfaces, IDM uses those public contracts, dependency-boundary checks cover the rule, and tests cover IDM assignment listing/resolution through the public contracts.

`govoplan-idm` explicitly depends on identity and organizations packages, but it imports their backend ORM models directly. That makes schema internals part of another module's runtime contract and increases migration coupling. Code paths: `src/govoplan_idm/backend/directory.py:8`, `src/govoplan_idm/backend/directory.py:10`, `src/govoplan_idm/backend/api/v1/routes.py:22`, `src/govoplan_idm/backend/api/v1/routes.py:24`. Acceptance: identity and organizations expose typed capability/query interfaces, IDM uses those public contracts, dependency-boundary checks cover the rule, and tests cover IDM assignment listing/resolution through the public contracts. <!-- codex-audit-2026-07-11:idm-orm-imports -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: add-ideas/govoplan-idm#3
No description provided.