Skip to content

Conversation

@christineweng
Copy link
Contributor

@christineweng christineweng commented Sep 17, 2025

Summary

Dependency: #233027 to be merged first.

This PR enables auto-extract toggle in alerts table when user adds alerts to a case. This applies to row actions and bulk actions.

To enable the feature in security update the case configuration to extractObservables: true,

image

Checklist

  • Unit or functional tests were updated or added to match the most common scenarios
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines
  • Review the backport guidelines and apply applicable backport:* labels.
@christineweng christineweng self-assigned this Sep 17, 2025
@christineweng christineweng added backport:skip This PR does not require backporting release_note:feature Makes this part of the condensed release notes Team:Cases Security Solution Cases team 9.2 candidate labels Sep 17, 2025
@christineweng christineweng force-pushed the cases-extract-observables-in-alert-table branch from e50319f to ced2f44 Compare September 19, 2025 17:02
@christineweng christineweng force-pushed the cases-extract-observables-in-alert-table branch 2 times, most recently from 2217a04 to 760557f Compare September 25, 2025 18:24
@christineweng christineweng mentioned this pull request Sep 26, 2025
10 tasks
@christineweng christineweng force-pushed the cases-extract-observables-in-alert-table branch 3 times, most recently from 6bc1dfb to 0a8b410 Compare September 26, 2025 20:20
@michaelolo24 michaelolo24 force-pushed the cases-extract-observables-in-alert-table branch from ab6391b to 2f88eea Compare September 30, 2025 15:17
@michaelolo24 michaelolo24 marked this pull request as ready for review September 30, 2025 15:17
@michaelolo24 michaelolo24 requested review from a team as code owners September 30, 2025 15:17
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-cases (Team:Cases)

Copy link
Contributor

@PhilippeOberti PhilippeOberti left a comment

Choose a reason for hiding this comment

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

Code review only for the files impacting the @elastic/security-threat-hunting-investigations team.

This code really motivates me to cleanup those ecsData and all objects. We're manipulating these so many times over and over again, we need to find a more performant approach. I know it's a huge effort and will impact so many places within Security Solution...
One day! 😆

@elasticmachine
Copy link
Contributor

elasticmachine commented Sep 30, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

‼️ ERROR: no builds found for mergeBase sha [48feb9e]

History

cc @christineweng

): TimelineItem[] => {
return Array.from(rowSelection.keys()).map((rowIndex: number) => {
const alert = alerts[rowIndex];
const data = Object.entries(alert).map(([key, value]) => ({
Copy link
Member

@umbopepato umbopepato Oct 1, 2025

Choose a reason for hiding this comment

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

nit: how about adding the fallback values for the well known fields here instead of iterating on the fields array each time?

Suggested change
const data = Object.entries(alert).map(([key, value]) => ({
const data = Object.entries({
[ALERT_CASE_IDS]: [],
[ALERT_WORKFLOW_TAGS]: [],
[ALERT_WORKFLOW_ASSIGNEE_IDS]: [],
...alert,
}).map(([key, value]) => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

Apologies, missed this comment before I merged. Made a tiny pr to fix here: #237307

Copy link
Member

@umbopepato umbopepato left a comment

Choose a reason for hiding this comment

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

RO code changes LGTM! Thanks for changing the alert format locally 🙏 🚀

@michaelolo24 michaelolo24 force-pushed the cases-extract-observables-in-alert-table branch from 2f88eea to a0825e1 Compare October 1, 2025 12:00
@michaelolo24 michaelolo24 enabled auto-merge (squash) October 1, 2025 12:00
@michaelolo24 michaelolo24 merged commit c32878c into elastic:main Oct 1, 2025
12 checks passed
michaelolo24 added a commit that referenced this pull request Oct 6, 2025
@jmikell821 jmikell821 added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Oct 6, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
## Summary Dependency: elastic#233027 to be merged first. This PR enables auto-extract toggle in alerts table when user adds alerts to a case. This applies to row actions and bulk actions. To enable the feature in security update the [case configuration](https://github.com/elastic/kibana/blob/50299491246af6cc8055a1ff8a975ce82b114495/x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_table/index.tsx#L143) to `extractObservables: true,` <img width="1490" height="730" alt="image" src="https://github.com/user-attachments/assets/1c31cfee-a086-490b-b2d8-69306eb3ae4c" /> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

9.2 candidate backport:skip This PR does not require backporting release_note:feature Makes this part of the condensed release notes Team:Cases Security Solution Cases team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v9.2.0

8 participants