Skip to content

Fix stems endpoint with null original filenames#973

Merged
raymondjacobson merged 1 commit into
mainfrom
codex/fix-null-stem-filenames
Jun 24, 2026
Merged

Fix stems endpoint with null original filenames#973
raymondjacobson merged 1 commit into
mainfrom
codex/fix-null-stem-filenames

Conversation

@raymondjacobson

Copy link
Copy Markdown
Member

Summary

  • return a stable filename string from the track stems endpoint when tracks.orig_filename is null
  • order stems by track ID for deterministic responses
  • add a regression case for a stem row with a null original filename

Verification

  • go test ./api -run TestGetTrackStems -count=1

Live investigation

  • GET /v1/tracks/qJ0RAXE/stems was returning 500: cannot scan NULL into *string for Burko's contest track
  • read-only prod query verified parent track 1960897973 has 30 current, non-deleted stem rows, 10 distinct titles, and all 30 rows have orig_filename IS NULL

@raymondjacobson raymondjacobson merged commit 0881627 into main Jun 24, 2026
5 checks passed
@raymondjacobson raymondjacobson deleted the codex/fix-null-stem-filenames branch June 24, 2026 01:32
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