-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RAC] [Observability] [Security Solution] Use correct url to management app for observability cases, use normalized ids #108775
[RAC] [Observability] [Security Solution] Use correct url to management app for observability cases, use normalized ids #108775
Conversation
…ized ids in timelines
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
@@ -52,13 +51,14 @@ const AddToCaseActionComponent: React.FC<AddToCaseActionProps> = ({ | |||
} = useAddToCase({ event, useInsertTimeline, casePermissions, appId, onClose }); | |||
|
|||
const getAllCasesSelectorModalProps = useMemo(() => { | |||
const { ruleId, ruleName } = normalizedEventFields(event); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌🏾
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
const ruleId = event && event.data.find(({ field }) => field === ALERT_RULE_ID); | ||
const ruleUuid = event && event.data.find(({ field }) => field === ALERT_RULE_UUID); | ||
const ruleName = event && event.data.find(({ field }) => field === ALERT_RULE_NAME); | ||
const ruleIdValue = ruleId && ruleId.value && ruleId.value[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible value could have a length of 0? perhaps consider :
const ruleIdValue = ruleId && ruleId.value && ruleId.value[0]; | |
const ruleIdValue = getOr('', 'value[0]', ruleId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't as far as I know, if it ever blows up I'll come back to this 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! only thing was that value length question. manual testing went smoothly.
thanks @kqualters-elastic 🚀 🎸
…nt app for observability cases, use normalized ids (elastic#108775) * Use correct url to management app for observability cases, use normalized ids in timelines * Update failing test * Load alert details data to render flyout in case detail view
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…nt app for observability cases, use normalized ids (#108775) (#108958) * Use correct url to management app for observability cases, use normalized ids in timelines * Update failing test * Load alert details data to render flyout in case detail view Co-authored-by: Kevin Qualters <[email protected]>
Summary
This pr adds the link to rules for cases in the observability solution, which was preventing alerts from being shown as comments in the case detail view. Also adds the alert flyout to the case detail view, to display the flyout when clicking the detail button. Also uses normalized rule ids and names across observability and security solution for rule names and ids.