From 833d557fcd28f1d1a0f2dfc8cec93ef6ab36a26c Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 21 Nov 2024 03:36:59 +1100 Subject: [PATCH] [8.15] [Entity Analytics][Bug] Only refresh the asset criticality index after bulk upload (#200897) (#200918) # Backport This will backport the following commits from `main` to `8.15`: - [[Entity Analytics][Bug] Only refresh the asset criticality index after bulk upload (#200897)](https://github.com/elastic/kibana/pull/200897) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Mark Hopkin --- .../asset_criticality/asset_criticality_data_client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts b/x-pack/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts index c5abf75b71478..efabb5ef2dbd0 100644 --- a/x-pack/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts +++ b/x-pack/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts @@ -217,7 +217,7 @@ export class AssetCriticalityDataClient { index: this.getIndex(), flushBytes, retries, - refreshOnCompletion: true, // refresh the index after all records are processed + refreshOnCompletion: this.getIndex(), onDocument: ({ record }) => [ { update: { _id: createId(record) } }, {