forge
Explore
Log in

Don't you dare go Hollow

Surface absent flag in tag, intro, route table

Browse files at this commit

a0f200e958702d00a174ad59cb760a1b615f18fdAhmet Kaan GümüşParent: 0944861
  • docs
    • surface absent flag in tag, intro, route table
Show full message
📝 docs(exams): surface absent flag in tag, intro, route table
README.mdmodified+3 -3
@@ -13,8 +13,8 @@ time budget), or **open** (sit anytime, optionally timed per attempt);
1313 students *sit* them via attempts — retakes metered by a per-exam limit
1414 (`0` = unlimited), leaving the exam room governed by a teacher-controlled
1515 rejoin door — and teachers watch attendance, per-student remaining time,
16-sittings, walk-outs, submissions, and marks land live on a monitor endpoint
17-(snapshot or SSE stream). Courses also carry **lesson
16+sittings, walk-outs, no-shows (`absent` once the window closes), submissions,
17+and marks land live on a monitor endpoint (snapshot or SSE stream). Courses also carry **lesson
1818 sessions** with teacher-taken roll call (students never self-mark a lesson),
1919 staff clock in/out on a server-stamped **work log**, and every user has an
2020 **attendance report** (event + per-course lesson tallies with rates).
@@ -294,7 +294,7 @@ marks/attendance reports narrow to the courses the caller manages.
294294 | POST | `/exams/{id}/attempt/answers` | student | `{question_id, selected? \| text?}` — autosave one answer while enrolled and `in_progress` (and not locked out by a closed rejoin door) |
295295 | GET | `/exams/{id}/attempts/{user}/answers` | teacher | A student's answer sheet: `is_correct` flags + suggested `auto_score` (course manager) |
296296 | GET | `/exams/{id}/attempt/ws` | student | **WebSocket** exam room: state ticks, autosave, finish; entering clears `left_at`, leaving stamps it (see "Taking an exam") |
297-| GET | `/exams/{id}/live` | teacher | Live monitor snapshot: roster × latest attempts × marks + per-student progress/`left_at`/`attempts_used` + counts (course manager) |
297+| GET | `/exams/{id}/live` | teacher | Live monitor snapshot: roster × latest attempts × marks + per-student progress/`left_at`/`attempts_used` + counts; no-shows turn `absent` once the window closes (course manager) |
298298 | GET | `/exams/{id}/live/stream` | teacher | The same snapshot as SSE `snapshot` events every ~2s (course manager) |
299299 | GET | `/marks/me` | student | The caller's mark report (per-course + overall averages) |
300300 | GET | `/marks/{user}` | teacher | A user's mark report, narrowed to the caller's courses (manager+: full) |
src/lib.rsmodified+1 -1
@@ -45,7 +45,7 @@ use crate::state::AppState;
4545 (name = "sessions", description = "Lesson sessions and their roll call (session teacher or course manager marks enrolled students; manager+ marks the teacher)"),
4646 (name = "work", description = "Staff work log: check-in/check-out stamped by the server clock, manager corrections"),
4747 (name = "attendance", description = "Attendance summary reports: event tallies + per-course lesson roll call with rates"),
48- (name = "exams", description = "Exams (per course, weighted): results, sync/async/open scheduling, attempts with retakes (`max_attempts`, 0 = unlimited) and a live rejoin door (`allow_rejoin`), questions/answers, and live monitoring. A modeless exam is an offline-graded draft — attempts on it are a 409. Not in this spec (WebSocket): the student exam room at `GET /exams/{id}/attempt/ws` — JSON frames; entering clears the attempt's `left_at`, leaving mid-attempt stamps it. See the README's \"Taking an exam\" section for the protocol"),
48+ (name = "exams", description = "Exams (per course, weighted): results, sync/async/open scheduling, attempts with retakes (`max_attempts`, 0 = unlimited) and a live rejoin door (`allow_rejoin`), questions/answers, and live monitoring (no-shows flagged `absent` once the window closes). A modeless exam is an offline-graded draft — attempts on it are a 409. Not in this spec (WebSocket): the student exam room at `GET /exams/{id}/attempt/ws` — JSON frames; entering clears the attempt's `left_at`, leaving mid-attempt stamps it. See the README's \"Taking an exam\" section for the protocol"),
4949 (name = "marks", description = "Weighted mark reports per course and overall, labeled by the school's grade bands when configured"),
5050 (name = "settings", description = "School policy, one singleton: exam kinds, attendance statuses, grade-display bands. Read: any authenticated user; edit: manager+"),
5151 (name = "terms", description = "Academic terms (semester/trimester/quarter — whatever the school runs); courses may link to one. Read: any authenticated user; edit: manager+"),