All checks were successful
Build and Push Docker Image / build (push) Successful in 4m14s
Reference numbers (unified scheme PREFIX-YYYYMM-HOSP-NNNN, e.g. CMP-202606-HHN-0001): - new ReferenceSequence model + generate_reference() helper (apps/core) - Complaint/Inquiry/Observation/Appreciation/Suggestion emit unified refs via save() - prefix-based auto-routing in public track API (CMP/INQ/OBS trackable; APR/SGT internal-only) - removed legacy CMP-/INQ- generators in ui_views, integrations, px_sources - migrations: core.0003_referencesequence, appreciation.0006, feedback.0008, observations.0012 - unit tests (format, sanitization, monthly reset, 40-thread concurrency) QA audit: - isolated E2E hospital sandbox mirroring HH-N + 10 role users (create_e2e_isolated_env) - feedback-modules-audit.spec.ts + audit helper (headed, run-to-completion) - reports/feedback-modules-qa-report.md Also bundles accumulated in-progress work across complaints, observations, organizations, templates, and other modules.
42 lines
1.3 KiB
Python
42 lines
1.3 KiB
Python
# Generated by Django 6.0.1 on 2026-05-21 21:22
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
def backfill_manager_review_status(apps, schema_editor):
|
|
ComplaintInvolvedDepartment = apps.get_model("complaints", "ComplaintInvolvedDepartment")
|
|
ComplaintInvolvedDepartment.objects.filter(
|
|
manager_review_status__isnull=True,
|
|
response_submitted=True,
|
|
).update(manager_review_status="pending")
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("complaints", "0008_manager_review_workflow"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name="complaintinvolveddepartment",
|
|
name="manager_review_status",
|
|
field=models.CharField(
|
|
blank=True,
|
|
choices=[
|
|
("pending", "Pending Manager Review"),
|
|
("approved", "Manager Approved"),
|
|
("rejected", "Manager Rejected"),
|
|
],
|
|
default="pending",
|
|
help_text="Department manager review status of the champion response",
|
|
max_length=20,
|
|
null=True,
|
|
),
|
|
),
|
|
migrations.RunPython(
|
|
backfill_manager_review_status,
|
|
reverse_code=migrations.RunPython.noop,
|
|
),
|
|
]
|