Skip to content
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

Merged
merged 8 commits into from
Mar 19, 2020

Conversation

stephmilovic
Copy link
Contributor

@stephmilovic stephmilovic commented Mar 18, 2020

Summary

This PR resolves the remaining All Cases issues from #59041:

  • swap createdAt with closedAt column when closed cases are displayed
    table-closed

This PR resolves the following Case View issues from #58526:

  • connect mailto actions
    email

  • display closed at time when case is closed
    view-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

@stephmilovic stephmilovic changed the title Case closed at user email [SIEM] [Cases] Case closed and add user email Mar 18, 2020
@stephmilovic stephmilovic added release_note:skip Skip the PR/issue when compiling release notes Team:SIEM v7.7.0 v8.0.0 labels Mar 18, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@stephmilovic stephmilovic marked this pull request as ready for review March 18, 2020 00:26
@cnasikas cnasikas linked an issue Mar 18, 2020 that may be closed by this pull request
6 tasks
closed_by: { email, full_name, username },
};
} else if (updateCaseAttributes.status && updateCaseAttributes.status === 'open') {
closedInfo = {
Copy link
Member

@cnasikas cnasikas Mar 18, 2020

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?

Copy link
Contributor Author

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??

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To do what? :)

Copy link
Contributor Author

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) {
Copy link
Member

@cnasikas cnasikas Mar 19, 2020

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)

Copy link
Contributor Author

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

Copy link
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@stephmilovic stephmilovic merged commit d5ed93e into elastic:master Mar 19, 2020
@stephmilovic stephmilovic deleted the case-closed-at-user-email branch March 19, 2020 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:SIEM v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants