[Search] Add new RCF index_labels in confluence native config (#183481)

## Summary

Related to https://github.com/elastic/connectors/issues/2453. With the
introduction of new RCF index_labels, the same needs to be reflected in
native Confluence connector

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
Praveen Kukreja 2024-05-15 17:53:26 +05:30 committed by GitHub
parent 97350c263b
commit 7dd1d5ee98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -631,13 +631,33 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
validations: [],
value: '*',
},
index_labels: {
default_value: null,
depends_on: [],
display: DisplayType.TOGGLE,
label: i18n.translate('searchConnectors.nativeConnectors.confluence.indexLabelsLabel', {
defaultMessage: 'Enable indexing labels',
}),
options: [],
order: 10,
required: true,
sensitive: false,
tooltip: i18n.translate('searchConnectors.nativeConnectors.confluence.indexLabelsTooltip', {
defaultMessage:
'Enabling this will increase the amount of network calls to the source, and may decrease performance',
}),
type: FieldType.BOOLEAN,
ui_restrictions: [],
validations: [],
value: false,
},
ssl_enabled: {
default_value: null,
depends_on: [],
display: DisplayType.TOGGLE,
label: ENABLE_SSL_LABEL,
options: [],
order: 10,
order: 11,
required: true,
sensitive: false,
tooltip: null,
@ -657,7 +677,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
display: DisplayType.TEXTBOX,
label: SSL_CERTIFICATE_LABEL,
options: [],
order: 11,
order: 12,
required: true,
sensitive: false,
tooltip: null,
@ -672,7 +692,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
display: DisplayType.NUMERIC,
label: RETRIES_PER_REQUEST_LABEL,
options: [],
order: 12,
order: 13,
required: false,
sensitive: false,
tooltip: null,
@ -687,7 +707,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
display: DisplayType.NUMERIC,
label: MAX_CONCURRENT_DOWNLOADS_LABEL,
options: [],
order: 13,
order: 14,
required: false,
sensitive: false,
tooltip: null,
@ -712,7 +732,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
display: DisplayType.TOGGLE,
label: ENABLE_DOCUMENT_LEVEL_SECURITY_LABEL,
options: [],
order: 14,
order: 15,
required: true,
sensitive: false,
tooltip: getEnableDocumentLevelSecurityTooltip(
@ -731,7 +751,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
display: DisplayType.TOGGLE,
label: USE_TEXT_EXTRACTION_SERVICE_LABEL,
options: [],
order: 15,
order: 16,
required: true,
sensitive: false,
tooltip: USE_TEXT_EXTRACTION_SERVICE_TOOLTIP,