Release v0.1.5

This commit is contained in:
2026-07-07 15:49:06 +02:00
commit 0f601fc693
43 changed files with 592 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
from __future__ import annotations
from govoplan_audit.backend.db import models as audit_models # noqa: F401 - populate Audit ORM metadata
from govoplan_core.core.module_guards import drop_table_retirement_provider, persistent_table_uninstall_guard
from govoplan_core.core.modules import MigrationSpec, ModuleContext, ModuleManifest
from govoplan_core.db.base import Base
def _route_factory(context: ModuleContext):
del context
from govoplan_audit.backend.api.v1.routes import router
return router
manifest = ModuleManifest(
id="audit",
name="Audit",
version="0.1.5",
dependencies=("access",),
route_factory=_route_factory,
migration_spec=MigrationSpec(
module_id="audit",
metadata=Base.metadata,
retirement_supported=True,
retirement_provider=drop_table_retirement_provider(audit_models.AuditLog, label="Audit"),
retirement_notes="Destructive retirement drops audit-owned database tables after the installer captures a database snapshot.",
),
uninstall_guard_providers=(
persistent_table_uninstall_guard(audit_models.AuditLog, label="Audit"),
),
)
def get_manifest() -> ModuleManifest:
return manifest