Skip to content

Commit

Permalink
[8.14] [Search] Add new RCF `use_document_level_security` i…
Browse files Browse the repository at this point in the history
…n Salesforce native configs (#183600) (#183634)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[Search] Add new RCF `use_document_level_security` in
Salesforce native configs
(#183600)](#183600)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"moxarth-elastic","email":"96762084+moxarth-elastic@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-05-16T12:00:53Z","message":"[Search]
Add new RCF `use_document_level_security` in Salesforce native configs
(#183600)\n\n## Summary\r\n\r\nRelated to
elastic/connectors#2566. With
the\r\nintroduction of new RCF `use_document_level_security` in the
Salesforce\r\nconnector, the same needs to be reflected in native
Confluence\r\nconnector.\r\n\r\n### Checklist\r\n\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\n###
For maintainers\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":"fb8ba21e28fe0152eeb21f2a0d6622ed36787ebf","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.13.0","v8.14.0","v8.15.0"],"title":"[Search]
Add new RCF `use_document_level_security` in Salesforce native
configs","number":183600,"url":"#183600
Add new RCF `use_document_level_security` in Salesforce native configs
(#183600)\n\n## Summary\r\n\r\nRelated to
elastic/connectors#2566. With
the\r\nintroduction of new RCF `use_document_level_security` in the
Salesforce\r\nconnector, the same needs to be reflected in native
Confluence\r\nconnector.\r\n\r\n### Checklist\r\n\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\n###
For maintainers\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":"fb8ba21e28fe0152eeb21f2a0d6622ed36787ebf"}},"sourceBranch":"main","suggestedTargetBranches":["8.13","8.14"],"targetPullRequestStates":[{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/183600","number":183600,"mergeCommit":{"message":"[Search]
Add new RCF `use_document_level_security` in Salesforce native configs
(#183600)\n\n## Summary\r\n\r\nRelated to
elastic/connectors#2566. With
the\r\nintroduction of new RCF `use_document_level_security` in the
Salesforce\r\nconnector, the same needs to be reflected in native
Confluence\r\nconnector.\r\n\r\n### Checklist\r\n\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\n###
For maintainers\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":"fb8ba21e28fe0152eeb21f2a0d6622ed36787ebf"}}]}]
BACKPORT-->

Co-authored-by: moxarth-elastic <96762084+moxarth-elastic@users.noreply.github.com>
  • Loading branch information
kibanamachine and moxarth-elastic committed May 16, 2024
1 parent 9fe7303 commit 2b2129e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion packages/kbn-search-connectors/types/native_connectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3998,13 +3998,32 @@ 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: 4,
required: true,
sensitive: false,
tooltip: getEnableDocumentLevelSecurityTooltip(
i18n.translate('searchConnectors.nativeConnectors.salesforce.name', {
defaultMessage: 'Salesforce',
})
),
type: FieldType.BOOLEAN,
ui_restrictions: [],
validations: [],
value: false,
},
use_text_extraction_service: {
default_value: null,
depends_on: [],
display: DisplayType.TOGGLE,
label: USE_TEXT_EXTRACTION_SERVICE_LABEL,
options: [],
order: 4,
order: 5,
required: true,
sensitive: false,
tooltip: USE_TEXT_EXTRACTION_SERVICE_TOOLTIP,
Expand Down

0 comments on commit 2b2129e

Please sign in to comment.