elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.67k stars 8.23k forks source link

[Security Solution] Remove dependence on StatefulEventContext #201126

Open logeekal opened 1 day ago

logeekal commented 1 day ago

Summary

Today Every table in Security Solution is wrapped in StatefulEventContext as it helps in communication the scope of Table to nested components.

Below is the structure of

// x-pack/plugins/security_solution/public/common/components/events_viewer/stateful_event_context.ts

export interface StatefulEventContextType {
  tabType: string | undefined;
  timelineID: string;
  enableHostDetailsFlyout: boolean;
  enableIpDetailsFlyout: boolean;
  onRuleChange?: () => void;

We can see that it contains a lot of unrelated data. I think this should be reviewed or removed from security solution.

elasticmachine commented 1 day ago

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