fix: remove dead Home-variant GetClasses; classes now aliases schedule

The remaining open item. Probing settled it: the Home-variant GetClasses
returns placeholder records even when the real client calls it -- confirmed by
capturing the app's own request/response pair during a live walk (200, ~10 KB,
zero real records, empty ScheduleList). Every screen-variable override
(WBDataFetchIsComplete, IsLoading, ProgramsWithHistory, all date/program
combos) changes nothing. It is not parameter-gated; it is empty by design.

So the fix is honesty, not persistence: the action is removed from the
allowlist (a test pins it out so it cannot quietly return), and `wodify
classes` becomes an argparse alias of `schedule`, the class-list action that
actually returns data. `schedule` also gains the default-to-today behaviour
the old command had.

134 tests, no network required.

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
lucioandClaude Opus 5 committed 2026-07-25 15:44:41 -07:00
1 parent 1d0fd9c8ca
commit 8ab4ad4b17
5 files changed
+77 -19

No files matched your search

+12 -5
View File
@@ -285,11 +285,18 @@ Test fixtures use **fictional** names. Real gym members' names were scrubbed and
history squashed before first publication — do not reintroduce live attendee names into
fixtures or docs, even in examples. The gym host and location id are not secrets and stay.
### Not yet done
- `classes` (the Home variant of `GetClasses`) still returns placeholders only; superseded by
`schedule` and kept solely as a labelled trap
- Not pushed to the remote: the git server exposes no SSH port, and HTTPS needs a password
that has to be entered by a human
### The Home-variant GetClasses is dead — closed, do not reopen
`WodifyClient_Class/Classes/Attendance/DataActionGetClasses` returns placeholder records
(`Id "0"`, empty `ScheduleList`, zero WODs) **even when the real client calls it**. Confirmed
by capturing the app's own request/response pair during a live walk to the workout screen:
200, ~10 KB of empty-record scaffolding, `real_wods=0`. Screen-variable overrides
(`WBDataFetchIsComplete`, `IsLoading`, `ProgramsWithHistory`, every date/program combination)
were all probed and change nothing. It is not parameter-gated; it is empty by design — the
Home screen sources its data from other actions.
The action is removed from the allowlist (a test pins that), and `wodify classes` is now a
CLI alias for `schedule`, which is the class-list action that actually returns data.
## Gotchas found the hard way