Skip to content

fix: Dedupe track collaborators#14507

Merged
raymondjacobson merged 1 commit into
mainfrom
codex/dedupe-track-collaborators
Jun 29, 2026
Merged

fix: Dedupe track collaborators#14507
raymondjacobson merged 1 commit into
mainfrom
codex/dedupe-track-collaborators

Conversation

@raymondjacobson

Copy link
Copy Markdown
Member

Summary

  • Deduplicate collaborator artists before rendering track artist bylines, excluding the track owner from the extra artist list.
  • Deduplicate accepted and pending collaborators when preparing edit metadata and when serializing collaborator IDs for upload.
  • Add regression coverage for duplicate collaborator display and upload mapping.

API-side note

The API/indexer should ideally also enforce collaborator uniqueness at the write or read boundary so clients do not receive duplicated users. This client-side guard is still useful because it protects current web surfaces from any already-indexed, cached, or malformed collaborator payloads.

Testing

  • npm run test -w @audius/common -- src/adapters/track.test.ts --run
  • npm run test -w @audius/web -- src/components/link/TrackArtists.test.tsx --run
  • npm run lint -w @audius/web -- src/components/link/TrackArtists.tsx src/components/link/TrackArtists.test.tsx
  • cd packages/common && npx eslint src/adapters/track.ts src/adapters/track.test.ts
  • git diff --check

@changeset-bot

changeset-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 54926c0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

🌐 Web preview ready

Preview URL: https://audius-web-preview-pr-14507.audius.workers.dev

Unique preview for this PR (deployed from this branch).
Workflow run

@raymondjacobson raymondjacobson merged commit d826381 into main Jun 29, 2026
13 checks passed
@raymondjacobson raymondjacobson deleted the codex/dedupe-track-collaborators branch June 29, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant