mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Backport This will backport the following commits from `main` to `8.12`: - [Add new RCF for github in native connector (#174986)](https://github.com/elastic/kibana/pull/174986) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"akanshi-elastic","email":"125074214+akanshi-elastic@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-01-18T06:35:17Z","message":"Add new RCF for github in native connector (#174986)\n\nSummary\r\n1. Add new RCF in GitHub Connector.\r\n3. please add label 8.12 for this PR\r\n\r\nChecklist\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [X] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n\r\nFor maintainers\r\n \r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"10ab2290cac2b776eb6323c18328aef4cf55ba2c","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.12.0","v8.12.1","v8.13.0"],"title":"Add new RCF for github in native connector","number":174986,"url":"https://github.com/elastic/kibana/pull/174986","mergeCommit":{"message":"Add new RCF for github in native connector (#174986)\n\nSummary\r\n1. Add new RCF in GitHub Connector.\r\n3. please add label 8.12 for this PR\r\n\r\nChecklist\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [X] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n\r\nFor maintainers\r\n \r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"10ab2290cac2b776eb6323c18328aef4cf55ba2c"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174986","number":174986,"mergeCommit":{"message":"Add new RCF for github in native connector (#174986)\n\nSummary\r\n1. Add new RCF in GitHub Connector.\r\n3. please add label 8.12 for this PR\r\n\r\nChecklist\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [X] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n\r\nFor maintainers\r\n \r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"10ab2290cac2b776eb6323c18328aef4cf55ba2c"}}]}] BACKPORT--> Co-authored-by: akanshi-elastic <125074214+akanshi-elastic@users.noreply.github.com>
This commit is contained in:
parent
edc7e2ed17
commit
ddfb8ba547
1 changed files with 86 additions and 5 deletions
|
@ -689,6 +689,61 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
validations: [],
|
||||
value: '',
|
||||
},
|
||||
repo_type: {
|
||||
default_value: null,
|
||||
depends_on: [],
|
||||
display: DisplayType.DROPDOWN,
|
||||
label: i18n.translate('searchConnectors.nativeConnectors.github.repo_type.label', {
|
||||
defaultMessage: 'Repository Type',
|
||||
}),
|
||||
options: [
|
||||
{
|
||||
label: i18n.translate('searchConnectors.nativeConnectors.github.options.organization', {
|
||||
defaultMessage: 'Organization',
|
||||
}),
|
||||
value: 'organization',
|
||||
},
|
||||
{
|
||||
label: i18n.translate('searchConnectors.nativeConnectors.github.options.other', {
|
||||
defaultMessage: 'Other',
|
||||
}),
|
||||
value: 'other',
|
||||
},
|
||||
],
|
||||
order: 4,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: i18n.translate('searchConnectors.nativeConnectors.github.repo_type', {
|
||||
defaultMessage:
|
||||
'The Document Level Security feature is not available for the Other Repository Type',
|
||||
}),
|
||||
type: FieldType.STRING,
|
||||
ui_restrictions: [],
|
||||
validations: [],
|
||||
value: 'other',
|
||||
},
|
||||
org_name: {
|
||||
default_value: null,
|
||||
depends_on: [
|
||||
{
|
||||
field: 'repo_type',
|
||||
value: 'organization',
|
||||
},
|
||||
],
|
||||
display: DisplayType.TEXTBOX,
|
||||
label: i18n.translate('searchConnectors.nativeConnectors.github.org_name.label', {
|
||||
defaultMessage: 'Organization Name',
|
||||
}),
|
||||
options: [],
|
||||
order: 5,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: null,
|
||||
type: FieldType.STRING,
|
||||
ui_restrictions: [],
|
||||
validations: [],
|
||||
value: '',
|
||||
},
|
||||
repositories: {
|
||||
default_value: null,
|
||||
depends_on: [],
|
||||
|
@ -697,7 +752,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
defaultMessage: 'List of repositories',
|
||||
}),
|
||||
options: [],
|
||||
order: 4,
|
||||
order: 6,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: i18n.translate('searchConnectors.nativeConnectors.github.listOfRepos.tooltip', {
|
||||
|
@ -714,7 +769,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
display: DisplayType.TOGGLE,
|
||||
label: ENABLE_SSL_LABEL,
|
||||
options: [],
|
||||
order: 5,
|
||||
order: 7,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: null,
|
||||
|
@ -734,7 +789,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
display: DisplayType.TEXTBOX,
|
||||
label: SSL_CERTIFICATE_LABEL,
|
||||
options: [],
|
||||
order: 6,
|
||||
order: 8,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: null,
|
||||
|
@ -749,7 +804,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
display: DisplayType.NUMERIC,
|
||||
label: RETRIES_PER_REQUEST_LABEL,
|
||||
options: [],
|
||||
order: 7,
|
||||
order: 9,
|
||||
required: false,
|
||||
sensitive: false,
|
||||
tooltip: null,
|
||||
|
@ -764,7 +819,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
display: DisplayType.TOGGLE,
|
||||
label: USE_TEXT_EXTRACTION_SERVICE_LABEL,
|
||||
options: [],
|
||||
order: 8,
|
||||
order: 10,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: USE_TEXT_EXTRACTION_SERVICE_TOOLTIP,
|
||||
|
@ -773,6 +828,32 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
|
|||
validations: [],
|
||||
value: false,
|
||||
},
|
||||
use_document_level_security: {
|
||||
default_value: null,
|
||||
depends_on: [
|
||||
{
|
||||
field: 'repo_type',
|
||||
value: 'organization',
|
||||
},
|
||||
],
|
||||
display: DisplayType.TOGGLE,
|
||||
label: ENABLE_DOCUMENT_LEVEL_SECURITY_LABEL,
|
||||
options: [],
|
||||
order: 11,
|
||||
required: true,
|
||||
sensitive: false,
|
||||
tooltip: i18n.translate(
|
||||
'searchConnectors.nativeConnectors.github.configuration.useDocumentLevelSecurityTooltip',
|
||||
{
|
||||
defaultMessage:
|
||||
'Document level security ensures identities and permissions set in GitHub are maintained in Elasticsearch. This enables you to restrict and personalize read-access users and groups have to documents in this index. Access control syncs ensure this metadata is kept up to date in your Elasticsearch documents.',
|
||||
}
|
||||
),
|
||||
type: FieldType.BOOLEAN,
|
||||
ui_restrictions: [],
|
||||
validations: [],
|
||||
value: false,
|
||||
},
|
||||
},
|
||||
name: i18n.translate('searchConnectors.nativeConnectors.github.name', {
|
||||
defaultMessage: 'Github',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue