Commit Graph

476 Commits

Author SHA1 Message Date
Claudio Ortolina bdfae15f35 When refreshing fixtures, store them pretty-printed 2024-12-01 12:18:37 +00:00
Claudio Ortolina c71f740eec Update and format JSON fixture files 2024-12-01 12:17:49 +00:00
Claudio Ortolina 7a26b6bda6 Reduce pool size in test
Due to SQLite having one single write transaction, database tests cannot
be executed async, making a large pool ineffective at best. A setting of
10 is enough for those tests where we perform multiple read operations
(which tend to be sequential anyway).

Test execution time before and after this change remains effectively the
same.
2024-11-30 22:41:56 +00:00
Claudio Ortolina c65a29c252 Use more restrictive LastFm request timeouts
Experimental: metrics show some long running requests
that end up hitting timeouts (at default values),
so we make them shorter to leverage retries
2024-11-30 20:21:51 +00:00
Claudio Ortolina cf51cab7ce Add basic test for Records.Cover module 2024-11-29 22:08:40 +00:00
Claudio Ortolina d9773bf45d Improve test description 2024-11-29 17:21:42 +00:00
Claudio Ortolina 84b5c4ba85 Update dependencies
thousand_island 1.3.6 => 1.3.7
2024-11-29 17:10:19 +00:00
Claudio Ortolina 3facdcb5bd Compile dev routes in test
As the route is rendered in the stats page, it needs to be enabled in
all Mix environments in order to avoid compile time warnings.
2024-11-29 15:26:59 +00:00
Claudio Ortolina 010c769b55 Stream 50 rows at a time for batch operations 2024-11-29 10:00:18 +00:00
Claudio Ortolina df9d18a21f Add nav link to dev dashboard
Invisible on mobile portrait layout - visible if device is turned to
landscape. Reasoning is that the dev dashboard is pretty unusable in
portrait mode anyway.
2024-11-29 08:33:29 +00:00
Claudio Ortolina 95e11d45d5 Tighten navigation menu on mobile 2024-11-29 08:29:21 +00:00
Claudio Ortolina 2b20f1c588 Update dependencies
ecto 3.12.4 => 3.12.5
2024-11-29 08:20:15 +00:00
Claudio Ortolina acc052933a Try and use a 512MB machine 2024-11-28 17:26:38 +00:00
Claudio Ortolina ffcbeb49b4 Attempt at shrinking memory usage 2024-11-28 17:22:56 +00:00
Claudio Ortolina cb0e06d603 Add batch operation to resize covers with incorrect sizes 2024-11-28 17:15:12 +00:00
Claudio Ortolina 7ffd0c375b Update README
- Add intro
- Add setup instructions
- Remove obsolete dev notes
- Remove db queries (they're in the repo's livebook)
2024-11-28 14:49:26 +00:00
Claudio Ortolina 60fef06dc1 Uniform nav and footer dividers 2024-11-28 08:55:57 +00:00
Claudio Ortolina 3a813f9b4a Add personal website link in footer 2024-11-28 08:48:49 +00:00
Claudio Ortolina 7701ef9bc5 Add missing translation 2024-11-27 23:45:57 +00:00
Claudio Ortolina 452a6a3f5b Fix footer on mobile 2024-11-27 23:45:47 +00:00
Claudio Ortolina 9f6791909d Add a footer 2024-11-27 23:41:11 +00:00
Claudio Ortolina be2f866830 Remove wrong background color in pagination component 2024-11-27 22:42:51 +00:00
Claudio Ortolina 1cf681db05 Fix misalignment of buttons and inputs in search form 2024-11-27 22:41:13 +00:00
Claudio Ortolina 504596c42d Add chart for Count by Artist 2024-11-27 15:06:44 +00:00
Claudio Ortolina e893800d2c Add chart for count by artist 2024-11-27 14:59:35 +00:00
Claudio Ortolina dede5dc1df Format js files 2024-11-27 14:52:36 +00:00
Claudio Ortolina 135d1c2fbd Remove unused handle_event clause 2024-11-27 11:13:04 +00:00
Claudio Ortolina ccff972aa0 Surface duplicate importing error in collection 2024-11-27 11:11:36 +00:00
Claudio Ortolina c1e06d9e66 Add livebook for database queries 2024-11-27 11:07:18 +00:00
Claudio Ortolina 2e40cbd5da Improve page titles
- When showing a single record, use record details
- Split title into logical breadcrumbs
2024-11-26 21:00:53 +00:00
Claudio Ortolina b8a89a041d Fix spacing for MB id copy icon in wishlist details 2024-11-26 13:35:41 +00:00
Claudio Ortolina 6339196b17 Search by genre
Can also click on genres in detail views.
2024-11-26 13:35:15 +00:00
Claudio Ortolina f0212eeb6f Consolidate cover resize logic
Moves resizing out of the MusicBrainz namespace to Records - which
improves division of responsibilities, and removes double resizing
during import.
2024-11-26 08:35:16 +00:00
Claudio Ortolina 5cb2214922 Update dependencies
exqlite 0.27.0 => 0.27.1
2024-11-26 08:23:13 +00:00
Claudio Ortolina eef60a66a8 Shorten "No MusicBrainz ID" -> "No MB ID"
So that it's inline with other UI elements, and fits nicely in mobile UI
2024-11-26 08:03:34 +00:00
Claudio Ortolina 02d126ac90 Blur background when modal is open 2024-11-25 16:46:24 +00:00
Claudio Ortolina 148f68fbf3 Add function to resize cover data in place 2024-11-25 11:26:34 +00:00
Claudio Ortolina bdcc5633bf Resize uploaded cover 2024-11-25 11:22:55 +00:00
Claudio Ortolina 62b5e23fcd (EXP) Lower sqlite cache size in production 2024-11-25 10:54:39 +00:00
Claudio Ortolina c93cf6a406 Group HTTP Metrics
- Remove wrong Finch metric name
- Filter archive requests due to redirect hostnames (better to track it
as a single metrics)
- Don't apply competing filter functions - it seems to trip Telemetry
Metrics off, and skip the last defined summary
2024-11-25 10:23:31 +00:00
Claudio Ortolina 415312b98b Add iex warning! helper 2024-11-25 10:17:06 +00:00
Claudio Ortolina b5400b76fc Add HTTP Metrics for Last.Fm and MusicBrainz 2024-11-25 10:03:34 +00:00
Claudio Ortolina edb24dc932 Keep telemetry metrics history 2024-11-25 10:02:34 +00:00
Claudio Ortolina 5cee7db630 Add comment around hardcoded limits in release group rels fetch 2024-11-24 21:24:12 +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 b2e1f1f8d1 Index records by type to improve query perf 2024-11-23 23:16:24 +00:00
Claudio Ortolina 93b347ad8d Add badge for tracks whose albums cannot be imported
Includes a small optimization that removes "" release IDs from the list
of IDs checked against releases in the database.
2024-11-23 22:57:25 +00:00
Claudio Ortolina f157fbadee Enable live dashboard in production
Includes extras to monitor ecto repos.
2024-11-23 19:26:54 +00:00
Claudio Ortolina bbfafbe519 Document search index schema 2024-11-23 12:28:06 +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