diff --git a/crates/index-scheduler/src/lib.rs b/crates/index-scheduler/src/lib.rs index f5f73087d..d3e65c6f8 100644 --- a/crates/index-scheduler/src/lib.rs +++ b/crates/index-scheduler/src/lib.rs @@ -4308,6 +4308,16 @@ mod tests { snapshot!(batch, @r#" { "uid": 0, + "progress": { + "steps": [ + { + "name": "processing tasks", + "finished": 0, + "total": 2 + } + ], + "percentage": 0.0 + }, "details": { "primaryKey": "mouse" }, diff --git a/crates/meilisearch/tests/batches/mod.rs b/crates/meilisearch/tests/batches/mod.rs index 9c869c140..581e92837 100644 --- a/crates/meilisearch/tests/batches/mod.rs +++ b/crates/meilisearch/tests/batches/mod.rs @@ -284,6 +284,7 @@ async fn test_summarized_document_addition_or_update() { @r#" { "uid": 0, + "progress": null, "details": { "receivedDocuments": 1, "indexedDocuments": 1 @@ -314,6 +315,7 @@ async fn test_summarized_document_addition_or_update() { @r#" { "uid": 1, + "progress": null, "details": { "receivedDocuments": 1, "indexedDocuments": 1 @@ -349,6 +351,7 @@ async fn test_summarized_delete_documents_by_batch() { @r#" { "uid": 0, + "progress": null, "details": { "providedIds": 3, "deletedDocuments": 0 @@ -380,6 +383,7 @@ async fn test_summarized_delete_documents_by_batch() { @r#" { "uid": 2, + "progress": null, "details": { "providedIds": 1, "deletedDocuments": 0 @@ -416,6 +420,7 @@ async fn test_summarized_delete_documents_by_filter() { @r#" { "uid": 0, + "progress": null, "details": { "providedIds": 0, "deletedDocuments": 0, @@ -448,6 +453,7 @@ async fn test_summarized_delete_documents_by_filter() { @r#" { "uid": 2, + "progress": null, "details": { "providedIds": 0, "deletedDocuments": 0, @@ -480,6 +486,7 @@ async fn test_summarized_delete_documents_by_filter() { @r#" { "uid": 4, + "progress": null, "details": { "providedIds": 0, "deletedDocuments": 0, @@ -516,6 +523,7 @@ async fn test_summarized_delete_document_by_id() { @r#" { "uid": 0, + "progress": null, "details": { "providedIds": 1, "deletedDocuments": 0 @@ -547,6 +555,7 @@ async fn test_summarized_delete_document_by_id() { @r#" { "uid": 2, + "progress": null, "details": { "providedIds": 1, "deletedDocuments": 0 @@ -594,6 +603,7 @@ async fn test_summarized_settings_update() { @r#" { "uid": 0, + "progress": null, "details": { "displayedAttributes": [ "doggos", @@ -638,6 +648,7 @@ async fn test_summarized_index_creation() { @r#" { "uid": 0, + "progress": null, "details": {}, "stats": { "totalNbTasks": 1, @@ -665,6 +676,7 @@ async fn test_summarized_index_creation() { @r#" { "uid": 1, + "progress": null, "details": { "primaryKey": "doggos" }, @@ -809,6 +821,7 @@ async fn test_summarized_index_update() { @r#" { "uid": 0, + "progress": null, "details": {}, "stats": { "totalNbTasks": 1, @@ -836,6 +849,7 @@ async fn test_summarized_index_update() { @r#" { "uid": 1, + "progress": null, "details": { "primaryKey": "bones" }, @@ -868,6 +882,7 @@ async fn test_summarized_index_update() { @r#" { "uid": 3, + "progress": null, "details": {}, "stats": { "totalNbTasks": 1, @@ -895,6 +910,7 @@ async fn test_summarized_index_update() { @r#" { "uid": 4, + "progress": null, "details": { "primaryKey": "bones" }, @@ -932,6 +948,7 @@ async fn test_summarized_index_swap() { @r#" { "uid": 0, + "progress": null, "details": { "swaps": [ { @@ -972,6 +989,7 @@ async fn test_summarized_index_swap() { @r#" { "uid": 3, + "progress": null, "details": { "swaps": [ { @@ -1014,6 +1032,7 @@ async fn test_summarized_batch_cancelation() { @r#" { "uid": 1, + "progress": null, "details": { "matchedTasks": 1, "canceledTasks": 0, @@ -1051,6 +1070,7 @@ async fn test_summarized_batch_deletion() { @r#" { "uid": 1, + "progress": null, "details": { "matchedTasks": 1, "deletedTasks": 1, @@ -1084,6 +1104,7 @@ async fn test_summarized_dump_creation() { @r#" { "uid": 0, + "progress": null, "details": { "dumpUid": "[dumpUid]" },