Skip to content

fix: rename album_title query param to album_name to match API spec#234

Open
jakebromberg wants to merge 1 commit intomainfrom
worktree-fix/catalog-search-album-name
Open

fix: rename album_title query param to album_name to match API spec#234
jakebromberg wants to merge 1 commit intomainfrom
worktree-fix/catalog-search-album-name

Conversation

@jakebromberg
Copy link
Member

Summary

  • Rename album_title to album_name in AlbumQueryParams for GET /library to match CatalogSearchParams in api.yaml and the dj-site frontend
  • Update integration tests and test utility to use the corrected parameter name

The frontend sends album_name but the backend expected album_title, so album searches were silently ignored — only artist name matching worked.

Closes #233

Test plan

  • GET /library?album_name=Confield returns Autechre's "Confield"
  • GET /library?artist_name=Built+to+Spill&album_name=Keep+it returns matching results
  • GET /library with no params still returns 400
  • Integration tests pass (searches by album title, searches by both artist and album)

The GET /library endpoint accepted album_title as a query parameter, but
the OpenAPI spec (CatalogSearchParams) and the dj-site frontend both
send album_name. This caused album searches to be silently ignored.

Closes #233
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.

GET /library search ignores album_name query parameter

2 participants