mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Search] Fix native connectors not configuring correctly (#168858)
## Summary This fixes an issue with native connectors not being set to configured after being configured.
This commit is contained in:
parent
58df0aa0d3
commit
ddcc528395
2 changed files with 3 additions and 2 deletions
|
@ -116,7 +116,7 @@ export function createConnectorDocument({
|
|||
incremental: { enabled: false, interval: '0 0 0 * * ?' },
|
||||
},
|
||||
service_type: serviceType || null,
|
||||
status: ConnectorStatus.CREATED,
|
||||
status: isNative ? ConnectorStatus.NEEDS_CONFIGURATION : ConnectorStatus.CREATED,
|
||||
sync_now: false,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -26,7 +26,8 @@ export const updateConnectorConfiguration = async (
|
|||
const connector = connectorResult?.value;
|
||||
if (connector) {
|
||||
const status =
|
||||
connector.status === ConnectorStatus.NEEDS_CONFIGURATION
|
||||
connector.status === ConnectorStatus.NEEDS_CONFIGURATION ||
|
||||
connector.status === ConnectorStatus.CREATED
|
||||
? ConnectorStatus.CONFIGURED
|
||||
: connector.status;
|
||||
const updatedConfig = Object.keys(connector.configuration)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue