From 548f81066174b022de8c07f1a89f53c605526327 Mon Sep 17 00:00:00 2001 From: Noah Jackson Date: Wed, 23 Aug 2023 02:32:17 -0700 Subject: [PATCH] use ProfilingLink instead of tags (#37840) In addition to removing unnecessary code duplication, these changes fix the links to the stack trace and flame graph pages when behind a reverse proxy. Previously the links used in NodeRow.tsx included a leading / that is not included in other links and does not work when hosting the Ray dashboard behind a reverse proxy. --- dashboard/client/src/pages/node/NodeRow.tsx | 23 ++++++--------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/dashboard/client/src/pages/node/NodeRow.tsx b/dashboard/client/src/pages/node/NodeRow.tsx index 1f9239925e92..3f5540bbc005 100644 --- a/dashboard/client/src/pages/node/NodeRow.tsx +++ b/dashboard/client/src/pages/node/NodeRow.tsx @@ -15,6 +15,10 @@ import useSWR from "swr"; import { CodeDialogButtonWithPreview } from "../../common/CodeDialogButton"; import { API_REFRESH_INTERVAL_MS } from "../../common/constants"; import { NodeLink } from "../../common/links"; +import { + CpuProfilingLink, + CpuStackTraceLink, +} from "../../common/ProfilingLink"; import rowStyles from "../../common/RowStyles"; import PercentageBar from "../../components/PercentageBar"; import { StatusChip } from "../../components/StatusChip"; @@ -254,23 +258,8 @@ export const WorkerRow = ({ node, worker }: WorkerRowProps) => { Logs
-
- Stack Trace - -
- - CPU Flame Graph - + +