Skip to content

Save phone transport lateness on student's morning klass - #215

Merged
buzz-code merged 3 commits into
mainfrom
claude/confident-albattani-emilvl
Oct 12, 2026
Merged

buzz-code merged 3 commits into
mainfrom
claude/confident-albattani-emilvl

Conversation

@buzz-code

Copy link
Copy Markdown
Owner

Summary

Transport lateness reported by phone (Yemot) was saved on an arbitrary student klass — in practice the base klass (כיתת אם). Customer wants it on the morning klass (e.g. "בוקר ו6").

  • createAbsenceRecord now fetches the student's klasses once, then picks the current-year klass whose name starts with בוקר.
  • Falls back to previous behavior (first student klass) when the student has no morning klass; STUDENT.NO_CLASS hangup unchanged.

Tests

  • Added two Yemot scenario tests: morning klass picked; fallback when none.
  • yemot-handler.service.test.ts: 32/32 pass. New morning-klass test fails without the fix.
  • Verified against the reported production data shape (klasses ו6 / ב יעוץ מס 1 / בוקר ו6, year 5787) — record lands on בוקר ו6.

Notes

Existing records are not migrated; only new phone reports are affected.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Rubw4xHpfDfDmWWoZSQovN


Generated by Claude Code

Transport lateness reported by phone was saved on an arbitrary student
klass (usually the base klass). Prefer the student's current-year klass
whose name starts with "בוקר"; fall back to previous behavior when none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rubw4xHpfDfDmWWoZSQovN
@buzz-code
buzz-code merged commit 360ce17 into main Oct 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants