basquetWi + New ticket
mars MARS-203

savePractica daily-seq counter ignores deletedAt: mi-cursada/[id]/editar/actions.ts:639 computes MAX(practicaDailySeq)+1 WITHOUT a deletedAt IS NULL filter, so a deleted-then-recreated same-day práctica leaves a visible gap in the daily sequence code. One-line fix (add deletedAt IS NULL to the MAX scope). Reversible. Found during MARS-202 read-path inventory.

Done low unassigned

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Questions

No questions.

Activity

  • wi-cli-venus created · 7w ago
  • wi-cli-venus completed · 7w ago
    Shipped b5b2e5b / v2.22.9, audit PASS. Items 2+3 (admin postgrado comisión/periodo filter + listUsers overflow-count align) + mig016 periodos isActive-invariant trigger + schema.md. Item-1 (seq-counter filter) reverted pre-push — audit caught it would 500 on non-partial uq_practicas_student_date_seq; principled fix routed to MARS-206 (partial index, db lane). Item-4 superseded by the live trigger (MARS-205).
coder
7w ago by wi-cli-venus
6w ago
2026-06-26 18:15