Skip to content

change progress redis key name - #495

Merged
mystixxx merged 10 commits into
mainfrom
stage
Sep 12, 2026
Merged

mystixxx merged 10 commits into
mainfrom
stage

Conversation

@mystixxx

Copy link
Copy Markdown
Collaborator

No description provided.

scottdraves and others added 10 commits September 11, 2026 08:45
427c38c changed five playlist owner lookups from
`select: { user: { id: true } }` to
`select: { userId: true, user: { id: true } }`.

Naming a real root column makes TypeORM honour the partial select
literally, so `Playlist.id` is no longer selected. Because these calls
also pass `relations: { user: true }`, TypeORM wraps the query in its
DISTINCT pagination subquery, which references `distinctAlias.Playlist_id`
— a column the SELECT list no longer contains. Postgres rejects the whole
statement before a row is read:

    QueryFailedError: column distinctAlias.Playlist_id does not exist

The throw happens regardless of whether the playlist exists, so these
endpoints return 500 unconditionally — including for requests that should
404:

  POST   /playlist/:uuid/keyframe
  DELETE /playlist/:uuid
  PUT    /playlist/:uuid/order
  DELETE /playlist/:uuid/remove-item/:itemId
  DELETE /playlist/:uuid/keyframe/:playlistKeyframeId

The same commit's other call sites (handleGetPlaylistItems,
handleGetPlaylistPlaybackItems, handleGetPlaylistKeyframes,
loadPlaylistForOwnerAction) already select `id`, which is why reads and
the new batch item endpoint are unaffected.

Add `id: true` to the five selects, and a table-driven regression test
asserting every owner-action lookup selects the primary key.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Awfsre2EbKhYRoWtpnW6Lg
fix: select playlist primary key in owner-action lookups
expose dream progress and playlist processing summaries
order job progress by a redis sequence instead of wall-clock timestamps
@mystixxx
mystixxx merged commit 3202ed6 into main Sep 12, 2026
3 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.

2 participants