Skip to content

BUG-23: keep recommendation order when building tracks - #47

Merged
Gabriel-Lewis merged 1 commit into
devfrom
fix/bug-23-playlist-order
Oct 20, 2026
Merged

Gabriel-Lewis merged 1 commit into
devfrom
fix/bug-23-playlist-order

Conversation

@Gabriel-Lewis

Copy link
Copy Markdown
Owner

Iterates the requested MBID ranking instead of the response map. Verified: new tests + full discovery package pass, golangci-lint 0 issues.

getTracks iterated the Recordings response map, so Go map ordering
shuffled the playlist away from the recommendation ranking on every
run.

Intersect the requested MBID ranking with the returned recordings,
keeping request order (unreturned recordings are dropped, as
before). Adds ordering unit tests.
@Gabriel-Lewis
Gabriel-Lewis force-pushed the fix/bug-23-playlist-order branch from 8228f08 to fbd364d Compare October 20, 2026 21:59
@Gabriel-Lewis
Gabriel-Lewis merged commit 93d3fed into dev Oct 20, 2026
4 checks passed
@Gabriel-Lewis
Gabriel-Lewis deleted the fix/bug-23-playlist-order branch October 20, 2026 22:01
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