[Feature] Define tenant lifecycle events: created, suspended, resumed, deletion requested, erasure completed #3

Closed
opened 2026-07-10 23:38:36 +02:00 by zemion · 1 comment
Owner

Moved from add-ideas/govoplan-core#85: add-ideas/govoplan-core#85
Reason: Tenant lifecycle events belong in the tenancy module.

Imported from a backlog-like text file.

  • Source: /mnt/DATA/Nextcloud/ADD ideas UG/Products/govoplan/split-concept-action-plan.md
  • Line: 178
  • Source kind: product
  • Section: GovOPlaN Split Concept and Action Plan > Staged Refactor Plan > Phase 3: Extract Tenancy

Imported item:

Define tenant lifecycle events: created, suspended, resumed, deletion requested, erasure completed.
> Moved from `add-ideas/govoplan-core#85`: https://git.add-ideas.de/add-ideas/govoplan-core/issues/85 > Reason: Tenant lifecycle events belong in the tenancy module. <!-- codex-generic-backlog-fingerprint:bb0004dab44b8c2cd358dcc7 --> Imported from a backlog-like text file. - Source: `/mnt/DATA/Nextcloud/ADD ideas UG/Products/govoplan/split-concept-action-plan.md` - Line: `178` - Source kind: `product` - Section: `GovOPlaN Split Concept and Action Plan > Staged Refactor Plan > Phase 3: Extract Tenancy` Imported item: ```text Define tenant lifecycle events: created, suspended, resumed, deletion requested, erasure completed. ```
Author
Owner

Codex State: done

Summary

  • Added the tenant lifecycle event contract for created, suspended, resumed, deletion requested, and erasure completed.
  • Routes now emit explicit lifecycle audit actions while preserving legacy audit actions where applicable.

Changed Files

  • src/govoplan_tenancy/backend/lifecycle.py
  • src/govoplan_tenancy/backend/api/v1/routes.py
  • docs/TENANCY_MODULE_BOUNDARY.md
  • tests/test_tenant_lifecycle.py

Verification

  • PYTHONPATH=src python -m unittest discover -s tests
  • python -m py_compile src/govoplan_tenancy/backend/lifecycle.py src/govoplan_tenancy/backend/api/v1/routes.py
## Codex State: done ### Summary - Added the tenant lifecycle event contract for created, suspended, resumed, deletion requested, and erasure completed. - Routes now emit explicit lifecycle audit actions while preserving legacy audit actions where applicable. ### Changed Files - `src/govoplan_tenancy/backend/lifecycle.py` - `src/govoplan_tenancy/backend/api/v1/routes.py` - `docs/TENANCY_MODULE_BOUNDARY.md` - `tests/test_tenant_lifecycle.py` ### Verification - `PYTHONPATH=src python -m unittest discover -s tests` - `python -m py_compile src/govoplan_tenancy/backend/lifecycle.py src/govoplan_tenancy/backend/api/v1/routes.py`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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