mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Security Solution] Change rule upgrade docs link (#211870)
**Resolves: https://github.com/elastic/kibana/issues/208203** ## Summary Updates rule upgrade doc links for ECH and Serverless. <img src="https://private-user-images.githubusercontent.com/40713348/406468281-d3f82a32-c1c5-47a1-aee2-6a7c1db683a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAwNDMwNzgsIm5iZiI6MTc0MDA0Mjc3OCwicGF0aCI6Ii80MDcxMzM0OC80MDY0NjgyODEtZDNmODJhMzItYzFjNS00N2ExLWFlZTItNmE3YzFkYjY4M2EzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjIwVDA5MTI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2YzhmNGU2YTAyNDcwZDM2OWI0Mzc4N2U1ODYwNjRhMTZjZDdkZmMxMjZjZjQwZTRhOWQyN2U1ZTFjYTdhOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wj6-S4aNoOYkqdfF53TwikuNI14OwZlP8MOCTJsskXQ" />
This commit is contained in:
parent
ab4f043ca6
commit
10bec7fd50
3 changed files with 6 additions and 3 deletions
|
@ -444,6 +444,9 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D
|
|||
privileges: `${SECURITY_SOLUTION_DOCS}endpoint-management-req.html`,
|
||||
manageDetectionRules: `${SECURITY_SOLUTION_DOCS}rules-ui-management.html`,
|
||||
createDetectionRules: `${SECURITY_SOLUTION_DOCS}rules-ui-create.html`,
|
||||
updatePrebuiltDetectionRules: isServerless
|
||||
? `${SERVERLESS_DOCS}security-prebuilt-rules-management.html#update-prebuilt-rules`
|
||||
: `${SECURITY_SOLUTION_DOCS}prebuilt-rules-management.html#update-prebuilt-rules`,
|
||||
createEsqlRuleType: `${SECURITY_SOLUTION_DOCS}rules-ui-create.html#create-esql-rule`,
|
||||
ruleUiAdvancedParams: `${SECURITY_SOLUTION_DOCS}rules-ui-create.html#rule-ui-advanced-params`,
|
||||
entityAnalytics: {
|
||||
|
|
|
@ -310,6 +310,7 @@ export interface DocLinks {
|
|||
readonly privileges: string;
|
||||
readonly manageDetectionRules: string;
|
||||
readonly createDetectionRules: string;
|
||||
readonly updatePrebuiltDetectionRules: string;
|
||||
readonly createEsqlRuleType: string;
|
||||
readonly ruleUiAdvancedParams: string;
|
||||
readonly entityAnalytics: {
|
||||
|
|
|
@ -55,11 +55,10 @@ export function RuleUpgradeHelper(): JSX.Element {
|
|||
const {
|
||||
docLinks: {
|
||||
links: {
|
||||
securitySolution: { manageDetectionRules },
|
||||
securitySolution: { updatePrebuiltDetectionRules },
|
||||
},
|
||||
},
|
||||
} = useKibana().services;
|
||||
const manageDetectionRulesUpdateRulesSection = `${manageDetectionRules}#edit-rules-settings`;
|
||||
|
||||
return (
|
||||
<FormattedMessage
|
||||
|
@ -67,7 +66,7 @@ export function RuleUpgradeHelper(): JSX.Element {
|
|||
defaultMessage="Understand how to {docsLink}."
|
||||
values={{
|
||||
docsLink: (
|
||||
<EuiLink href={manageDetectionRulesUpdateRulesSection} target="_blank">
|
||||
<EuiLink href={updatePrebuiltDetectionRules} target="_blank">
|
||||
{UPGRADE_RULES_DOCS_LINK}
|
||||
</EuiLink>
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue