From b5fe0b2b07de28b6b55bb0241c4770f5963108d2 Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 2 May 2023 22:53:16 +0200 Subject: [PATCH] fix the details --- meilisearch/src/routes/tasks.rs | 1 + meilisearch/tests/documents/delete_documents.rs | 2 ++ meilisearch/tests/documents/errors.rs | 3 +++ 3 files changed, 6 insertions(+) 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\"" },