PlannedSession has no userId #176
Labels
No labels
accessibility
area:accounts
area:ai-evals
area:look
area:maps
area:platform
area:rides-progress
area:riding
area:today-plan-coach
area:ui-shell
bot:blocked
bot:failed
bot:pr
bot:waiting
bot:working
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
later
now
owner-check
parked
question
ready
session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/trainer#176
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
PlannedSessionhas nouserId, so ownership checks and date queries join through Mesocycle → PlanVersion → Plan. DenormaliseuserIdthere if the joins get hot.Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.
What this is about. A planned session (
PlannedSession) doesn't store its owner. Checking that a session is yours, or querying sessions by date, joins through Mesocycle → PlanVersion → Plan to reachuserId.Status (checked 2026-11-08): unchanged.
When it matters: only if those queries get slow. Session 49 (#224) times its History queries on real data, which would show it. Adding a column is an additive migration, so it's safe to do later.