mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
# Backport This will backport the following commits from `main` to `8.18`: - [[Security Solution] Change rule upgrade docs link (#211870)](https://github.com/elastic/kibana/pull/211870) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Nikita Indik","email":"nikita.indik@elastic.co"},"sourceCommit":{"committedDate":"2025-02-20T11:41:28Z","message":"[Security Solution] Change rule upgrade docs link (#211870)\n\n**Resolves: https://github.com/elastic/kibana/issues/208203**\n\n## Summary\n\nUpdates rule upgrade doc links for ECH and Serverless.\n\n<img\nsrc=\"https://private-user-images.githubusercontent.com/40713348/406468281-d3f82a32-c1c5-47a1-aee2-6a7c1db683a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAwNDMwNzgsIm5iZiI6MTc0MDA0Mjc3OCwicGF0aCI6Ii80MDcxMzM0OC80MDY0NjgyODEtZDNmODJhMzItYzFjNS00N2ExLWFlZTItNmE3YzFkYjY4M2EzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjIwVDA5MTI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2YzhmNGU2YTAyNDcwZDM2OWI0Mzc4N2U1ODYwNjRhMTZjZDdkZmMxMjZjZjQwZTRhOWQyN2U1ZTFjYTdhOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wj6-S4aNoOYkqdfF53TwikuNI14OwZlP8MOCTJsskXQ\"\n/>","sha":"10bec7fd50998a2e1ea14871f30faf8271161970","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security Solution] Change rule upgrade docs link","number":211870,"url":"https://github.com/elastic/kibana/pull/211870","mergeCommit":{"message":"[Security Solution] Change rule upgrade docs link (#211870)\n\n**Resolves: https://github.com/elastic/kibana/issues/208203**\n\n## Summary\n\nUpdates rule upgrade doc links for ECH and Serverless.\n\n<img\nsrc=\"https://private-user-images.githubusercontent.com/40713348/406468281-d3f82a32-c1c5-47a1-aee2-6a7c1db683a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAwNDMwNzgsIm5iZiI6MTc0MDA0Mjc3OCwicGF0aCI6Ii80MDcxMzM0OC80MDY0NjgyODEtZDNmODJhMzItYzFjNS00N2ExLWFlZTItNmE3YzFkYjY4M2EzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjIwVDA5MTI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2YzhmNGU2YTAyNDcwZDM2OWI0Mzc4N2U1ODYwNjRhMTZjZDdkZmMxMjZjZjQwZTRhOWQyN2U1ZTFjYTdhOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wj6-S4aNoOYkqdfF53TwikuNI14OwZlP8MOCTJsskXQ\"\n/>","sha":"10bec7fd50998a2e1ea14871f30faf8271161970"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211870","number":211870,"mergeCommit":{"message":"[Security Solution] Change rule upgrade docs link (#211870)\n\n**Resolves: https://github.com/elastic/kibana/issues/208203**\n\n## Summary\n\nUpdates rule upgrade doc links for ECH and Serverless.\n\n<img\nsrc=\"https://private-user-images.githubusercontent.com/40713348/406468281-d3f82a32-c1c5-47a1-aee2-6a7c1db683a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAwNDMwNzgsIm5iZiI6MTc0MDA0Mjc3OCwicGF0aCI6Ii80MDcxMzM0OC80MDY0NjgyODEtZDNmODJhMzItYzFjNS00N2ExLWFlZTItNmE3YzFkYjY4M2EzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjIwVDA5MTI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2YzhmNGU2YTAyNDcwZDM2OWI0Mzc4N2U1ODYwNjRhMTZjZDdkZmMxMjZjZjQwZTRhOWQyN2U1ZTFjYTdhOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wj6-S4aNoOYkqdfF53TwikuNI14OwZlP8MOCTJsskXQ\"\n/>","sha":"10bec7fd50998a2e1ea14871f30faf8271161970"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Nikita Indik <nikita.indik@elastic.co>
This commit is contained in:
parent
71a86f8c59
commit
8e26411396
3 changed files with 6 additions and 3 deletions
|
@ -510,6 +510,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: {
|
||||
|
|
|
@ -373,6 +373,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