Commit Graph

132 Commits

Author SHA1 Message Date
Zoe Roux 87314a0e96 Use bun build in the dockerfile 2025-01-18 16:39:40 +01:00
Zoe Roux ce242bf1b4 Add dockerfile 2025-01-18 16:39:40 +01:00
Zoe Roux a8fb84daf0 Format code 2025-01-18 16:39:40 +01:00
Zoe Roux 956ab51e1b Add a flag to retrieve all translations 2025-01-17 23:16:31 +01:00
Zoe Roux 02ddd1401b Add isAvailable 2025-01-17 23:16:31 +01:00
Zoe Roux a734a40668 Add tests for preferOriginal in /movies 2025-01-17 18:49:24 +01:00
Zoe Roux a558f47558 Test & Fix prefer original for /movies/{id} 2025-01-17 18:49:24 +01:00
Zoe Roux 7047304ae5 Handle 404 error better 2025-01-17 18:49:24 +01:00
Zoe Roux 9fc5f8a706 Fix /movies select distinct 2025-01-17 18:49:24 +01:00
Zoe Roux 7fcaf6490d Add original translation support on the /movies/{id} route 2025-01-17 18:49:24 +01:00
Zoe Roux f3f69a0def Rewrite /movies/{id} to use the relational api 2025-01-17 18:49:24 +01:00
Zoe Roux 5ca1b19148 Add preferOriginal query param for /movies 2025-01-17 18:49:24 +01:00
Zoe Roux 7cc6e7e2d4 Handle fallback when creating new translations 2025-01-17 18:49:24 +01:00
Zoe Roux d1609ddfbf Fix & test random slug reservation 2025-01-13 14:16:43 +01:00
Zoe Roux 1cdb372079 Fix & test /movies/random 2025-01-13 14:16:43 +01:00
Zoe Roux b6f996139f Reserve the random slug 2025-01-13 14:16:43 +01:00
Zoe Roux 46570410ea Add seed in response if it was not specified 2025-01-13 14:16:43 +01:00
Zoe Roux b9da57fd88 Cleanups 2025-01-13 14:16:43 +01:00
Zoe Roux 9a54266967 Add /movies/random route 2025-01-13 14:16:43 +01:00
Zoe Roux 8b7e109be3 Cleanup sort parsing 2025-01-13 14:16:43 +01:00
Zoe Roux 86d37514dc Fix after handling 2025-01-13 14:16:43 +01:00
Arthur Jamet f490faa796 v5 api: Handle random in keyset paginate 2025-01-13 14:16:43 +01:00
Arthur Jamet 67ea86a955 v5 api: Random sort query parameter cannot be reversed 2025-01-13 14:16:43 +01:00
Arthur Jamet 2afccaa813 v5 api: Random query parameter becomes sort value 2025-01-13 14:16:43 +01:00
Arthur Jamet 0e230114a7 v5 api: Sort Movies Randomly, passing seed as query parameter 2025-01-13 14:16:42 +01:00
Zoe Roux fe6f4fd43b Fix null sorting 2025-01-10 12:16:33 +01:00
Zoe Roux 3547799079 Sort nulls at the end even in desc order 2025-01-10 12:16:33 +01:00
Zoe Roux c71650d386 Test sort order with null values 2025-01-10 12:16:33 +01:00
Zoe Roux e78f28ea71 Add test helpers 2025-01-10 12:16:32 +01:00
Zoe Roux 0555fcb9a5 Handle forced fallback on /movies 2025-01-10 12:16:32 +01:00
Zoe Roux 81958f6c3b Fix after when sorting with remmapped keys 2025-01-10 12:16:32 +01:00
Zoe Roux 6e293efc2b Remove page's prev & weird reverse handling 2025-01-10 12:16:32 +01:00
Zoe Roux 371d9148f4 wip 2025-01-10 12:16:32 +01:00
Zoe Roux 1389abb946 Fix prev/next generation 2025-01-10 12:16:32 +01:00
Zoe Roux 641ce4237e Use an array as a backing store for after 2025-01-10 12:16:32 +01:00
Zoe Roux 879d2959d5 Create page with next/prev url 2025-01-10 12:16:32 +01:00
Zoe Roux 50002907e3 Create keyset pagination function 2025-01-10 12:16:32 +01:00
Zoe Roux 482ad0dda2 Move sort parsing to typebox 2025-01-10 12:16:32 +01:00
Zoe Roux 0499be4194 Fix comment newline handling 2025-01-10 12:16:32 +01:00
Zoe Roux 3d6912b60d Handle filter parsing with typebox 2025-01-10 12:16:32 +01:00
Zoe Roux efbec85b67 Update dependencies & switch to text lockfile 2025-01-10 12:16:32 +01:00
Zoe Roux c14d4e0911 Add filter to drizzle converter 2025-01-10 12:16:32 +01:00
Zoe Roux c71da66bb6 Add more complex tests 2025-01-10 12:16:32 +01:00
Zoe Roux 8531049716 Add tests for the filter parser 2025-01-10 12:16:32 +01:00
Zoe Roux e960307172 Write filter grammar & fix priorities 2025-01-10 12:16:32 +01:00
Zoe Roux e20e327286 Filter fixes 2025-01-10 12:16:32 +01:00
Zoe Roux 81b7d5558e Finish filter parser 2025-01-10 12:16:32 +01:00
Zoe Roux df41694811 Start a filter parser 2025-01-10 12:16:32 +01:00
Zoe Roux 05d5ac5a75 Allow \n in doc comments 2025-01-10 12:16:32 +01:00
Zoe Roux 2fd6b85d7e Fix validation errors 2025-01-10 12:16:32 +01:00