-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[SIEM] [Cases] Case closed and add user email #60463
[SIEM] [Cases] Case closed and add user email #60463
Conversation
Pinging @elastic/siem (Team:SIEM) |
x-pack/legacy/plugins/siem/public/pages/case/components/case_view/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/case/components/user_list/index.tsx
Outdated
Show resolved
Hide resolved
closed_by: { email, full_name, username }, | ||
}; | ||
} else if (updateCaseAttributes.status && updateCaseAttributes.status === 'open') { | ||
closedInfo = { |
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.
Do we need it with null values?
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.
I'd like it to be. Otherwise a case will be open and give 'closed_at' times... isnt that weird? We'll have this all tracked in user_actions anyways I think??
x-pack/legacy/plugins/siem/public/pages/case/components/case_view/actions.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/case/components/case_view/index.tsx
Outdated
Show resolved
Hide resolved
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
@@ -50,7 +57,8 @@ const renderUsers = (users: ElasticUser[]) => { | |||
</EuiFlexItem> | |||
<EuiFlexItem grow={false}> | |||
<EuiButtonIcon | |||
onClick={() => {}} // TO DO | |||
data-test-subj="user-list-email-button" | |||
onClick={handleSendEmail.bind(null, email)} // TO DO |
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.
To do what? :)
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.
oh no longer a todo! im a green build tho so ill remove it in a future PR
export const UserList = React.memo(({ email, headline, users }: UserListProps) => { | ||
const handleSendEmail = useCallback( | ||
(emailAddress: string | undefined | null) => { | ||
if (emailAddress && emailAddress != null) { |
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.
nit: if(emailAddress)
or !isEmpty(emailAddress)
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.
green build, ill get it soon tho
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! 🚀
Summary
This PR resolves the remaining All Cases issues from #59041:
This PR resolves the following Case View issues from #58526:
connect mailto actions
display closed at time when case is closed
This PR makes updates to the API noted in this issue, #58525
Note to reviewer: I did not add new tests to
all_cases/index.test.tsx
because it's going to give me a merge headache with my other PR. once my other PR is merged, I will add tests for the closed at column in all_cases