Commit Graph

154 Commits

Author SHA1 Message Date
Claudio Ortolina 9428828064 Consolidate datetime as date formatting 2025-01-05 15:48:56 +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 229445ffc9 Add missing logged_out tag 2025-01-05 11:28: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 1208d35174 Add prod tests for dev routes 2025-01-01 17:20:32 +00:00
Claudio Ortolina 8bd7197d18 Show purchase date in collection view 2025-01-01 16:45:43 +00:00
Claudio Ortolina 97533416f7 Support arbitrary resizing in cover controller 2024-12-31 11:58:30 +00:00
Claudio Ortolina 68b2d48228 Return thumb_url in latest record response 2024-12-31 11:39:36 +00:00
Claudio Ortolina 6cf7e2c9de Add ordering tests to Collection context 2024-12-30 17:16:14 +00:00
Claudio Ortolina 05f4d6039b Mock artist info fetch to avoid test flakyness 2024-12-29 21:23:04 +00:00
Claudio Ortolina 6427710029 Enable sorting options in collection view 2024-12-29 15:47:37 +00:00
Claudio Ortolina 1a0e505e51 Rework error messages for failed playcount/bio fetch 2024-12-27 17:57:36 +00:00
Claudio Ortolina 33a3ed548d Add test for https enforcement 2024-12-26 14:24:47 +00:00
Claudio Ortolina fc0120e5fc Revert "Template host in verification tests"
This reverts commit d65a2223db.
2024-12-25 19:57:27 +00:00
Claudio Ortolina d65a2223db Template host in verification tests 2024-12-25 19:54:23 +00:00
Claudio Ortolina 084ec04079 Add prod tests for cover URLs 2024-12-22 22:20:29 +00:00
Claudio Ortolina 97f26e0cd2 Serve covers under API namespace as well 2024-12-22 22:15:24 +00:00
Claudio Ortolina c92e7cc76a Add HURL production test suite 2024-12-22 18:50:30 +00:00
Claudio Ortolina f1af38606a Protect API behind a bearer token 2024-12-22 18:32:04 +00:00
Claudio Ortolina cf3761ca79 Fold RequireLogin plug into Auth module 2024-12-22 16:12:31 +00:00
Claudio Ortolina 341d276db5 Include artists and cover in latest record JSON 2024-12-22 15:55:41 +00:00
Claudio Ortolina 53e8d88b6a Rename auth_password -> login_password 2024-12-21 14:57:44 +00:00
Claudio Ortolina 4f456322fc Bootstrap the /api namespace 2024-12-21 14:38:39 +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 53b89dc329 Extract Artists context 2024-12-18 11:12:06 +00:00
Claudio Ortolina 019d2fb7f2 Reduce size of test data in stats test
Test is equally effective and a few times faster.
2024-12-15 18:57:48 +03:00
Claudio Ortolina e4fe4e7f4b Cache images for 24 hours 2024-12-15 12:09:29 +03:00
Claudio Ortolina 6660d195e4 Decrease visible records per page
After months of usage, I rarely paginate the list, so it's not necessary
to load 100 at a time. 20 is enough.

By matching 20 records with a 20 pool size, we should keep the repo
queue time to a minimum.
2024-12-15 11:15:46 +03: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 2fbe9db016 Refactor test to extract data dependencies 2024-12-14 17:16:55 +03:00
Claudio Ortolina f7045a9f14 Extend testing of artist page 2024-12-13 22:25:06 +03:00
Claudio Ortolina c2ccb7dde2 Add LastFm.Feed.all_artists/0 and LastFm.Feed.all_albums/0 2024-12-10 14:57:28 +03:00
Claudio Ortolina a6e1e4e34a Renamte LastFm.Feed.all/0 to LastFm.Feed.all_tracks/0 2024-12-10 14:57:06 +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 8350ffd3a4 To get artist info, try mbid and then artist name 2024-12-04 21:07:56 +00:00
Claudio Ortolina e1dc2bfc7f Make MusicBrainz user agent configurable 2024-12-04 10:44:31 +00:00
Claudio Ortolina 7575e5978a Extract config for MusicBrainz 2024-12-04 10:33:41 +00:00
Claudio Ortolina 14518870a0 Make LastFm user agent configurable 2024-12-04 10:07:25 +00:00
Claudio Ortolina 0cae20a390 Add LastFm.Config test
It might seem redundant, but helps with refactoring down the line.
2024-12-04 09:58:42 +00:00
Claudio Ortolina bef38967a1 Stub artist show test 2024-12-03 20:16:35 +00:00
Claudio Ortolina 26e96994a4 Use full content for bio 2024-12-03 09:58:24 +00:00
Claudio Ortolina ab7a8eeb5a Add play count to LastFm.Artist 2024-12-03 09:40:17 +00:00
Claudio Ortolina ccefc6e697 Update to new interpolation syntax
Includes a fix to a brittle test that failed due to changes in the
number of linebreaks.
2024-12-03 00:08:32 +00:00
Claudio Ortolina 18df3683fc Render a minimal artist page 2024-12-02 17:35:47 +00:00