diff --git a/meilisearch/src/routes/tasks.rs b/meilisearch/src/routes/tasks.rs index 958f15dd8..cab0f7197 100644 --- a/meilisearch/src/routes/tasks.rs +++ b/meilisearch/src/routes/tasks.rs @@ -135,6 +135,7 @@ impl From
for DetailsView { }, Details::DocumentDeletionByFilter { original_filter, deleted_documents } => { DetailsView { + provided_ids: Some(0), original_filter: Some(original_filter), deleted_documents: Some(deleted_documents), ..DetailsView::default() diff --git a/meilisearch/tests/documents/delete_documents.rs b/meilisearch/tests/documents/delete_documents.rs index a34bcfa95..f16a84a1e 100644 --- a/meilisearch/tests/documents/delete_documents.rs +++ b/meilisearch/tests/documents/delete_documents.rs @@ -176,6 +176,7 @@ async fn delete_document_by_filter() { "type": "documentDeletion", "canceledBy": null, "details": { + "providedIds": 0, "deletedDocuments": 2, "originalFilter": "\"color = blue\"" }, @@ -228,6 +229,7 @@ async fn delete_document_by_filter() { "type": "documentDeletion", "canceledBy": null, "details": { + "providedIds": 0, "deletedDocuments": 2, "originalFilter": "\"color = blue\"" }, diff --git a/meilisearch/tests/documents/errors.rs b/meilisearch/tests/documents/errors.rs index 18c01623b..ac9bc132b 100644 --- a/meilisearch/tests/documents/errors.rs +++ b/meilisearch/tests/documents/errors.rs @@ -485,6 +485,7 @@ async fn delete_document_by_filter() { "type": "documentDeletion", "canceledBy": null, "details": { + "providedIds": 0, "deletedDocuments": 0, "originalFilter": "\"doggo = bernese\"" }, @@ -518,6 +519,7 @@ async fn delete_document_by_filter() { "type": "documentDeletion", "canceledBy": null, "details": { + "providedIds": 0, "deletedDocuments": 0, "originalFilter": "\"doggo = bernese\"" }, @@ -551,6 +553,7 @@ async fn delete_document_by_filter() { "type": "documentDeletion", "canceledBy": null, "details": { + "providedIds": 0, "deletedDocuments": 0, "originalFilter": "\"catto = jorts\"" },