Skip to content

Commit

Permalink
[Security Solution] Updates value list exceptions doc link (elastic#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
dplumlee authored Oct 12, 2022
1 parent bc3eadd commit 987af1c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/kbn-doc-links/src/get_doc_links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
},
responseActions: `${SECURITY_SOLUTION_DOCS}response-actions.html`,
configureEndpointIntegrationPolicy: `${SECURITY_SOLUTION_DOCS}configure-endpoint-integration-policy.html`,
exceptions: {
value_lists: `${SECURITY_SOLUTION_DOCS}detections-ui-exceptions.html#manage-value-lists`,
},
},
query: {
eql: `${ELASTICSEARCH_DOCS}eql.html`,
Expand Down
3 changes: 3 additions & 0 deletions packages/kbn-doc-links/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ export interface DocLinks {
readonly threatIntelInt: string;
readonly responseActions: string;
readonly configureEndpointIntegrationPolicy: string;
readonly exceptions: {
value_lists: string;
};
};
readonly query: {
readonly eql: string;
Expand Down
2 changes: 2 additions & 0 deletions packages/kbn-securitysolution-autocomplete/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ RUNTIME_DEPS = [
"//packages/kbn-securitysolution-io-ts-list-types",
"//packages/kbn-securitysolution-list-hooks",
"//packages/kbn-securitysolution-list-utils",
"//packages/kbn-doc-links",
"@npm//@elastic/eui",
"@npm//@testing-library/react",
"@npm//@testing-library/react-hooks",
Expand All @@ -60,6 +61,7 @@ TYPES_DEPS = [
"//packages/kbn-securitysolution-io-ts-list-types:npm_module_types",
"//packages/kbn-securitysolution-list-hooks:npm_module_types",
"//packages/kbn-securitysolution-list-utils:npm_module_types",
"//packages/kbn-doc-links:npm_module_types",
"@npm//@elastic/eui",
"@npm//@testing-library/react",
"@npm//@testing-library/react-hooks",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { EuiComboBox, EuiComboBoxOptionOption, EuiFormRow, EuiLink, EuiText } fr
import type { ListSchema } from '@kbn/securitysolution-io-ts-list-types';
import { useFindListsBySize } from '@kbn/securitysolution-list-hooks';
import { DataViewFieldBase } from '@kbn/es-query';
import { getDocLinks } from '@kbn/doc-links';

import { filterFieldToList } from '../filter_field_to_list';
import { getGenericComboBoxProps } from '../get_generic_combo_box_props';
Expand Down Expand Up @@ -121,7 +122,11 @@ export const AutocompleteFieldListsComponent: React.FC<AutocompleteFieldListsPro
!allowLargeValueLists && (
<EuiText size="xs">
{i18n.LISTS_TOOLTIP_INFO}{' '}
<EuiLink external target="_blank" href="https://www.elastic.co/">
<EuiLink
external
target="_blank"
href={getDocLinks({ kibanaBranch: 'main' }).securitySolution.exceptions.value_lists}
>
{i18n.SEE_DOCUMENTATION}
</EuiLink>
</EuiText>
Expand Down

0 comments on commit 987af1c

Please sign in to comment.