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

[Security Solution][Alert details] - bring back last alert status change to flyout #205224

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

PhilippeOberti
Copy link
Contributor

Summary

Over a year ago, this PR added some information to the alert details flyout, to show when an alert's status (closed, open or aknowledged) had been modified last and by which user.
Shortly after, this follow up PR removed the UI from the alert details flyout, as the information wasn't extremely important and was taking some valuable vertical space, pushing down below the Highlighted fields section, that users were finding very important.

A few months later, we added the ability to persist which of the top sections (About, Investigation, Visualizations, Insights and Response) were collapsed or expanded. That way the user wouldn't have to always collapse or expand sections they would often don't need.

This PR brings back the alert's last status changes to the About section, as the vertical space is no longer a big issues, because users can now collapse the entire About section.

If data is not present, the last change UI is not shown

Screenshot 2024-12-27 at 3 46 14 PM

If the correct data is shown:

Screenshot 2024-12-27 at 3 50 12 PM

How to test

  • have a few alerts in the alerts table
  • open the alert details flyout for one alert and change the status (button in the header)
  • verify that the last status change section is shown in the About section

Checklist

@PhilippeOberti PhilippeOberti added v9.0.0 release_note:feature Makes this part of the condensed release notes Team:Threat Hunting:Investigations Security Solution Investigations Team backport:version Backport to applied version labels v8.18.0 labels Dec 27, 2024
@PhilippeOberti PhilippeOberti requested a review from a team as a code owner December 27, 2024 22:37
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations)

Copy link
Contributor

@nastasha-solomon nastasha-solomon left a comment

Choose a reason for hiding this comment

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

Changes look good - thanks!

<FormattedMessage
id="xpack.securitySolution.flyout.right.about.status.statusHistoryDetails"
defaultMessage="Alert status updated by {user} on {date}"
values={{
Copy link
Contributor

Choose a reason for hiding this comment

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

nit...since there isn't a whole nested tree of components here, but probably best to memoize this entire object or pull out the new Date(statusUpdatedAt) so it's not calculated in the render

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, these are annoying because I have to do the memoization before the return null so I have to do the check there as well... done here!

@PhilippeOberti PhilippeOberti force-pushed the alert-details-latest-status-change branch from 1a99cc5 to 6df2909 Compare January 2, 2025 22:28
@PhilippeOberti PhilippeOberti force-pushed the alert-details-latest-status-change branch from 6df2909 to 5e8c28c Compare January 3, 2025 17:03
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 6486 6487 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 22.2MB 22.2MB +4.1KB

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:feature Makes this part of the condensed release notes Team:Threat Hunting:Investigations Security Solution Investigations Team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants