From 4293788ce08920288c016e1b6e7497621c85a70c Mon Sep 17 00:00:00 2001 From: Karl Godard Date: Thu, 18 Nov 2021 08:56:49 -0800 Subject: [PATCH] cleanup --- .../session_view/public/components/ProcessTree/index.tsx | 2 +- .../session_view/server/routes/process_events_route.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/session_view/public/components/ProcessTree/index.tsx b/x-pack/plugins/session_view/public/components/ProcessTree/index.tsx index b619d2f0c76c6..bf1fe3dd54742 100644 --- a/x-pack/plugins/session_view/public/components/ProcessTree/index.tsx +++ b/x-pack/plugins/session_view/public/components/ProcessTree/index.tsx @@ -107,7 +107,7 @@ export const ProcessTree = ({ const isVisible = eTop >= cTop && eBottom <= cBottom; if (!isVisible) { - // processEl.scrollIntoView(); + processEl.scrollIntoView(); } } } diff --git a/x-pack/plugins/session_view/server/routes/process_events_route.ts b/x-pack/plugins/session_view/server/routes/process_events_route.ts index bbd68defcd967..5d53ebf67d096 100644 --- a/x-pack/plugins/session_view/server/routes/process_events_route.ts +++ b/x-pack/plugins/session_view/server/routes/process_events_route.ts @@ -21,6 +21,12 @@ export const registerProcessEventsRoute = (router: IRouter) => { }, async (context, request, response) => { const client = context.core.elasticsearch.client.asCurrentUser; + + // TODO: would be good to figure out how to add securitySolution as a dep + // and make use of this way of getting the siem-signals index, instead of + // hardcoding it. + // const siemClient = context.securitySolution.getAppClient(); + // const alertsIndex = siemClient.getSignalsIndex(), const { sessionEntityId } = request.query;