From 9deae84801fa770a41d107c633d3b6e356631b03 Mon Sep 17 00:00:00 2001 From: Sander Philipse <94373878+sphilipse@users.noreply.github.com> Date: Fri, 8 Sep 2023 11:14:17 +0200 Subject: [PATCH] [Search] Update connector also updates status (#165983) ## Summary Converting a connector from native to client now updates the connector status. --- packages/kbn-search-connectors/lib/update_native.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/kbn-search-connectors/lib/update_native.ts b/packages/kbn-search-connectors/lib/update_native.ts index dff5042961088..73af04e75aa8b 100644 --- a/packages/kbn-search-connectors/lib/update_native.ts +++ b/packages/kbn-search-connectors/lib/update_native.ts @@ -9,7 +9,7 @@ import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { CONNECTORS_INDEX } from '..'; -import { Connector } from '../types/connectors'; +import { Connector, ConnectorStatus } from '../types/connectors'; export const putUpdateNative = async ( client: ElasticsearchClient, @@ -19,6 +19,7 @@ export const putUpdateNative = async ( const result = await client.update({ doc: { is_native: isNative, + status: ConnectorStatus.CONFIGURED, }, id: connectorId, index: CONNECTORS_INDEX,