Commit Graph

4186 Commits

Author SHA1 Message Date
Loïc Lecrenier
ccfe1babdc
Add more task deletion tests 2022-10-20 15:45:57 +02:00
Loïc Lecrenier
570ae05833
Use more complete snapshot tests for the index scheduler 2022-10-20 15:45:57 +02:00
Loïc Lecrenier
fd73e65165
Add a DetailsView type and improve index scheduler snapshots
The DetailsView type is necessary because serde incorrectly
deserialises the `Details` type, so the database fails to correctly
decode Tasks
2022-10-20 15:45:57 +02:00
Loïc Lecrenier
05753c663f
Implement TaskDeletion in the index scheduler 2022-10-20 15:44:58 +02:00
Kerollmops
ee352b6c7c
Allow a user to disable the auto batching system 2022-10-20 15:44:58 +02:00
Kerollmops
21d6c03bb4
Add a test to check that it works without autobatching 2022-10-20 15:44:58 +02:00
Kerollmops
12c374e475
Remove the IndexScheduler::notify method 2022-10-20 15:44:58 +02:00
Kerollmops
fc148212aa
Make sure that the index-scheduler tick loop is rerun after processing 2022-10-20 15:44:58 +02:00
Kerollmops
67e8ee6ef7
Add a test that verifies that sending multiple tasks works 2022-10-20 15:44:57 +02:00
Tamo
4777449cc3
remove unused files 2022-10-20 15:44:57 +02:00
Tamo
baa67fade2
fix the tests 2022-10-20 15:44:57 +02:00
Tamo
997e7450d4
write a bunch of tests that goes through the whole compat layers 2022-10-20 15:44:57 +02:00
Tamo
bd509f3593
remove the warnings 2022-10-20 15:44:57 +02:00
Tamo
704b9566e4
rewrite the update file API 2022-10-20 15:44:56 +02:00
Tamo
d8ac2a0063
finish the dump reader API, the dump Writer API now needs to be updated 2022-10-20 15:44:56 +02:00
Tamo
2db486ad90
start dumping the update files to a known format 2022-10-20 15:44:56 +02:00
Tamo
170af0c9bd
fix the compat between v3 and v4 2022-10-20 15:44:56 +02:00
Tamo
392e2829f8
remove the ununsed snapshot files 2022-10-20 15:44:56 +02:00
Tamo
50dfe06efe
remove all warnings 2022-10-20 15:44:55 +02:00
Tamo
1a20ef2a79
write the compat layer from v2 to v3 2022-10-20 15:44:55 +02:00
Tamo
0c8e690675
remove old compat files 2022-10-20 15:44:55 +02:00
Tamo
70e3308e8c
write the dump v2 import 2022-10-20 15:44:55 +02:00
Tamo
2a7a6f9a30
make the open function public 2022-10-20 15:44:55 +02:00
Tamo
fe973b8a98
fix some warnings 2022-10-20 15:44:54 +02:00
Tamo
993011a5b6
rebase on main 2022-10-20 15:44:54 +02:00
Tamo
5b8041c4fe
write and test the compat layer from v3 to v4 2022-10-20 15:44:54 +02:00
Tamo
1d4f27d65f
write and test the dump v3 import 2022-10-20 15:44:54 +02:00
Tamo
826f7633de
fix the test once again 2022-10-20 15:44:54 +02:00
Tamo
34a3ba6aa2
finish the test for the compatibility between v4 and v5 2022-10-20 15:44:53 +02:00
Tamo
116c424fba
rewrite the compat API to something more generic 2022-10-20 15:44:53 +02:00
Tamo
2456a632e8
rename a few things for consistency 2022-10-20 15:44:53 +02:00
Tamo
39044558f0
implement the dump v4 import 2022-10-20 15:44:53 +02:00
Tamo
13e8247f77
add the compat layer between v5 and v6 2022-10-20 15:44:53 +02:00
Tamo
f633e109dc
get rids of the trait in most places 2022-10-20 15:44:52 +02:00
Tamo
4958bf3a55
start writting the compat layer between v5 and v6 2022-10-20 15:44:52 +02:00
Tamo
998b3533f5
test the dump v5 2022-10-20 15:44:52 +02:00
Tamo
9d6987a412
write the v5 dump import 2022-10-20 15:44:52 +02:00
Tamo
22b2fa0576
introduce the index metadata 2022-10-20 15:44:52 +02:00
Tamo
b5ebab5c66
fix the tests 2022-10-20 15:44:51 +02:00
Tamo
e3bc87bf22
implement the dump reader v6 2022-10-20 15:44:51 +02:00
Tamo
b89ac5d7ac
start implementing a skeleton of the v1 dump reader 2022-10-20 15:44:51 +02:00
Tamo
e486878463
move the DumpWriter and Error to their own module 2022-10-20 15:44:51 +02:00
Tamo
568b743ac8
fix the dump export 2022-10-20 15:44:51 +02:00
Tamo
d2485cfed4
write a dump exporter 2022-10-20 15:44:51 +02:00
Clément Renault
a358eaa816
Create the index only if the task has the rights to do so 2022-10-20 15:44:35 +02:00
Clément Renault
134634d99a
Correctly batch tasks with different index creation rights 2022-10-20 15:44:35 +02:00
Clément Renault
cea19f5af1
Use a ControlFlow in the autobatcher function 2022-10-20 15:44:34 +02:00
Kerollmops
2a45d24143
IndexDeletion operation have ClearAll details 2022-10-20 15:44:34 +02:00
Kerollmops
be192f281d
Only mark the first clear document with the amount of cleared documents 2022-10-20 15:44:34 +02:00
Kerollmops
99d1e9a870
Let the tick function set the Failed status itself 2022-10-20 15:44:34 +02:00