Commit Graph

26 Commits

Author SHA1 Message Date
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 be314e3916 Reset session when hitting /login 2024-10-21 09:59:29 +01:00
Claudio Ortolina 4fcfc6c921 Complete authentication flow with dummy password 2024-10-20 19:25:31 +01: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
Claudio Ortolina d547ee6f8d Generate project
Using `mix phx.new music_library --database sqlite3 --binary-id --no-mailer`
2024-09-12 14:05:08 +01:00