Skip to content

Commit

Permalink
[Security Solution] Updates value list exceptions doc link (#142909) (#…
Browse files Browse the repository at this point in the history
…143240)

(cherry picked from commit 987af1c)

# Conflicts:
#	packages/kbn-doc-links/src/get_doc_links.ts
#	packages/kbn-doc-links/src/types.ts
  • Loading branch information
dplumlee authored Oct 12, 2022
1 parent 7294e29 commit bb518ae
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 @@ -373,6 +373,9 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
es_connection: '',
},
responseActions: `${SECURITY_SOLUTION_DOCS}response-actions.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 @@ -276,6 +276,9 @@ export interface DocLinks {
};
readonly threatIntelInt: string;
readonly responseActions: 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 bb518ae

Please sign in to comment.