From 25f34b2dafbdb04168693de53e2ce64f88e3a92c Mon Sep 17 00:00:00 2001 From: Xin Hao Zhang Date: Tue, 21 Mar 2023 16:33:11 -0400 Subject: [PATCH] ui: rename `% Of All Run Time` sort option This commit renames the sort option mentioned above to `% Of All Runtime`. Epic: none Release note: None --- .../cluster-ui/src/statementDetails/statementDetails.tsx | 4 +--- pkg/ui/workspaces/cluster-ui/src/util/sqlActivityConstants.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/ui/workspaces/cluster-ui/src/statementDetails/statementDetails.tsx b/pkg/ui/workspaces/cluster-ui/src/statementDetails/statementDetails.tsx index 46de20dbd8cc..d4a27b9b7ee6 100644 --- a/pkg/ui/workspaces/cluster-ui/src/statementDetails/statementDetails.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/statementDetails/statementDetails.tsx @@ -277,9 +277,7 @@ export class StatementDetails extends React.Component< }; componentDidMount(): void { - if (!this.props.statementDetails) { - this.refreshStatementDetails(); - } + this.refreshStatementDetails(); window.addEventListener("resize", this.handleResize); this.handleResize(); diff --git a/pkg/ui/workspaces/cluster-ui/src/util/sqlActivityConstants.ts b/pkg/ui/workspaces/cluster-ui/src/util/sqlActivityConstants.ts index 72d90c670579..2bd6d353eee5 100644 --- a/pkg/ui/workspaces/cluster-ui/src/util/sqlActivityConstants.ts +++ b/pkg/ui/workspaces/cluster-ui/src/util/sqlActivityConstants.ts @@ -31,7 +31,7 @@ export function getSortLabel(sort: SqlStatsSortType): string { case SqlStatsSortOptions.CONTENTION_TIME: return "Contention Time"; case SqlStatsSortOptions.PCT_RUNTIME: - return "% Of All Run Time"; + return "% Of All Runtime"; default: return ""; }