Commit Graph

359 Commits

Author SHA1 Message Date
Claudio Ortolina bef38967a1 Stub artist show test 2024-12-03 20:16:35 +00:00
Claudio Ortolina 26e96994a4 Use full content for bio 2024-12-03 09:58:24 +00:00
Claudio Ortolina ab7a8eeb5a Add play count to LastFm.Artist 2024-12-03 09:40:17 +00:00
Claudio Ortolina ccefc6e697 Update to new interpolation syntax
Includes a fix to a brittle test that failed due to changes in the
number of linebreaks.
2024-12-03 00:08:32 +00:00
Claudio Ortolina 18df3683fc Render a minimal artist page 2024-12-02 17:35:47 +00:00
Claudio Ortolina 2d721774d6 Can fetch an artist info from Last.fm 2024-12-02 12:40:07 +00:00
Claudio Ortolina b63b3a633a Can fetch records by a specific artist 2024-12-02 10:55:12 +00:00
Claudio Ortolina 963b3c826f Extract Records.Artist 2024-12-02 10:55:12 +00:00
Claudio Ortolina 228b4bc440 Use musicbrainz_id as a key for embedded artists 2024-12-02 09:23:13 +00:00
Claudio Ortolina c71f740eec Update and format JSON fixture files 2024-12-01 12:17:49 +00:00
Claudio Ortolina cf51cab7ce Add basic test for Records.Cover module 2024-11-29 22:08:40 +00:00
Claudio Ortolina d9773bf45d Improve test description 2024-11-29 17:21:42 +00:00
Claudio Ortolina f0212eeb6f Consolidate cover resize logic
Moves resizing out of the MusicBrainz namespace to Records - which
improves division of responsibilities, and removes double resizing
during import.
2024-11-26 08:35:16 +00:00
Claudio Ortolina eef60a66a8 Shorten "No MusicBrainz ID" -> "No MB ID"
So that it's inline with other UI elements, and fits nicely in mobile UI
2024-11-26 08:03:34 +00:00
Claudio Ortolina 7258519cf2 Remove ' as it breaks a full text query
Query:  SELECT count(*) FROM "records_search_index" AS r0
WHERE (NOT (r0."purchased_at" IS NULL))
AND (records_search_index = '"Larks' Tongues in Aspic"*')

Needs escaping.
2024-11-23 23:19:08 +00:00
Claudio Ortolina b2e1f1f8d1 Index records by type to improve query perf 2024-11-23 23:16:24 +00:00
Claudio Ortolina 93b347ad8d Add badge for tracks whose albums cannot be imported
Includes a small optimization that removes "" release IDs from the list
of IDs checked against releases in the database.
2024-11-23 22:57:25 +00:00
Claudio Ortolina 2e2000fe01 Introduce separate search index
Uses a fts5 virtual table, kept up to date via triggers on the records
table.
2024-11-22 19:37:13 +00:00
Claudio Ortolina 0073b15125 Fix unused variable warnings 2024-11-21 09:38:42 +00:00
Claudio Ortolina 81e332d00d Fix sr text for wishlisting from scrobble activity
Includes an integration test for the scrobble activity feed.
2024-11-21 09:20:36 +00:00
Claudio Ortolina 5ec3b67c08 Add wishlist purchasing test 2024-11-20 18:37:16 +00:00
Claudio Ortolina 5b3aab51ed Change routes from "/records/*" to "/collection/*" 2024-11-20 15:43:25 +00:00
Claudio Ortolina b8f3bb9b2c Promote Collection to proper namespace 2024-11-20 15:37:04 +00:00
Claudio Ortolina 09f3563134 Can refresh cover for a record in the collection 2024-11-19 11:28:50 +00:00
Claudio Ortolina cc1d2e3b0f Increase stored cover size to 600px
Doesn't affect existing covers
2024-11-19 11:28:50 +00:00
Claudio Ortolina 0f97341d5f Add test for refreshing musicbrainz_data 2024-11-19 10:54:17 +00:00
Claudio Ortolina 87cd668a33 Populate release_ids and included_release_groups when record is created 2024-11-18 15:34:16 +00:00
Claudio Ortolina 2c33b2ca0b Can refresh release music_brainz fixtures 2024-11-18 15:27:36 +00:00
Claudio Ortolina 97c7be7b0c Store release ids when importing a record 2024-11-12 15:01:17 +00:00
Claudio Ortolina 95ce71d9c5 Add test for refreshing a record cover 2024-11-12 10:04:18 +00:00
Claudio Ortolina ae3c754570 Add test for importing a record from a release 2024-11-12 09:54:47 +00:00
Claudio Ortolina c8df700939 Add tests for search and import release groups 2024-11-12 09:48:19 +00:00
Claudio Ortolina 2ab978d5f4 Extract release_groups_fixtures 2024-11-12 09:48:03 +00:00
Claudio Ortolina 8e1916c22a Add test for LastFm.Feed 2024-11-11 19:14:44 +00:00
Claudio Ortolina 0e0e7e09be Add tests for get_record!/1 and get_cover/1 2024-11-11 19:02:10 +00:00
Claudio Ortolina f4ae1f0fc9 Add tests for Records.search_records_count/2 2024-11-11 14:19:57 +00:00
Claudio Ortolina bcf555ea4c Remove duplication in artists attributes fixture generation 2024-11-11 12:41:56 +00:00
Claudio Ortolina 066fb30b21 Explain artist_uuid test implementation 2024-11-11 12:39:28 +00:00
Claudio Ortolina aba8e6e490 Fix unused variable warning 2024-11-11 12:35:32 +00:00
Claudio Ortolina 0cbece6ed4 Add Records search tests
Important note: to help, we use a deterministic implementation of artist
UUID generation based on the artist name.
2024-11-11 10:28:17 +00:00
Claudio Ortolina f704d3834b Add collection context tests 2024-11-10 21:12:09 +00:00
Claudio Ortolina 62b4578a44 Add wishlist context tests 2024-11-10 19:11:57 +00:00
Claudio Ortolina 05d1d648b1 Streamline batch module, removing obsolete functions 2024-11-10 14:27:25 +00:00
Claudio Ortolina 18ae8b7866 Refactor last_fm configuration
Move all configuration outside of the LastFm module, so that it's not
polluted with references to the parent music_library application.
2024-11-06 12:09:38 +00:00
Claudio Ortolina 5674937ab0 Use larger artwork for scrobble activity 2024-11-05 09:32:08 +00:00
Claudio Ortolina d818cdbae5 Don't run LastFm.Feed in tests 2024-11-04 09:45:05 +00:00
Claudio Ortolina a0543de1f2 Namespace MusicBrainz.APIBehaviourMock 2024-11-04 09:32:25 +00:00
Claudio Ortolina 43b4ee1ba3 Fix unused variable warning 2024-11-04 09:29:45 +00:00
Claudio Ortolina 7e4e57f6ac Extract LastFm.Track and related structs 2024-11-04 09:25:43 +00:00
Claudio Ortolina c9beef6bdd Add test to make sure wishlist records don't appear in collection 2024-11-03 16:46:23 +00:00