35 Commits

Author SHA1 Message Date
Irevoire
3e45fdf7c5
rename the dumpExport to dumpCreation 2022-10-24 19:08:15 +02:00
Irevoire
3283bb0454
fix clippy 2022-10-22 17:04:47 +02:00
Irevoire
d065a3e4f0 fix the import of the dumpv4&v5 when there is no instance-uid + rename the Kind+KindWithContent+Details variant for the DocumentImport and the Setting 2022-10-22 16:07:55 +02:00
Clément Renault
3f6bd7fb11
Introduce a rustfmt file 2022-10-20 18:00:07 +02:00
Irevoire
f816dc5221
fix the last rule about merging the allow_index_creation 2022-10-20 16:39:24 +02:00
Irevoire
6966256a3b
simplify the code A LOT and create less false positive 2022-10-20 16:39:24 +02:00
Irevoire
1fa6193f48
add a whole new batch of tests around the index already exists / allow_index_creation 2022-10-20 16:39:24 +02:00
Irevoire
a65317982f
fix all the snapshot tests 2022-10-20 16:39:24 +02:00
Irevoire
3357c439e3
it probably works but it's also horrendous 2022-10-20 16:39:23 +02:00
Loïc Lecrenier
14a44776f6
Implement POST /indexes-swap 2022-10-20 16:39:23 +02:00
Loïc Lecrenier
835745ac22
Add some documentation to the index scheduler 2022-10-20 16:39:22 +02:00
Tamo
aa13fc448d
remove the unused variants from the autobatcher 2022-10-20 16:37:29 +02:00
Kerollmops
74657bba2c
Introduce the core algorithm of task cancelation 2022-10-20 16:37:26 +02:00
Kerollmops
bcb7d1744a
Introduce the task cancelation task type 2022-10-20 16:35:06 +02:00
Loïc Lecrenier
ef3e9e87f5
Continue implementation of task deletion
1. Matched tasks are a roaring bitmap
2. Start implementation in meilisearch-http
3. Snapshots use meili-snap
4. Rename to TaskDeletion
2022-10-20 16:08:16 +02:00
Kerollmops
8433a432b1
Extract index creation rights and simplify the autobatcher rules 2022-10-20 16:00:58 +02:00
Tamo
dc1d739785
move the API key in meilisearch_types 2022-10-20 16:00:58 +02:00
Tamo
e533e740d4
refactor the Task a little bit 2022-10-20 15:59:52 +02:00
Tamo
e6c033bd6b
start moving a lot of task types to meilisearch_types 2022-10-20 15:59:52 +02:00
Tamo
f456fb5e0b
get rids of the index crate + the document_types crate 2022-10-20 15:57:52 +02:00
Loïc Lecrenier
ccfe1babdc
Add more task deletion tests 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
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
8bffe41886
Remove the IndexRename operation 2022-10-20 15:43:02 +02:00
Kerollmops
373995dca9
Make clippy happy 2022-10-20 15:43:02 +02:00
Kerollmops
e24715abe5
Merge both DocumentAddition/Update into one DocumentImport variant 2022-10-20 15:43:01 +02:00
Tamo
f58d969899
slightly refactor the autobatching tests 2022-10-20 15:34:55 +02:00
Tamo
e7c552a0d0
reduce the size of the snapshots 2022-10-20 15:28:50 +02:00
Tamo
9882b7fa57
greatly reduce the number of warnings 2022-10-20 15:26:57 +02:00
Tamo
5b485e309c
add a bunch of tests 2022-10-20 15:26:45 +02:00
Tamo
3120057039
split the DocumentAdditionOrUpdate in two tasks; DocumentAddition and DocumentUpdate 2022-10-20 15:26:33 +02:00
Tamo
00f13f45b6
starts importing the real tasks 2022-10-20 15:26:32 +02:00
Tamo
98bb742d77
finishes the global skelton of the auto-batcher 2022-10-20 15:26:06 +02:00
Irevoire
78ca4bf608
move the autobatcher logic to another file 2022-10-20 15:26:06 +02:00