Repository navigation
Backlog
Labels
reviewFound in the November 2026 sweeping code review
Description
Each is one small PR, or rides along with a bigger one.
- Nested results.
Db::callonly takesrusqlite::Result<T>, so a refusal travels asrusqlite::Result<Result<T, E>>: 15 signatures and 61Ok(Err(sites (oauth_server.rs,auth/api.rs,perms.rs:211,signup.rs:162,owner.rs:191,routes/courses/write.rs:78). MakeDb::callgeneric overE: From<rusqlite::Error>. - Notices. The key-in-the-URL design is good, but the parameter is
notice(courses, share),did(manage) orsaved(profile), andRedirect::to(&crate::url(is written 71 times. Aroutes::see(path)helper and one parameter name. - The pass threshold is written twice.
guide::stars_forhard-codes0.7(src/guide.rs:33) besidePASS_PCT.progress::run_passesignoresviawhilerecord_run_atusesrequired_answers_via. - The session query is read by position, with three
NULLplaceholders andr.get(14),r.get(17)(src/auth.rs:393-431). Named constants, or drop the dead columns. - The progress cache leaks into a handler: "Read first, outside the transaction, so the progress cache fills" (
src/routes/pages.rs:738). The write helper from the learning-writes issue should own that ordering. courses::CHECK_HOOK(src/courses.rs:1276) is a test-only global that four test files push and remove with no drop guard."conjugation"is a literal atsrc/routes/games.rs:732beside theGAME_*constants.
Worth keeping as they are (so nobody "fixes" them): one connection behind Db::call with domain functions shaped fn(conn, user_id, course_id, …); progress.rs as the only writer of lesson_passes; the CurrentUser → Project extractors; caps.rs fixing sizes instead of exposing settings; up and down migrations with the tests that check them; integer Unix seconds everywhere; every token stored hashed; the x() / x_at(…, at) pairs for testable time; notices keyed in the URL with no server-side state.
From the code review of 24 November 2026. Line numbers are as of 0.5.0 (2547b36).
Metadata
Metadata
Assignees
Labels
reviewFound in the November 2026 sweeping code review
Activity