Repository navigation
users: note that stats are vip only - #365
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trakt precomputes
GET /users/{id}/statsfor VIP users only and documents204 No Contentwhen no stats exist (trakt/trakt-api#929, contract "🔥 VIP Only").Fixed
users -a statson a204printsusers -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 printedFound <user> user statsand wrote{}.Changed
docs/users.md: the stats section says the stats are VIP only and that a non-VIP account currently gets all counts as0.Tests:
TestUsersStatsHandlerNoContent(mock 204) fails without the fix.Live check: none for the 204 path. On 2026-11-19 the live API answered
200with 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.