have a good think about my exercisesOrder thing, it is fragile, not enforced on backend. #108

Open
opened 2025-10-29 15:17:42 +11:00 by Ghost · 0 comments
Ghost commented 2025-10-29 15:17:42 +11:00 (Migrated from codeberg.org)

easy, add hook to on routine/session record crud methods, check that all exerciseRows present in exercisesOrder, and no extra. if extra, delete. If missing, append at end.

then make sure the call to update the routine/session always happens after calls to routineExercise/sessionExercise... is this ideal?

easy, add hook to on routine/session record crud methods, check that all exerciseRows present in exercisesOrder, and no extra. if extra, delete. If missing, append at end. then make sure the call to update the routine/session always happens after calls to routineExercise/sessionExercise... is this ideal?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
davenh99/progressa#108
No description provided.