Skip to content

fix(models): restore external IDs on Track and Album - #472

Merged
dargmuesli merged 2 commits into
docs/migration/add-v9-to-v10-guidefrom
fix/models/restore-external-ids
Sep 1, 2026
Merged

dargmuesli merged 2 commits into
docs/migration/add-v9-to-v10-guidefrom
fix/models/restore-external-ids

Conversation

@dargmuesli

Copy link
Copy Markdown
Member

Album.getExternalIds() and Track.getExternalIds() disappeared in the spec sync. The specification still lists external_ids as a required property on both objects, and unlike available_markets, popularity and linked_from it carries no deprecated: true, so the removal looks like collateral rather than a decision. It also left ExternalId in the tree with nothing returning it.

This restores the field, the getter, the builder setter and the JSON parsing on both objects, matching how they looked in 9.4.0. ISRC, EAN and UPC codes are reachable again.

Both request tests now assert the parsed value rather than just non-null: GBFFP0300052 for the track fixture and 5099749994324 for the album fixture. Setting either expectation to a wrong value fails both the sync and async paths.

The second commit drops the paragraph in the migration guide that reported this removal, so the guide stays correct whichever way the two PRs land.

395 tests pass, the javadoc build is clean and ci/check-docs.py passes.

@codecov

codecov Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.93%. Comparing base (a2295b8) to head (156748e).

Files with missing lines Patch % Lines
...lin/spotify/model_objects/specification/Track.java 77.77% 1 Missing and 1 partial ⚠️
...lin/spotify/model_objects/specification/Album.java 90.00% 1 Missing ⚠️
Additional details and impacted files
@@                           Coverage Diff                            @@
##             docs/migration/add-v9-to-v10-guide     #472      +/-   ##
========================================================================
+ Coverage                                 48.73%   48.93%   +0.19%     
- Complexity                                  712      716       +4     
========================================================================
  Files                                       325      325              
  Lines                                     11177    11195      +18     
  Branches                                   1317     1319       +2     
========================================================================
+ Hits                                       5447     5478      +31     
+ Misses                                     4711     4696      -15     
- Partials                                   1019     1021       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dargmuesli
dargmuesli merged commit 3ce3498 into docs/migration/add-v9-to-v10-guide Sep 1, 2026
7 checks passed
@dargmuesli
dargmuesli deleted the fix/models/restore-external-ids branch September 1, 2026 21:33
@dargmuesli dargmuesli mentioned this pull request Sep 1, 2026
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