d20b5ddda0
Don't return an error when swapping 0 indexes
2022-10-27 11:34:16 +02:00
17cd2a4aa0
Implement POST /indexes-swap
2022-10-27 11:34:15 +02:00
169f386418
Add some documentation to the index scheduler
2022-10-27 11:34:15 +02:00
ec3391808d
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-27 11:34:14 +02:00
10a547df4f
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-27 11:34:14 +02:00
22cf0559fe
Implement task date filters
...
before/after enqueued/started/finished at
2022-10-27 11:34:14 +02:00
3cbfacb616
Prefer using an u64 instead of a usize in some places
2022-10-27 11:34:12 +02:00
f9c8fe5eaa
Use a tokio block_in_place method for potentially blocking tasks
2022-10-27 11:34:12 +02:00
c2ec4a089b
Put the original URL query in the tasks details
2022-10-27 11:34:12 +02:00
751e9bac3b
Add the tasks cancel route to cancel tasks
2022-10-27 11:34:11 +02:00
290945e258
Update the canceledBy and finishedAt fields
2022-10-27 11:34:11 +02:00
725158b454
Introduce the core algorithm of task cancelation
2022-10-27 11:34:11 +02:00
1ca9a67c49
Introduce the task cancelation task type
2022-10-27 11:34:11 +02:00
f7e546eea3
make the tests compile again
2022-10-27 11:34:10 +02:00
b45c430165
fix the analytics
2022-10-27 11:34:10 +02:00
634eb52926
extract the create_app function for the tests
2022-10-27 11:34:09 +02:00
bea81ae37b
fix meilisearch-http
2022-10-27 11:34:09 +02:00
6bd6321226
dump the content of the dump tasks instead of recreating at import time with wrong API keys
2022-10-27 11:34:08 +02:00
9fe24fbff2
get rids of the useless Seek before creating a grenad reader
2022-10-27 11:34:08 +02:00
78ce29f461
apply most style comments of the review
2022-10-27 11:34:08 +02:00
e0221fc0a3
fix a synchronization bug while importing tasks
2022-10-27 11:34:07 +02:00
554600dfd8
fix the deletion of the data.ms in case of errors
2022-10-27 11:34:07 +02:00
d976e680c5
first mostly working version
2022-10-27 11:34:06 +02:00
b7f9c94f4a
write the dump export
2022-10-27 11:34:05 +02:00
f32b973945
Return an error when calling DELETE /tasks with an empty query
2022-10-27 11:34:04 +02:00
fbd2be2ec8
Apply suggested changes from PR review
2022-10-27 11:34:04 +02:00
8bb0fcd144
Finish first draft of the DELETE /tasks route
2022-10-27 11:34:04 +02:00
9522b75454
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-27 11:34:03 +02:00
7034803712
move the API key in meilisearch_types
2022-10-27 11:34:02 +02:00
2f1eb78b1d
refactor the Task a little bit
2022-10-27 11:34:02 +02:00
510ce9fc51
start moving a lot of task types to meilisearch_types
2022-10-27 11:34:01 +02:00
3e4337c91f
Add meili-snap crate to make writing snapshot tests easier
2022-10-27 11:34:01 +02:00
667c282e19
get rids of the index crate + the document_types crate
2022-10-27 11:34:00 +02:00
36e5efde0d
Update the tasks statuses
2022-10-27 11:33:49 +02:00
cf6084151b
Make sure that meilisearch-http works without index wrapper
2022-10-27 11:33:48 +02:00
c70f375669
Implement ErrorCode on the heed Error
2022-10-27 11:33:48 +02:00
91e13c2824
Implement ErrorCode on the milli::Error type
2022-10-27 11:33:48 +02:00
5d21c790ef
Make clippy happy
2022-10-27 11:33:47 +02:00
3b343a930e
Fix meilisearch-http to use the new DocumentImport batch operation
2022-10-27 11:33:47 +02:00
c2899fe9b2
bring back the IndexMeta and IndexStats in meilisearch-http
2022-10-27 11:33:45 +02:00
c759fd6924
fix import bug
2022-10-27 11:33:45 +02:00
fba9aa214a
remove the create_app macro
2022-10-27 11:33:45 +02:00
2c8f1a43e9
get rids of meilisearch-lib
2022-10-27 11:33:44 +02:00
ce2dfecc03
connect the new scheduler to meilisearch-http officially.
...
I can index documents and do search
2022-10-27 11:33:43 +02:00
cb4feabca2
implements the get_tasks
2022-10-27 11:33:43 +02:00
19154e48fe
fix all compilation errors
2022-10-27 11:33:42 +02:00
8d51c1f389
wip integrating the scheduler in meilisearch-http
2022-10-27 11:33:42 +02:00
ab1800551f
Merge #2922
...
2922: Add new error when using /keys without masterkey set r=ManyTheFish a=vishalsodani
# Pull Request
## Related issue
Fixes #2918
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?
Co-authored-by: vishalsodani <vishalsodani@rediffmail.com >
2022-10-27 09:13:11 +00:00
689bef7ad2
fmt the code
2022-10-27 14:09:38 +05:30
89c40c83c3
refactor code to avoid cloning
2022-10-27 14:08:29 +05:30