Spaces:
Runtime error
Runtime error
Commit History
-
feat(ta-01): update FaceEncoding and Attendance models for new columns
Greg +1: Claude Opus 4.7 (1M context)- FaceEncoding: add photo column as String(500), make encoding nullable - Attendance: add marked_by_role (String) and marked_by_user_id (BigInteger FK) columns These changes match the schema updates from migration 028. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>f2358b4
-
feat(purge): backend marks purged account and exposes ack endpoint
Greg +1: Claude Sonnet 4.6- Account model: last_purged_at, last_purge_acknowledged_at columns - /developer/purge-demo: stamps last_purged_at + clears ack before commit - /auth/me: returns account_purged_at ISO string when purge unacknowledged - POST /auth/ack-purge: admin-only endpoint to dismiss the purge notice Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>a5f2d1b
-
fix(seed): scope demo seeder to is_demo accounts; never touch customers
Greg +1: Claude Sonnet 4.6- Adds Account.is_demo column (migration 022, backfilled for existing demo) - seed_demo.py only operates on accounts where is_demo=True - Existing demo accounts are fully idempotent (no field overwrites) - Removes _clear_demo helper (used MySQL-specific syntax, was dead code) - Integration test guards against future regressions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>96577c8 -
fix(backend): wire entrypoint.sh in Dockerfile + replace LONGTEXT with Text
Greg +1: Claude Sonnet 4.6Two blockers found during Task 3.9 end-to-end verification: 1. Dockerfile CMD was calling uvicorn directly, bypassing entrypoint.sh (no Postgres wait, no create_all, no seed). Fixed to CMD ["/app/entrypoint.sh"]. 2. card_template.py still imported sqlalchemy.dialects.mysql.LONGTEXT, causing UnsupportedCompilationError on PostgreSQL create_all. Replaced with sa.Text. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>7ec15eb
-
Preparar despliegue en fly.io: monolito dockerizado + seeder demo
Greg +1: Claude Opus 4.7 (1M context)- Dockerfile monolito multi-stage (Vite build + backend FastAPI sirviendo el SPA) - dlib via wheel precompilado (dlib-bin) para evitar compilacion pesada/OOM - main.py sirve el SPA con fallback de rutas (guardia anti path-traversal) - entrypoint.sh: espera DB, crea esquema (create_all), siembra demo, uvicorn - seed_demo.py: cuenta demo venezolana (materias, secciones, docentes, representantes, 35 estudiantes en una seccion c/u), asistencia de hoy simulada (facial presente / solo ingreso / tarde / manual / ausente), historial de 10 dias y feriados del calendario escolar - fly.toml (app) + deploy/fly.db.toml (MySQL) + deploy/DEPLOY.md - docker-compose.monolith.yml para prueba local (validada end-to-end) - Asistencia docente: bloqueo antes del horario, aviso por falta de ingreso, batch-toggle por fecha; matricula de una sola seccion por estudiante; ScheduleModal: poblar formulario al clic en bloque/celda Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>6aa6081