Claudio Ortolina
889ba61e4c
Extract LastFm module
2025-02-21 16:02:18 +00:00
Claudio Ortolina
7df136c890
Sort aliases
2025-02-20 15:27:01 +00:00
Claudio Ortolina
b2daa561d7
Use aliases
2025-02-20 15:27:01 +00:00
Claudio Ortolina
94a2784020
Move function in MusicBrainz main module
2025-02-17 22:07:49 +00:00
Claudio Ortolina
e218b06350
Rename APIBehaviourMock -> APIMock
2025-02-17 21:41:50 +00:00
Claudio Ortolina
37f72261c3
Extract MusicBrainz main module
2025-02-17 17:30:13 +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
224bcdba38
Extract MusicbrainzData module
2025-02-10 09:49:34 +00:00
Claudio Ortolina
791807c137
Fix issue with formatting of "" release dates
2025-02-10 09:33:26 +00:00
Claudio Ortolina
b42a774936
Remove unused functionality and make functions private
2025-02-09 17:01:00 +00:00
Claudio Ortolina
015863d25e
Add missing test for Record.add_musicbrainz_data/2
2025-02-07 20:17:21 +00:00
Claudio Ortolina
9b25556245
Refactor Record.child_release_groups/1 to use stored ids
2025-02-06 21:03:38 +00:00
Claudio Ortolina
6ad28f1271
When importing a record, stream all its releases
2025-02-05 15:31:08 +00:00
Claudio Ortolina
f29dd1f0ab
Fetch 100 releases when importing a record
...
The release group contains only 25 releases, which breaks tracking
scrobble status. Albums like "Toto IV" or "Hounds of Love" end up
looking like they're not part of the collections because the individual
releases are not stored.
Still error prone, because this change doesn't paginate to more than 100
records, but that will be addressed in a future commit.
2025-02-05 10:12:27 +00:00
Claudio Ortolina
96bd453900
When not possible to determine otherwise, assums a record has been released
2025-01-29 10:21:41 +00:00
Claudio Ortolina
06f1997d59
Show if a wishlisted album is unreleased
2025-01-29 10:13:39 +00:00
Claudio Ortolina
3c8b39237c
Fix return type of artist_get_info fixture
2025-01-24 10:35:39 +00:00
Claudio Ortolina
96349b918d
Add missing Artists.get_artist_info/1 test
2025-01-23 15:27:55 +00:00
Claudio Ortolina
e4be44f6bb
Add missing Artists.get_all_artist_ids/0 test
2025-01-23 15:24:03 +00:00
Claudio Ortolina
ed6ef2c7ef
Rename record_fixture* to record*
2025-01-06 14:20:36 +00:00
Claudio Ortolina
cf377f6a0c
Remove unnecessary alias
2025-01-06 14:13:45 +00:00
Claudio Ortolina
5d40080741
Add note about SQLite RANDOM function
2025-01-02 09:38:50 +00:00
Claudio Ortolina
65899b8077
Add tests for /api/collection/random endpoint
2025-01-01 20:57:01 +00:00
Claudio Ortolina
6cf7e2c9de
Add ordering tests to Collection context
2024-12-30 17:16:14 +00:00
Claudio Ortolina
6427710029
Enable sorting options in collection view
2024-12-29 15:47:37 +00:00
Claudio Ortolina
53b89dc329
Extract Artists context
2024-12-18 11:12:06 +00:00
Claudio Ortolina
3fbd6ba1bf
Use release and release group fixtures with names everywhere
2024-12-14 23:52:09 +03:00
Claudio Ortolina
1c47473c11
Move SQLite extension loading to config/runtime.exs
...
Addresses deprecation mentioned at https://hexdocs.pm/ecto/Ecto.Repo.html#c:init/2
2024-12-07 20:29:33 +01:00
Claudio Ortolina
11ebd0b6de
Add test to verify correct loading of SQLite extension
2024-12-07 19:45:06 +01:00
Claudio Ortolina
e1dc2bfc7f
Make MusicBrainz user agent configurable
2024-12-04 10:44:31 +00:00
Claudio Ortolina
18df3683fc
Render a minimal artist page
2024-12-02 17:35:47 +00:00
Claudio Ortolina
b63b3a633a
Can fetch records by a specific artist
2024-12-02 10:55:12 +00:00
Claudio Ortolina
cf51cab7ce
Add basic test for Records.Cover module
2024-11-29 22:08:40 +00:00
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