Skip to content

chore(api): bump etl to persist dropped track/comment fields (#343)#924

Merged
raymondjacobson merged 1 commit into
mainfrom
chore/bump-etl-dropped-fields
Jun 9, 2026
Merged

chore(api): bump etl to persist dropped track/comment fields (#343)#924
raymondjacobson merged 1 commit into
mainfrom
chore/bump-etl-dropped-fields

Conversation

@raymondjacobson

Copy link
Copy Markdown
Member

Summary

Bumps github.com/OpenAudio/go-openaudio and .../pkg/etl from 4cccb46 (#920) to c5fcacf to consume go-openaudio #343.

That change fixes entity-manager handlers silently dropping columns that exist on the table and arrive in metadata (same class as the social-links fix, found by auditing all write handlers):

  • Track create/update now persist license, isrc, iswc, preview_start_seconds, comments_disabled, no_ai_use, cover_original_song_title, cover_original_artist. Prod scale of the prior loss: 642,291 tracks have a license, 94,894 an isrc, 31,615 a custom preview_start_seconds.
  • Comment update now preserves/updates video_url (a text-only edit no longer wipes an attached video).

core-indexer runs this vendored audius/api image, so this bump ships the fix.

Changes

  • go.mod / go.sum: both go-openaudio modules → v1.3.1-0.20260609000702-c5fcacffbb79

Deploy note — no migration

This is code-only: every affected column already exists in migration 0002/0032, so there's no new migration and no schema/rollout concern. Latest ETL migration stays 0032.

Test plan

  • go mod tidy — only go.mod/go.sum changed
  • go build ./... passes
  • resolved module contains the track field writes (License in track_row.go) and comment video_url COALESCE; latest migration unchanged (0032)
  • Post-deploy: track license/isrc/preview-start and comment video edits persist (verify on a test account)

🤖 Generated with Claude Code

Bumps go-openaudio to c5fcacf, which fixes the track create/update handlers
dropping license/isrc/iswc/preview_start_seconds/comments_disabled/no_ai_use/
cover_original_*, and the comment update handler dropping video_url. Code-only
(no new migration).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@raymondjacobson raymondjacobson merged commit af92648 into main Jun 9, 2026
5 checks passed
@raymondjacobson raymondjacobson deleted the chore/bump-etl-dropped-fields branch June 9, 2026 00:18
raymondjacobson added a commit that referenced this pull request Jun 9, 2026
## Summary

Bumps `github.com/OpenAudio/go-openaudio` and `.../pkg/etl` from
`c5fcacf` (#924) to **`e8586ac`**.

**Primary:** go-openaudio **#348** — fixes `playlists.last_added_to`
never being written (perpetually NULL), which silently broke the
"recently added to" sort and the playlist-update notification. Now set
to the block time of the most recent track add (code-only in #348).

**Also carried** (main advanced past the baseline): #345/#346 — the
**TrackCollaborator** entity. This adds ETL migration **0033**, which
`CREATE TABLE IF NOT EXISTS track_collaborators` (a new, empty table)
plus one index on it.

`core-indexer` runs this vendored image, so the bump is required to ship
the fix.

## Changes
- `go.mod` / `go.sum`: both go-openaudio modules →
`v1.3.1-0.20260609013415-e8586ac9ce16`

## Deploy note — migration 0033 is low risk
0033 creates a brand-new empty table + index with `IF NOT EXISTS`.
There's no existing data to scan and no `ACCESS EXCLUSIVE` lock on a
populated table (unlike the 0031 slug index), so it applies instantly —
no pre-build/CONCURRENT step needed. The `last_added_to` fix itself is
code-only (no migration).

## Test plan
- [x] `go mod tidy` — only go.mod/go.sum changed
- [x] `go build ./...` passes
- [x] resolved module contains the `last_added_to` writes (`LastAddedTo`
in playlist_row.go) and migration `0033`
- [ ] Post-deploy: migration version 33 applied clean; creating/editing
a playlist populates `last_added_to`, and a rename preserves it

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
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