Migrate access function model to organizations.directory #2

Closed
opened 2026-07-10 11:01:18 +02:00 by zemion · 2 comments
Owner

Move canonical organization/function reads out of access and behind the organizations capability.

Acceptance criteria:

  • Access role/right resolution consumes organizations.directory for organization units, functions, and assignments.
  • Existing access_organization_units, access_functions, and access_function_assignments remain compatibility/projection tables only during rollout.
  • A migration/backfill plan exists for current deployments.
  • Tests prove role resolution works with canonical organization data installed.
Move canonical organization/function reads out of access and behind the organizations capability. Acceptance criteria: - Access role/right resolution consumes `organizations.directory` for organization units, functions, and assignments. - Existing `access_organization_units`, `access_functions`, and `access_function_assignments` remain compatibility/projection tables only during rollout. - A migration/backfill plan exists for current deployments. - Tests prove role resolution works with canonical organization data installed.
Author
Owner

Codex State: progress

Summary

  • Access now consumes organizations.directory for function metadata and idm.directory for accepted function assignments in explanation/role-source flows.
  • External function role mappings connect organization function IDs to Access roles without making Access hard-depend on Organizations or IDM.

Verification

  • unittest tests.test_access_contracts.AccessContractTests: covered IDM function role explanation path

Next / Blocked

  • Remaining work is migration/backfill/deprecation of legacy access-owned function tables and fuller canonical-data integration tests.

Suggested status label: status/in-progress

## Codex State: progress ### Summary - Access now consumes organizations.directory for function metadata and idm.directory for accepted function assignments in explanation/role-source flows. - External function role mappings connect organization function IDs to Access roles without making Access hard-depend on Organizations or IDM. ### Verification - `unittest tests.test_access_contracts.AccessContractTests: covered IDM function role explanation path` ### Next / Blocked - Remaining work is migration/backfill/deprecation of legacy access-owned function tables and fuller canonical-data integration tests. Suggested status label: `status/in-progress`
Author
Owner

Codex State: done

Summary

  • Access now prefers organizations.directory for organization units and function definitions, while IDM remains the owner of identity-to-function assignment facts.
  • Derived Access roles are resolved through Access external function-role mappings and are filtered against active canonical Organizations functions when the capability is present.
  • The legacy Access organization/function projection remains readable as a rollout fallback; migration/backfill plan is documented in docs/ORGANIZATION_MODEL.md.

Changed Files

  • govoplan-access@002d12e
  • govoplan-core@edb4687
  • govoplan-organizations@2810b1c

Verification

  • python -m unittest tests.test_identity_organization_contracts tests.test_access_contracts.AccessContractTests: OK
  • python -m unittest tests.test_organizations_api tests.test_idm_api tests.test_identity_api: OK
## Codex State: done ### Summary - Access now prefers organizations.directory for organization units and function definitions, while IDM remains the owner of identity-to-function assignment facts. - Derived Access roles are resolved through Access external function-role mappings and are filtered against active canonical Organizations functions when the capability is present. - The legacy Access organization/function projection remains readable as a rollout fallback; migration/backfill plan is documented in docs/ORGANIZATION_MODEL.md. ### Changed Files - `govoplan-access@002d12e` - `govoplan-core@edb4687` - `govoplan-organizations@2810b1c` ### Verification - `python -m unittest tests.test_identity_organization_contracts tests.test_access_contracts.AccessContractTests: OK` - `python -m unittest tests.test_organizations_api tests.test_idm_api tests.test_identity_api: OK`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: add-ideas/govoplan-organizations#2
No description provided.