Claudio Ortolina
ad6e8503ed
Add tests around data consistency bg jobs for artist info
2025-04-29 21:05:02 +01:00
Claudio Ortolina
fa49e73385
When creating a record, queue a job to fetch artist info
2025-04-29 16:56:22 +01:00
Claudio Ortolina
f1dd45e438
Show country flag for artist
2025-04-29 09:58:06 +01:00
Claudio Ortolina
34069636a0
Add tests for Artists.fetch_artist_info/1
2025-04-28 11:04:45 +01:00
Claudio Ortolina
1f43e1d993
Use JSON instead of Jason where possible
...
In some places, we need pretty printing so it's not possible to remove
the dependency.
2025-03-23 08:34:25 +00:00
Claudio Ortolina
93f6b260b2
Extract test fixture for release_group_releases
2025-03-01 07:40:00 +00:00
Claudio Ortolina
a218942110
Remove mox in favour of built-in Req stubs
2025-02-28 16:41:16 +00:00
Claudio Ortolina
3d11cd585d
Use built-in Req stub for LastFm tests
2025-02-27 13:43:49 +00:00
Claudio Ortolina
25567eeb26
Extract trigger_hook/3-4 test helper
2025-02-25 14:03:08 +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
163bbe8902
Add test for importing a record via barcode scan
2025-02-18 20:40:04 +00:00
Claudio Ortolina
324732b5ee
Use different fixture for marbles individual release
2025-02-18 20:38:46 +00:00
Claudio Ortolina
94a2784020
Move function in MusicBrainz main module
2025-02-17 22:07:49 +00:00
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
53d82e661a
Extract LiveTestHelpers.escape/1
2025-01-19 16:14:59 +00:00
Claudio Ortolina
ed6ef2c7ef
Rename record_fixture* to record*
2025-01-06 14:20:36 +00:00
Claudio Ortolina
75154df3cf
Import only necessary functions from LiveViewTest
...
So that we don't clash with the imports of PhoenixTest
2025-01-05 15:40:21 +00:00
Claudio Ortolina
04f5c6e5a1
Rewrite LV tests using PhoenixTest
2025-01-05 11:29:33 +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
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