mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
Add the question mark to the task cancelation query filter
This commit is contained in:
@ -485,7 +485,7 @@ async fn cancel_tasks(
|
|||||||
&index_scheduler.filters().search_rules.authorized_indexes(),
|
&index_scheduler.filters().search_rules.authorized_indexes(),
|
||||||
)?;
|
)?;
|
||||||
let task_cancelation =
|
let task_cancelation =
|
||||||
KindWithContent::TaskCancelation { query: req.query_string().to_string(), tasks };
|
KindWithContent::TaskCancelation { query: format!("?{}", req.query_string()), tasks };
|
||||||
|
|
||||||
let task = task::spawn_blocking(move || index_scheduler.register(task_cancelation)).await??;
|
let task = task::spawn_blocking(move || index_scheduler.register(task_cancelation)).await??;
|
||||||
let task: SummarizedTaskView = task.into();
|
let task: SummarizedTaskView = task.into();
|
||||||
|
@ -804,7 +804,7 @@ async fn test_summarized_task_cancelation() {
|
|||||||
"details": {
|
"details": {
|
||||||
"matchedTasks": 1,
|
"matchedTasks": 1,
|
||||||
"canceledTasks": 0,
|
"canceledTasks": 0,
|
||||||
"originalFilters": "uids=0"
|
"originalFilters": "?uids=0"
|
||||||
},
|
},
|
||||||
"error": null,
|
"error": null,
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
|
Reference in New Issue
Block a user