From 96cf5969e9807d13a598f6bc26f4e4b3d61621d3 Mon Sep 17 00:00:00 2001 From: Nathan VanBenschoten Date: Tue, 25 Jun 2024 12:00:32 -0400 Subject: [PATCH] ui: add MinExpiration field to range debug page Informs #125235. This commit adds the new MinExpiration field to the range debug page. Release note: None --- .../src/views/reports/containers/range/rangeTable.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/ui/workspaces/db-console/src/views/reports/containers/range/rangeTable.tsx b/pkg/ui/workspaces/db-console/src/views/reports/containers/range/rangeTable.tsx index 6d12c6aefa42..bf17c4cd3737 100644 --- a/pkg/ui/workspaces/db-console/src/views/reports/containers/range/rangeTable.tsx +++ b/pkg/ui/workspaces/db-console/src/views/reports/containers/range/rangeTable.tsx @@ -86,6 +86,11 @@ const rangeTableDisplayList: RangeTableRow[] = [ display: "Lease Expiration", compareToLeader: true, }, + { + variable: "leaseMinExpiration", + display: "Lease Minimum Expiration", + compareToLeader: true, + }, { variable: "leaseAppliedIndex", display: "Lease Applied Index", @@ -750,6 +755,9 @@ export default class RangeTable extends React.Component { leaseExpiration: epoch ? rangeTableEmptyContent : this.contentTimestamp(lease.expiration, now), + leaseMinExpiration: epoch + ? this.contentTimestamp(lease.min_expiration, now) + : rangeTableEmptyContent, leaseAppliedIndex: this.createContent( FixLong(info.state.state.lease_applied_index), ),