Add phase 4 registration and renewal lifecycle management

This commit is contained in:
A R R R Associates
2026-07-23 12:05:41 +05:30
parent 0f7d6f4396
commit 929ed26737
14 changed files with 507 additions and 0 deletions
+6
View File
@@ -25,6 +25,8 @@ from app.modules.documents.models import EngagementDocument, EngagementDocumentV
from app.modules.alerts.models import UserAlert
from app.modules.notice_cases.models import NoticeCase, NoticeCaseEvent, NoticeCaseHearing, NoticeCaseOrder, NoticeCaseDocument
from app.modules.notifications.automation import start_notification_scheduler
from app.modules.registrations.service import seed_registration_types
from app.modules.registrations import models as registration_models # noqa: F401
DEFAULT_ROLES = [
"System Admin",
@@ -955,5 +957,9 @@ def on_startup(app: FastAPI) -> None:
finally:
db.close()
# Phase 4 registration lifecycle masters are idempotently seeded.
with CommonSessionLocal() as registration_db:
seed_registration_types(registration_db)
# Phase 7O: start alert notification/escalation automation after schema and seed checks.
start_notification_scheduler()