Skip to content

shows: treat a 201 on reset_show_progress as success - #318

Merged
mfederowicz merged 1 commit into
mainfrom
shows-reset-progress-201
Oct 31, 2026
Merged

mfederowicz merged 1 commit into
mainfrom
shows-reset-progress-201

Conversation

@mfederowicz

Copy link
Copy Markdown
Owner

Fixed

  • shows -a reset_show_progress: the contract (trakt-api 3c64fc4) answers POST shows/{id}/progress/watched/reset with 201 and {reset_at}. The handler only printed its result on 200, so a successful reset printed nothing. It now accepts 201, and still accepts 200.

The contract marks the route VIP only, so this is mock-tested only. The new handler test covers 201 with -reset_at (body sent in UTC), 200, undo (204) and a missing -i. docs/shows.md now says reset and undo are VIP only.

An AI assistant (Claude Code) wrote the fix and tests and drafted this description.

The contract (trakt-api 3c64fc4) answers POST shows/{id}/progress/watched/reset with 201 and
{reset_at}; the handler only printed its result on 200, so a successful reset printed nothing.
The route is VIP only: mock-tested.
@mfederowicz
mfederowicz merged commit 2ab9eea into main Oct 31, 2026
6 checks passed
@mfederowicz
mfederowicz deleted the shows-reset-progress-201 branch October 31, 2026 01:45
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