forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to src/web/holidays.rsClear filter

2026-09-24

✨ feat(limits): publish the holiday PATCH bound, raise the profile section capAhmet Kaan Gümüş · d9d0403
✨ feat(limits): publish the holiday PATCH bound, raise the profile section cap

`UpdateHoliday.name` now carries the same published `max_length` its create
twin does, so a client validates a PATCH against the same bound the server
re-checks — the runtime refusal was already there, only the contract was
silent.

`MAX_PROFILE_COURSES` goes 20 -> 100: the profile course block became one row
per section, and a teacher's sections are their courses multiplied by the
classes they teach, so the course-era figure truncated a real timetable. It
stays a cap on the response, not on membership — `/courses/me` and
`/classes/me` carry the full lists, and the bound is published so a client can
page for the rest.
✨ feat(holidays): the non-teaching calendar over the API and the materialize routeAhmet Kaan Gümüş · 3547dc5
✨ feat(holidays): the non-teaching calendar over the API and the materialize route

`src/web/holidays.rs`: five routes (paged overlap-filtered `GET /holidays`,
`GET /holidays/{id}` for any session, manager-gated `POST`/`PATCH`/`DELETE`),
nested ungated beside `/terms` and tagged in the spec. `HolidayLimits` and the
weekly-plan materialize caps join `GET /limits`, and `max_course_sections` is
published with them.

`POST /instances/{id}/weekly-plan/materialize` turns a section's resolved plan
into dated lessons over a range: dry run by default, the same call with
`apply: true` commits, holidays and already-scheduled starts are reported as
skipped, and the response reuses `SessionResponse`. Slot DTOs carry the new
optional topic.

Also closes a wave-1 defect: `service::course_session::materialize` captured
`&PgPool`/`&ClassCourse` in its `tx_with_retry` closure, so its future was not
Send and no route could await it — now owned captures.