[Enterprise Search] Add missing native connector configurations (#169128)

## Summary

Add missing configurations for some native connectors.

Added missing Document Level Security for Network,Jira and Confluence
<img width="749" alt="Screenshot 2023-10-17 at 17 35 37"
src="962102df-83a2-4c04-a4c6-ff38ecc5a6ee">
<img width="624" alt="Screenshot 2023-10-17 at 17 36 06"
src="2d270236-5083-4be9-98b7-087bd3fa0adc">
<img width="574" alt="Screenshot 2023-10-17 at 17 36 59"
src="c42f3cf5-d582-433e-b1b4-632d414de349">

Add enumarate and fetch_subsites for Sharepoint Online

<img width="760" alt="Screenshot 2023-10-17 at 17 39 27"
src="c6ac9e87-53ea-46e7-a5de-2a479abb64ef">


### Checklist

Delete any items that are not applicable to this PR.


- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Efe Gürkan YALAMAN 2023-10-18 13:45:45 +02:00 committed by GitHub
parent 80932b81e2
commit 2015c9f686
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 96 additions and 2 deletions

View file

@ -68,7 +68,7 @@ export type ConnectorConfiguration = Record<
> & {
extract_full_html?: { label: string; value: boolean }; // This only exists for Crawler
use_document_level_security?: ConnectorConfigProperties;
use_text_extraction_service?: ConnectorConfigProperties; // This only exists for SharePoint Online
use_text_extraction_service?: ConnectorConfigProperties;
};
export interface ConnectorScheduling {

View file

@ -444,6 +444,21 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
],
value: 50,
},
use_document_level_security: {
default_value: null,
depends_on: [],
display: DisplayType.TOGGLE,
label: ENABLE_DOCUMENT_LEVEL_SECURITY_LABEL,
options: [],
order: 6,
required: true,
sensitive: false,
tooltip: ENABLE_DOCUMENT_LEVEL_SECURITY_TOOLTIP,
type: FieldType.BOOLEAN,
ui_restrictions: [],
validations: [],
value: false,
},
use_text_extraction_service: {
default_value: false,
depends_on: [],
@ -730,7 +745,6 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
ui_restrictions: ['advanced'],
validations: [],
value: 3,
display_value: 3,
},
use_text_extraction_service: {
default_value: null,
@ -1204,6 +1218,21 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
],
value: 100,
},
use_document_level_security: {
default_value: null,
depends_on: [],
display: DisplayType.TOGGLE,
label: ENABLE_DOCUMENT_LEVEL_SECURITY_LABEL,
options: [],
order: 6,
required: true,
sensitive: false,
tooltip: ENABLE_DOCUMENT_LEVEL_SECURITY_TOOLTIP,
type: FieldType.BOOLEAN,
ui_restrictions: [],
validations: [],
value: false,
},
use_text_extraction_service: {
default_value: false,
depends_on: [],
@ -1845,6 +1874,21 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
validations: [],
value: '',
},
use_document_level_security: {
default_value: null,
depends_on: [],
display: DisplayType.TOGGLE,
label: ENABLE_DOCUMENT_LEVEL_SECURITY_LABEL,
options: [],
order: 6,
required: true,
sensitive: false,
tooltip: ENABLE_DOCUMENT_LEVEL_SECURITY_TOOLTIP,
type: FieldType.BOOLEAN,
ui_restrictions: [],
validations: [],
value: false,
},
},
features: {
[FeatureName.SYNC_RULES]: {
@ -2559,6 +2603,56 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
validations: [],
value: true,
},
enumerate_all_sites: {
default_value: true,
depends_on: [],
display: DisplayType.TOGGLE,
label: i18n.translate(
'searchConnectors.nativeConnectors.sharepoint_online.configuration.enumerateAllSitesLabel',
{ defaultMessage: 'Enumerate all sites?' }
),
options: [],
order: 6,
required: false,
sensitive: false,
tooltip: i18n.translate(
'searchConnectors.nativeConnectors.sharepoint_online.configuration.enumerateAllSitesTooltip',
{
defaultMessage:
'If enabled, sites will be fetched in bulk, then filtered down to the configured list of sites. This is efficient when syncing many sites. If disabled, each configured site will be fetched with an individual request. This is efficient when syncing fewer sites.',
}
),
type: FieldType.BOOLEAN,
ui_restrictions: [],
validations: [],
value: true,
},
fetch_subsites: {
default_value: false,
depends_on: [{ field: 'enumerate_all_sites', value: false }],
display: DisplayType.TOGGLE,
label: i18n.translate(
'searchConnectors.nativeConnectors.sharepoint_online.configuration.fetchSubsitesLabel',
{
defaultMessage: 'Fetch sub-sites of configured sites?',
}
),
options: [],
order: 7,
required: false,
sensitive: false,
tooltip: i18n.translate(
'searchConnectors.nativeConnectors.sharepoint_online.configuration.fetchSubsitesTooltip',
{
defaultMessage:
'Whether subsites of the configured site(s) should be automatically fetched.',
}
),
type: FieldType.BOOLEAN,
ui_restrictions: [],
validations: [],
value: true,
},
},
features: {
[FeatureName.SYNC_RULES]: {