Skip to content

users: note that stats are vip only - #365

Merged
mfederowicz merged 1 commit into
mainfrom
users-stats-vip
Nov 19, 2026
Merged

mfederowicz merged 1 commit into
mainfrom
users-stats-vip

Conversation

@mfederowicz

Copy link
Copy Markdown
Owner

Trakt precomputes GET /users/{id}/stats for VIP users only and documents 204 No Content when no stats exist (trakt/trakt-api#929, contract "🔥 VIP Only").

Fixed

  • users -a stats on a 204 prints users -a stats: Trakt has no stats for <user> (stats are computed for VIP users only), nothing was written, exits 0 and writes no file. Before, it printed Found <user> user stats and wrote {}.

Changed

  • docs/users.md: the stats section says the stats are VIP only and that a non-VIP account currently gets all counts as 0.

Tests: TestUsersStatsHandlerNoContent (mock 204) fails without the fix.

Live check: none for the 204 path. On 2026-11-19 the live API answered 200 with all zeros for the maintainer's non-VIP account (and real counts for a VIP user), so the 204 branch can only be tested with a mock. The 200 path is unchanged.

AI: Claude Code traced the zero stats to the contract's VIP note and wrote the code, test, docs and changelog entry.

@mfederowicz
mfederowicz merged commit 5126b0f into main Nov 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant