Skip to content

Commit

Permalink
Merge pull request #126259 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-24.1-126157

release-24.1: ui: fix database index usage page error
  • Loading branch information
kyle-a-wong authored Jun 28, 2024
2 parents b5adec6 + 66b12e4 commit 7f5f3d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ui/workspaces/cluster-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cockroachlabs/cluster-ui",
"version": "24.1.1",
"version": "24.1.2",
"description": "Cluster UI is a library of large features shared between CockroachDB and CockroachCloud",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions pkg/ui/workspaces/cluster-ui/src/api/statementsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ type Statistics = {
rowsWritten: NumericStat;
runLat: NumericStat;
svcLat: NumericStat;
regions: string[];
};

type ExecStats = {
Expand Down Expand Up @@ -259,6 +260,7 @@ export function convertStatementRawFormatToAggregatedStatistics(
run_lat: s.statistics.statistics.runLat,
service_lat: s.statistics.statistics.svcLat,
sql_type: s.metadata.stmtType,
regions: s.statistics.statistics.regions,
},
};
}
2 changes: 2 additions & 0 deletions pkg/ui/workspaces/cluster-ui/src/api/testUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ const baseStmt: Partial<Stmt> = {
plan_gists: ["AgFUBAAgAAAABgI="],
indexes: ["123@456"],
index_recommendations: [],
regions: ["gcp-us-east1", "gcp-us-west1"],
nodes: [Long.fromNumber(1)],
},
};

Expand Down

0 comments on commit 7f5f3d7

Please sign in to comment.