Nikita Indik 2025-02-20 12:41:28 +01:00 committed by GitHub
parent ab4f043ca6
commit 10bec7fd50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View file

@ -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: {

View file

@ -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: {

View file

@ -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&nbsp;{docsLink}."
values={{
docsLink: (
<EuiLink href={manageDetectionRulesUpdateRulesSection} target="_blank">
<EuiLink href={updatePrebuiltDetectionRules} target="_blank">
{UPGRADE_RULES_DOCS_LINK}
</EuiLink>
),