fix(webapp): a session cannot end before it starts (#1159) #1160
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1159-session-end-before-start"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1159.
A session rescheduled under 4.4.1 kept its old end time, so it could end weeks before it started: the calendar item was wrong, and the poller would have marked the session completed a minute after it began.
e1159a1b2c3d, data only): a series session with an end at or before its start gets start + the series length; any other gets its end cleared. Downgrade is a deliberate no-op.{"detail": "A session has to end after it starts."}.No bot contract change.
Verified
On
docker-testfrom the committed tree: the new test module plus the sessions, series, scheduling, calendar feed/invite and migration-head modules (164 passed); the poller's completion tests;alembic upgrade head/downgrade -1/upgrade headon a real Postgres; ruff format and check; version sync and changelog checks; eslint and vitest forsrc/components/session.Not run locally: the full backend and frontend suites,
build,synthetic(left to CI).Note for merging
Two other 4.5.1 branches (#1156, #1158) also add a migration. Whichever merges after this one needs its
down_revisionre-pointed and the head pin intests/export/test_import_jobs_migration.pymoved.Prod's one affected row (session 14 of A Merry Band of Thieves) was corrected by hand on 12 Oct on the owner's say, after a backup.
🤖 Generated with Claude Code