393 Commits

Author SHA1 Message Date
Zoe Roux
1634624701 Fix search sort 2025-01-24 22:48:03 +01:00
Zoe Roux
1e2fd919ff Add index migration 2025-01-24 22:48:03 +01:00
Zoe Roux
ce81caaf14 Allow filter on tags 2025-01-24 22:48:03 +01:00
Zoe Roux
426665c9d9 Allow filter string to match without quotes 2025-01-24 22:48:03 +01:00
Zoe Roux
1c0fdf6f89 wip 2025-01-24 22:48:03 +01:00
Zoe Roux
eaec881594 wip: Replace tsvector with trigram search 2025-01-24 22:48:03 +01:00
Zoe Roux
59aca6d520 Generate search vectors 2025-01-24 22:48:03 +01:00
Zoe Roux
988b705a30 Fix schema utils to make drizzle-kit work 2025-01-24 22:48:03 +01:00
Zoe Roux
a51de86c95 Stupid implementation of search, lots to fix 2025-01-24 22:48:03 +01:00
Zoe Roux
23dc0a2f88 Add search vector & index 2025-01-24 22:48:03 +01:00
Zoe Roux
26470136af Add indexes on the movie type 2025-01-24 22:48:03 +01:00
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