Skip to content

Conversation

robertky
Copy link
Member

@robertky robertky commented Nov 10, 2026 •

Summary

  • Add artist country metadata to the MusicBrainz import and expose country facets and filtering in the catalog.
  • Keep selected countries in URL-backed search state and support the redesigned filter panel.
  • Correct Atila de La Pampa's country to Argentina and add a regression test for updating stale country data on reimport.

Closes #25

Verification

  • pnpm format:check
  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build

The local test run skipped PostgreSQL integration tests because TEST_DATABASE_URL was not configured; CI should run those against its PostgreSQL service.

Merge order

PR #80 also changes the MusicBrainz importer and adds migration 0004. Merge #80 first, then update this branch from the new main so the country migration follows it and both importer changes are included. This PR should be merged after that update.

@robertky robertky requested a review from a team as a code owner November 10, 2026 11:41
Copy link
Member

@rachelks rachelks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the country filter locally, including URL persistence, refreshing, removing filters, and browser navigation. These all worked as expected.

I left one comment about the missing country metadata in the committed dataset. I also noticed that this PR overlaps with #80 in the importer and database migrations, so we'll need to coordinate those changes before merging.

@rachelks
Copy link
Member

The country metadata coverage looks much better now!

I noticed that regenerating the dataset also replaced 70 of the original 500 release groups with new ones. Since deployment imports into the existing database without removing old albums, this could leave existing installations with 570 MusicBrainz albums, while a fresh installation would have 500. The omitted albums would also miss the country metadata update.

A possible solution would be to preserve the original 500 release groups and enrich their artist metadata, or update the dataset to include all 570 albums with country metadata so that fresh and existing installations remain consistent.

@robertky robertky force-pushed the feat/25-country-facet-filter branch 2 times, most recently from e6dd237 to 378df3c Compare November 12, 2026 18:13
@robertky robertky force-pushed the feat/25-country-facet-filter branch from 378df3c to dd071f2 Compare November 12, 2026 19:23
Copy link
Member

@rachelks rachelks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed the latest changes. The original 500 albums are now preserved, the country metadata coverage looks good, and the migration conflicts with #80 have been resolved. I also found no issues with the integration of the latest changes from main. Looks good to me!

@rachelks rachelks merged commit ab8ba06 into main Nov 12, 2026
3 checks passed
@rachelks rachelks deleted the feat/25-country-facet-filter branch November 12, 2026 20:48
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Country facet and country filter
2 participants