Skip to content

Fix object-shaped album pre-release timestamps (#105) - #106

Merged
Aran404 merged 8 commits into
mainfrom
fix/105-album-pre-release-timestamps
Nov 22, 2026
Merged

Aran404 merged 8 commits into
mainfrom
fix/105-album-pre-release-timestamps

Conversation

@Aran404

@Aran404 Aran404 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Problem

References #105. Spotify's preReleaseEndDateTime can be an object with isoString and optional precision; Album and AlbumDetails currently declare it as str | None, so valid responses fail decoding or lose search hits.

Evidence

Change

  • Reuse ReleaseDate for both album models' pre-release timestamps. Re-export the existing album_details.ReleaseDate import for callers already using it.
  • Keep str and None accepted for compatibility with the previous model contract.
  • Add offline regressions for object timestamps with omitted / DAY / MINUTE precision, legacy string/null, malformed metadata, search retention, and the getAlbum resource-decoding path.
  • Add an opt-in live regression targeting the exact public Aba Khan album from [Bug]: get_album fails to decode object-shaped preReleaseEndDateTime #105; it runs in the scheduled public-contract workflow, not ordinary PR CI.
  • Document the compatibility fix in the pending 2.1.3 changelog.

Verification

No authenticated/live Spotify GraphQL response was fetched in this environment; the reporter's reproduction and the cited published payload are independent evidence of the wire shape. The CI suite should validate the local code change; the exact reporter album should also be checked in live verification before closing the issue.

@Balake

Balake commented Nov 22, 2026

Copy link
Copy Markdown

Oh whoops, didn't see this before opening #107. I'll close mine

@Aran404
Aran404 merged commit c01b58b into main Nov 22, 2026
13 checks passed
@Aran404
Aran404 deleted the fix/105-album-pre-release-timestamps branch November 22, 2026 03:03
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.

2 participants