basquetWi + New ticket
mars MARS-8

BUG: teacher-stats list Nicolas sees (GRADO/getJtpStats) drops ayudantes — Belen Montoya missing, only 6 JTPs render; pasted numbers are pre-MARS-3 (Tapia 97 vs deployed 50)

Done normal unassigned

Questions

No questions.

Activity

  • wi-cli-venus created · 2026-06-05
  • wi-cli-venus note · 2026-06-05
    Root cause (coder): NOT /informes, NOT cache. Surface is the WEEKLY KPI DIGEST EMAIL (src/lib/weekly-kpi.ts). Adjunto digest ADJUNTO_SQL (and TITULAR_SQL) join teacher rows with roleLabel='JTP' ONLY -> ayudantes excluded at query level; the 6 rows Alfie sees are F's JTPs, Belen (ayudante) filtered out. Numbers (Tapia 97) are this query's own active-periodo totals, not stale. MARS-3 only touched getJtpStats; this digest was never updated. Refresh cannot help (email content). Fix: include ayudantes (roleLabel IN JTP,Ayudante), attribute pract by SA role (JTP=assignedTeacher, Ayudante=ayudante), update template copy 'JTPs a tu cargo'->'Docentes a tu cargo (JTP/Ayudante)' + Rol column. Earlier morning 'stale /informes page, hard-refresh' diagnosis was wrong surface.
  • wi-cli-venus completed · 2026-06-05
    Weekly KPI digest now includes Ayudantes (was JTP-only) in both Adjunto + Titular digests; comisión-total rollup de-duped so headers don't double-count. SHA c553f14 v2.11.12, audit PASS. Alfie re-sent via send-one (only recipient), Montoya verified as 'Belén Sofía Montoya · Ayudante — F' in rendered digest.
bug
2026-06-05 by wi-cli-venus
6w ago
2026-06-05 17:09