-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Entity Analytics] Remove links to legacy risk scoring docs (#187585)
## Summary Related to elastic/security-docs#5489. We had a few places where we incorrectly link to the legacy user/host risk scoring docs. In deleting the links I found we had two `RiskSummary` components which components which I have renamed `RiskSummaryPanel` and `FlyoutRiskSummary` to make life easier. <img width="770" alt="Screenshot 2024-07-04 at 15 47 14" src="https://github.com/elastic/kibana/assets/3315046/20e26a15-4975-4165-9c56-bb328c508bee"> --------- Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
460b520
commit 12bd8fe
Showing
27 changed files
with
106 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...on/public/entity_analytics/components/risk_score_onboarding/entity_analytics_doc_link.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { EuiLink } from '@elastic/eui'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
import React from 'react'; | ||
import { useKibana } from '../../../common/lib/kibana'; | ||
|
||
const EntityAnalyticsLearnMoreLinkComponent = ({ title }: { title?: string | React.ReactNode }) => { | ||
const { docLinks } = useKibana().services; | ||
const entityAnalyticsLinks = docLinks.links.securitySolution.entityAnalytics; | ||
|
||
return ( | ||
<EuiLink | ||
target="_blank" | ||
rel="noopener nofollow noreferrer" | ||
href={entityAnalyticsLinks.entityRiskScoring} | ||
> | ||
{title ? ( | ||
title | ||
) : ( | ||
<FormattedMessage | ||
id="xpack.securitySolution.entityAnalytics.learnMore" | ||
defaultMessage="Learn more about entity risk scoring" | ||
/> | ||
)} | ||
</EuiLink> | ||
); | ||
}; | ||
|
||
export const EntityAnalyticsLearnMoreLink = React.memo(EntityAnalyticsLearnMoreLinkComponent); | ||
|
||
EntityAnalyticsLearnMoreLink.displayName = 'EntityAnalyticsLearnMoreLink'; |
46 changes: 0 additions & 46 deletions
46
...solution/public/entity_analytics/components/risk_score_onboarding/risk_score_doc_link.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.