Skip to content

Handle unlisted tracks with id#720

Merged
dylanjeffers merged 3 commits intomainfrom
unlisted-tracks-with-id
Mar 13, 2026
Merged

Handle unlisted tracks with id#720
dylanjeffers merged 3 commits intomainfrom
unlisted-tracks-with-id

Conversation

@dylanjeffers
Copy link
Contributor

No description provided.

Copy link
Member

@raymondjacobson raymondjacobson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI comments r annoying

JOIN tracks ct ON ct.track_id = @trackId
JOIN tracks ct ON ct.track_id = @trackId AND ct.is_current = true
WHERE pt.is_current = true
AND pt.is_unlisted = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was stream gated removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah wtf

FROM tracks pt
JOIN remixes r ON r.parent_track_id = pt.track_id AND r.child_track_id = @trackId
JOIN tracks ct ON ct.track_id = @trackId
JOIN tracks ct ON ct.track_id = @trackId AND ct.is_current = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think our indexes still use is_current, so maybe keep that?

@dylanjeffers dylanjeffers merged commit 47d0a27 into main Mar 13, 2026
5 checks passed
@dylanjeffers dylanjeffers deleted the unlisted-tracks-with-id branch March 13, 2026 21:38
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.

3 participants