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
Irevoire
5bb9023722
fix the error messages and the index stats
2022-10-22 16:07:55 +02:00
Clément Renault
85d567e878
Sort the TOML dependencies
2022-10-20 18:03:35 +02:00
Clément Renault
3f6bd7fb11
Introduce a rustfmt file
2022-10-20 18:00:07 +02:00
Clément Renault
dd57e051d7
Reapply #2890
2022-10-20 17:44:15 +02:00
Clément Renault
2d86304701
Reapply #2839
2022-10-20 17:38:57 +02:00
Clément Renault
e35bd263df
Fix final compilation
2022-10-20 17:08:52 +02:00
Clément Renault
cf58a76faf
Fix the new config file with the index scheduler
2022-10-20 16:49:19 +02:00
Loïc Lecrenier
22d514645e
Don't return an error when swapping 0 indexes
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
Loïc Lecrenier
5205c7dcc7
Fix date parsing for task queries
...
Use rfc3339 or YYYY-MM-DD.
Add a day to the parsed date when it is an excluded lower bound
and the YYYY-MM-DD was used.
Also the Query type does not need to be serialisable anymore
2022-10-20 16:39:22 +02:00
Loïc Lecrenier
af508b9a81
Apply suggestions from code review
...
Co-authored-by: Clément Renault <clement@meilisearch.com>
Apply suggestions from code review
Co-authored-by: Clément Renault <clement@meilisearch.com>
Co-authored-by: Tamo <tamo@meilisearch.com>
Apply suggestions from code review
Co-authored-by: Clément Renault <clement@meilisearch.com>
Co-authored-by: Tamo <tamo@meilisearch.com>
Apply code review suggestion
Co-authored-by: Clément Renault <clement@meilisearch.com>
2022-10-20 16:39:22 +02:00
Loïc Lecrenier
1eeef1c1c8
Implement task date filters
...
before/after enqueued/started/finished at
2022-10-20 16:39:21 +02:00
Kerollmops
07db4cfab0
Prefer using an u64 instead of a usize in some places
2022-10-20 16:37:27 +02:00
Kerollmops
4f1c0535b4
Use a tokio block_in_place method for potentially blocking tasks
2022-10-20 16:37:27 +02:00
Kerollmops
afafe8d207
Put the original URL query in the tasks details
2022-10-20 16:37:26 +02:00
Kerollmops
973e2f71eb
Add the tasks cancel route to cancel tasks
2022-10-20 16:37:26 +02:00
Kerollmops
01ed1fb128
Update the canceledBy and finishedAt fields
2022-10-20 16:37:26 +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
Tamo
7308ccd530
make the tests compile again
2022-10-20 16:34:32 +02:00
Tamo
656f809b1d
fix the analytics
2022-10-20 16:26:17 +02:00
Tamo
65e69c06bc
extract the create_app function for the tests
2022-10-20 16:26:17 +02:00
Tamo
4921e926e5
fix meilisearch-http
2022-10-20 16:14:37 +02:00
Tamo
dbcc3456c6
dump the content of the dump tasks instead of recreating at import time with wrong API keys
2022-10-20 16:14:36 +02:00
Tamo
860d343831
get rids of the useless Seek before creating a grenad reader
2022-10-20 16:14:36 +02:00
Tamo
b87b071718
apply most style comments of the review
2022-10-20 16:14:36 +02:00
Tamo
6987bc185e
fix a synchronization bug while importing tasks
2022-10-20 16:13:18 +02:00
Tamo
54d4d364c2
fix the deletion of the data.ms in case of errors
2022-10-20 16:13:17 +02:00
Tamo
cac924b663
first mostly working version
2022-10-20 16:13:16 +02:00
Tamo
9323f9f1c4
write the dump export
2022-10-20 16:12:25 +02:00
Loïc Lecrenier
dabc30d3d6
Return an error when calling DELETE /tasks with an empty query
2022-10-20 16:09:32 +02:00
Loïc Lecrenier
9067148270
Apply suggested changes from PR review
2022-10-20 16:09:32 +02:00
Loïc Lecrenier
012c3e986c
Finish first draft of the DELETE /tasks route
2022-10-20 16:09:32 +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
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
Loïc Lecrenier
d85451b8e5
Add meili-snap crate to make writing snapshot tests easier
2022-10-20 15:59:30 +02:00
Tamo
f456fb5e0b
get rids of the index crate + the document_types crate
2022-10-20 15:57:52 +02:00
Kerollmops
f3f6bbf624
Update the tasks statuses
2022-10-20 15:44:33 +02:00
Kerollmops
4871509507
Make sure that meilisearch-http works without index wrapper
2022-10-20 15:44:33 +02:00
Kerollmops
b7898cd4ab
Implement ErrorCode on the heed Error
2022-10-20 15:44:33 +02:00
Kerollmops
b83710ea98
Implement ErrorCode on the milli::Error type
2022-10-20 15:44:32 +02:00
Kerollmops
373995dca9
Make clippy happy
2022-10-20 15:43:02 +02:00
Kerollmops
248805d2df
Fix meilisearch-http to use the new DocumentImport batch operation
2022-10-20 15:43:02 +02:00
Tamo
0d0b2a9ac1
bring back the IndexMeta and IndexStats in meilisearch-http
2022-10-20 15:42:45 +02:00
Tamo
f4ecf75cda
fix import bug
2022-10-20 15:42:45 +02:00
Tamo
2064b65d5f
remove the create_app macro
2022-10-20 15:42:45 +02:00