Commit Graph

24 Commits

Author SHA1 Message Date
Claudio Ortolina b2e1f1f8d1 Index records by type to improve query perf 2024-11-23 23:16:24 +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 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 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 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 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 e30ba5ef3f Implement basic parser 2024-10-10 10:02:26 +01:00
Claudio Ortolina 97b04ba8a2 Remove scaffolded test
Doesn't provide any value - should be replaced with proper integration
tests.
2024-10-01 22:39:03 +01:00
Claudio Ortolina bcb70c9e1b Store artists when importing a record 2024-09-24 09:40:52 +01:00
Claudio Ortolina b6ae022a6a Move obsidian-related imports under Obsidian 2024-09-24 09:21:13 +01:00
Claudio Ortolina afc1802399 Serve local cover images 2024-09-16 09:50:07 +01:00
Claudio Ortolina 170f195aae Fix edge cases with parser
- Remove front_matter dependency, and use a hand-rolled simpler parser
  which is suitable for the data to parse (which is well-formed).
- Fix a couple of edge cases with years and titles with commas
2024-09-15 20:28:37 +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