Skip to content

Commit 68c3972

Browse files
authored
feat: remove tablets column from databases table (#1121)
1 parent d0efbb1 commit 68c3972

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

src/containers/Tenants/Tenants.tsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {ProblemFilter} from '../../components/ProblemFilter';
1313
import {ResizeableDataTable} from '../../components/ResizeableDataTable/ResizeableDataTable';
1414
import {Search} from '../../components/Search';
1515
import {TableWithControlsLayout} from '../../components/TableWithControlsLayout/TableWithControlsLayout';
16-
import {TabletsStatistic} from '../../components/TabletsStatistic';
1716
import {clusterName} from '../../store';
1817
import {
1918
ProblemFilterValues,
@@ -222,27 +221,6 @@ export const Tenants = ({additionalTenantsProps}: TenantsProps) => {
222221
align: DataTable.LEFT,
223222
render: ({row}) => <PoolsGraph pools={row.PoolStats} />,
224223
},
225-
{
226-
name: 'Tablets',
227-
header: 'Tablets States',
228-
sortable: false,
229-
width: 500,
230-
resizeMinWidth: 500,
231-
render: ({row}) => {
232-
const backend = getTenantBackend(row);
233-
234-
return row.Tablets ? (
235-
<TabletsStatistic
236-
path={row.Name}
237-
tablets={row.Tablets}
238-
nodeIds={row.NodeIds || []}
239-
backend={backend}
240-
/>
241-
) : (
242-
'—'
243-
);
244-
},
245-
},
246224
];
247225

248226
if (filteredTenants.length === 0 && problemFilter !== ProblemFilterValues.ALL) {

src/services/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
121121
return this.get<TTenantInfo>(
122122
this.getPath('/viewer/json/tenantinfo'),
123123
{
124-
tablets: 1,
124+
tablets: 0,
125125
storage: 1,
126126
cluster_name: clusterName,
127127
},

0 commit comments

Comments
 (0)