Commit Graph

42 Commits

Author SHA1 Message Date
Claudio Ortolina 336551e9f8 Namespace Obsidian fixtures 2025-02-17 16:08:19 +00:00
Claudio Ortolina 513ce6363f Rename RecordsFixtures -> Fixtures.Records 2025-02-17 16:08:19 +00:00
Claudio Ortolina ea7b5b646a Namespace MusicBrainz fixtures 2025-02-17 16:03:23 +00:00
Claudio Ortolina d27f3ccf72 Namespace Last.Fm fixtures 2025-02-17 15:52:54 +00:00
Claudio Ortolina d077f08afa Start making it more robust
- Use structured data for search/render
- Start testing component
- Start testing domain logic
2025-02-15 18:08:30 +00:00
Claudio Ortolina c46227ecf7 Update MusicBrainz fixtures 2025-02-12 21:52:58 +00:00
Claudio Ortolina 027b3af547 Rename ReleaseGroup to ReleaseGroupSearchResult 2025-02-10 16:38:04 +00:00
Claudio Ortolina 3c8b39237c Fix return type of artist_get_info fixture 2025-01-24 10:35:39 +00:00
Claudio Ortolina b9005e52f9 Use streams with import component 2025-01-20 13:58:21 +00:00
Claudio Ortolina ed6ef2c7ef Rename record_fixture* to record* 2025-01-06 14:20:36 +00:00
Claudio Ortolina 97533416f7 Support arbitrary resizing in cover controller 2024-12-31 11:58:30 +00:00
Claudio Ortolina 9dce1cacb9 Where possible, use built-in JSON instead of Jason
Note that it's not possible to replace any call where we encode and
pretty print, as JSON doesn't have such functionality.
2024-12-19 20:18:09 +00:00
Claudio Ortolina 3fbd6ba1bf Use release and release group fixtures with names everywhere 2024-12-14 23:52:09 +03:00
Claudio Ortolina 4ede4e3736 Add test for importing a record from scrobble activity 2024-12-14 23:41:39 +03:00
Claudio Ortolina a19d42ae30 Add more fixtures for release groups and releases 2024-12-14 23:24:21 +03:00
Claudio Ortolina 632f5c4661 Include album names in mb fixtures 2024-12-14 23:19:14 +03:00
Claudio Ortolina bef38967a1 Stub artist show test 2024-12-03 20:16:35 +00:00
Claudio Ortolina ab7a8eeb5a Add play count to LastFm.Artist 2024-12-03 09:40:17 +00:00
Claudio Ortolina 2d721774d6 Can fetch an artist info from Last.fm 2024-12-02 12:40:07 +00:00
Claudio Ortolina c71f740eec Update and format JSON fixture files 2024-12-01 12:17:49 +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 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 ae3c754570 Add test for importing a record from a release 2024-11-12 09:54:47 +00:00
Claudio Ortolina 2ab978d5f4 Extract release_groups_fixtures 2024-11-12 09:48:03 +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 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 7e4e57f6ac Extract LastFm.Track and related structs 2024-11-04 09:25:43 +00:00
Claudio Ortolina 28609dcf87 Display latest purchase in stats page 2024-10-19 19:46:39 +01:00
Claudio Ortolina 1fdf36ea8a Include artists in record test fixture 2024-10-10 10:02:03 +01:00
Claudio Ortolina ec0a96087c Improve cover upload input
- Enable drag and drop (invisible)
- Show upload progress
- Add relevant tests
2024-10-04 12:07:00 +01:00
Claudio Ortolina 70ca206b5d Show artists for latest record 2024-10-03 23:10:55 +01:00
Claudio Ortolina 1e0d5486e0 Rename image* to cover* 2024-10-02 16:33:42 +01:00
Claudio Ortolina 024d95da7c Use release instead of year 2024-10-02 14:22:22 +01:00
Claudio Ortolina 82e5962c74 Add record format (defaulting to CD) 2024-09-28 19:16:15 +01:00
Claudio Ortolina b6ae022a6a Move obsidian-related imports under Obsidian 2024-09-24 09:21:13 +01:00
Claudio Ortolina 776dcef172 Use randomized data in test fixtures 2024-09-22 20:46:48 +01:00
Claudio Ortolina afc1802399 Serve local cover images 2024-09-16 09:50:07 +01:00
Claudio Ortolina 2c42f3ea32 Can parse an obsidian entry to retrieve correct metadata 2024-09-15 20:28:37 +01:00
Claudio Ortolina e08fbe3740 Generate schema and live_view scaffold for records
1. Records are not yet tied to artists
2. The generated edit route, along with related functionality, may be
   deleted as I don't think it's gonna be needed. Leaving it included in
   the commit for reference.
2024-09-12 14:51:58 +01:00