ydb-embedded-ui 6.27.0 → 6.28.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +201 -21
- package/dist/components/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/EntityStatus/EntityStatus.d.ts +1 -2
- package/dist/components/EntityStatus/EntityStatus.js +5 -3
- package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
- package/dist/components/EntityStatus/EntityStatus.scss +24 -2
- package/dist/components/HoverPopup/HoverPopup.d.ts +4 -3
- package/dist/components/HoverPopup/HoverPopup.js +2 -2
- package/dist/components/HoverPopup/HoverPopup.js.map +1 -1
- package/dist/components/LoaderWrapper/LoaderWrapper.d.ts +1 -1
- package/dist/components/MonitoringButton/MonitoringButton.d.ts +1 -3
- package/dist/components/MonitoringButton/MonitoringButton.js +2 -5
- package/dist/components/MonitoringButton/MonitoringButton.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +1 -3
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.js +3 -3
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +16 -2
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/StatusIcon/StatusIcon.scss +1 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +4 -4
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/TabletNameWrapper/TabletNameWrapper.d.ts +6 -0
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js +18 -0
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js.map +1 -0
- package/dist/components/TabletNameWrapper/i18n/en.json +4 -0
- package/dist/components/TabletNameWrapper/i18n/index.d.ts +2 -0
- package/dist/components/TabletNameWrapper/i18n/index.js +5 -0
- package/dist/components/TabletNameWrapper/i18n/index.js.map +1 -0
- package/dist/components/TenantNameWrapper/TenantNameWrapper.d.ts +8 -0
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js +34 -0
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -0
- package/dist/components/TenantNameWrapper/i18n/en.json +5 -0
- package/dist/components/TenantNameWrapper/i18n/index.d.ts +2 -0
- package/dist/components/TenantNameWrapper/i18n/index.js +5 -0
- package/dist/components/TenantNameWrapper/i18n/index.js.map +1 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.d.ts +2 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js +27 -5
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js.map +1 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.scss +7 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/en.json +5 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.d.ts +2 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.js +5 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.js.map +1 -0
- package/dist/components/VDiskInfo/VDiskInfo.js +5 -4
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.js +42 -5
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/nodesColumns/columns.js +6 -6
- package/dist/containers/App/App.scss +2 -4
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js +1 -3
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js.map +1 -1
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +1 -3
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +2 -2
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +6 -13
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.d.ts +2 -0
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js +4 -0
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js.map +1 -1
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.scss +6 -0
- package/dist/containers/Clusters/columns.js +3 -3
- package/dist/containers/Node/NodeStructure/Pdisk.js +4 -4
- package/dist/containers/Node/NodeStructure/Pdisk.js.map +1 -1
- package/dist/containers/Operations/Operations.scss +5 -0
- package/dist/containers/Operations/OperationsControls.d.ts +1 -0
- package/dist/containers/Operations/OperationsControls.js +2 -1
- package/dist/containers/Operations/OperationsControls.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +4 -4
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.js +11 -5
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.scss +0 -9
- package/dist/containers/Storage/Storage.js +1 -0
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/columns.js +3 -3
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +3 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tablets/TabletsTable.js +2 -8
- package/dist/containers/Tablets/TabletsTable.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +9 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +9 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +8 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +3 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +10 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +2 -6
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +1 -1
- package/dist/containers/Tenants/Tenants.js +2 -24
- package/dist/containers/Tenants/Tenants.js.map +1 -1
- package/dist/containers/UserSettings/UserSettings.js +2 -2
- package/dist/containers/UserSettings/UserSettings.js.map +1 -1
- package/dist/containers/UserSettings/settings.d.ts +1 -0
- package/dist/containers/UserSettings/settings.js +3 -0
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/Versions/NodesTable/NodesTable.js +2 -2
- package/dist/services/api.js +2 -1
- package/dist/services/api.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.js +6 -4
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/types/additionalProps.d.ts +1 -1
- package/dist/types/api/cluster.d.ts +1 -0
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/types/api/storage.d.ts +5 -0
- package/dist/utils/tableUtils/getRequiredDataFields.js +1 -1
- package/dist/utils/tableUtils/getRequiredDataFields.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/MonitoringButton/MonitoringButton.scss +0 -11
@@ -2,19 +2,17 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ArrowsRotateRight } from '@gravity-ui/icons';
|
3
3
|
import { Icon, Text } from '@gravity-ui/uikit';
|
4
4
|
import { ButtonWithConfirmDialog } from '../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
|
5
|
-
import { DeveloperUILinkButton } from '../../components/DeveloperUILinkButton/DeveloperUILinkButton';
|
6
5
|
import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
|
7
6
|
import { InternalLink } from '../../components/InternalLink';
|
8
7
|
import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable';
|
9
8
|
import { TableSkeleton } from '../../components/TableSkeleton/TableSkeleton';
|
9
|
+
import { TabletNameWrapper } from '../../components/TabletNameWrapper/TabletNameWrapper';
|
10
10
|
import { TabletState } from '../../components/TabletState/TabletState';
|
11
|
-
import { getTabletPagePath } from '../../routes';
|
12
11
|
import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
|
13
12
|
import { tabletApi } from '../../store/reducers/tablet';
|
14
13
|
import { ETabletState } from '../../types/api/tablet';
|
15
14
|
import { DEFAULT_TABLE_SETTINGS, EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
|
16
15
|
import { calcUptime } from '../../utils/dataFormatters/dataFormatters';
|
17
|
-
import { createTabletDeveloperUIHref } from '../../utils/developerUI/developerUI';
|
18
16
|
import { useTypedSelector } from '../../utils/hooks';
|
19
17
|
import { getDefaultNodePath } from '../Node/NodePages';
|
20
18
|
import i18n from './i18n';
|
@@ -38,14 +36,10 @@ function getColumns({ database }) {
|
|
38
36
|
return i18n('Tablet');
|
39
37
|
},
|
40
38
|
render: ({ row }) => {
|
41
|
-
var _a;
|
42
39
|
if (!row.TabletId) {
|
43
40
|
return EMPTY_DATA_PLACEHOLDER;
|
44
41
|
}
|
45
|
-
|
46
|
-
tenantName: database,
|
47
|
-
});
|
48
|
-
return (_jsx(EntityStatus, { name: (_a = row.TabletId) === null || _a === void 0 ? void 0 : _a.toString(), path: tabletPath, hasClipboardButton: true, showStatus: false, additionalControls: _jsx(DeveloperUILinkButton, { href: createTabletDeveloperUIHref(row.TabletId) }) }));
|
42
|
+
return _jsx(TabletNameWrapper, { tabletId: row.TabletId, database: database });
|
49
43
|
},
|
50
44
|
},
|
51
45
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabletsTable.js","sourceRoot":"","sources":["../../../src/containers/Tablets/TabletsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"TabletsTable.js","sourceRoot":"","sources":["../../../src/containers/Tablets/TabletsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAC,MAAM,sDAAsD,CAAC;AACvF,OAAO,EAAC,WAAW,EAAC,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO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AI,CAAC,2BAA2B,CAAC,EACjD,eAAe,EAAE,0BAA0B,YAE3C,KAAC,IAAI,IAAC,IAAI,EAAE,iBAAiB,GAAI,GACX,CAC7B,CAAC;AACN,CAAC;AAWD,MAAM,UAAU,YAAY,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAoB;IACnF,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;IACD,OAAO,CACH,KAAC,mBAAmB,IAChB,gBAAgB,EAAE,SAAS,EAC3B,OAAO,EAAE,UAAU,CAAC,EAAC,QAAQ,EAAC,CAAC,EAC/B,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,sBAAsB,EAChC,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,GACzC,CACL,CAAC;AACN,CAAC"}
|
@@ -2,7 +2,8 @@ import type { Column } from '@gravity-ui/react-data-table';
|
|
2
2
|
import type { GetNodesColumnsParams } from '../../../../../components/nodesColumns/types';
|
3
3
|
import type { NodesPreparedEntity } from '../../../../../store/reducers/nodes/types';
|
4
4
|
import type { AdditionalNodesProps } from '../../../../../types/additionalProps';
|
5
|
-
|
5
|
+
import type { NodesRequiredField } from '../../../../../types/api/nodes';
|
6
|
+
export declare function getTopNodesByCpuColumns(params: GetNodesColumnsParams): [Column<NodesPreparedEntity>[], NodesRequiredField[]];
|
6
7
|
interface TopNodesByCpuProps {
|
7
8
|
tenantName: string;
|
8
9
|
additionalNodesProps?: AdditionalNodesProps;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { getCpuColumn, getHostColumn, getNodeIdColumn, } from '../../../../../components/nodesColumns/columns';
|
3
|
-
import { NODES_COLUMNS_WIDTH_LS_KEY } from '../../../../../components/nodesColumns/constants';
|
3
|
+
import { NODES_COLUMNS_TO_DATA_FIELDS, NODES_COLUMNS_WIDTH_LS_KEY, } from '../../../../../components/nodesColumns/constants';
|
4
4
|
import { nodesApi } from '../../../../../store/reducers/nodes/nodes';
|
5
5
|
import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants';
|
6
6
|
import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../../utils/constants';
|
7
7
|
import { useAutoRefreshInterval, useSearchQuery } from '../../../../../utils/hooks';
|
8
|
+
import { getRequiredDataFields } from '../../../../../utils/tableUtils/getRequiredDataFields';
|
8
9
|
import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
|
9
10
|
import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
|
10
11
|
import { getSectionTitle } from '../getSectionTitle';
|
@@ -16,15 +17,18 @@ export function getTopNodesByCpuColumns(params) {
|
|
16
17
|
getNodeIdColumn(),
|
17
18
|
hostColumn,
|
18
19
|
];
|
19
|
-
|
20
|
+
const preparedColumns = columns.map((column) => ({
|
20
21
|
...column,
|
21
22
|
sortable: false,
|
22
23
|
}));
|
24
|
+
const columnsIds = preparedColumns.map((column) => column.name);
|
25
|
+
const dataFieldsRequired = getRequiredDataFields(columnsIds, NODES_COLUMNS_TO_DATA_FIELDS);
|
26
|
+
return [preparedColumns, dataFieldsRequired];
|
23
27
|
}
|
24
28
|
export function TopNodesByCpu({ tenantName, additionalNodesProps }) {
|
25
29
|
const query = useSearchQuery();
|
26
30
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
27
|
-
const columns = getTopNodesByCpuColumns({
|
31
|
+
const [columns, fieldsRequired] = getTopNodesByCpuColumns({
|
28
32
|
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
29
33
|
database: tenantName,
|
30
34
|
});
|
@@ -33,6 +37,8 @@ export function TopNodesByCpu({ tenantName, additionalNodesProps }) {
|
|
33
37
|
type: 'any',
|
34
38
|
sort: '-CPU',
|
35
39
|
limit: TENANT_OVERVIEW_TABLES_LIMIT,
|
40
|
+
tablets: false,
|
41
|
+
fieldsRequired,
|
36
42
|
}, { pollingInterval: autoRefreshInterval });
|
37
43
|
const loading = isFetching && currentData === undefined;
|
38
44
|
const topNodes = (currentData === null || currentData === void 0 ? void 0 : currentData.Nodes) || [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopNodesByCpu.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,YAAY,EACZ,aAAa,EACb,eAAe,GAClB,MAAM,gDAAgD,CAAC;AACxD,OAAO,
|
1
|
+
{"version":3,"file":"TopNodesByCpu.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,YAAY,EACZ,aAAa,EACb,eAAe,GAClB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACH,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAAC,QAAQ,EAAC,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAG3F,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAC,qBAAqB,EAAC,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,MAAM,UAAU,uBAAuB,CACnC,MAA6B;IAE7B,MAAM,UAAU,GAAG,EAAC,GAAG,aAAa,CAAsB,MAAM,CAAC,EAA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AAX,WAAW,uBAAX,WAAW,CAAE,KAAK,KAAI,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,eAAe,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC;QACrB,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC;QAC/B,IAAI,EAAE,aAAa,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,KAAK;SACvE,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,0BAA0B,EAC7C,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,CAAC,sBAAsB,CAAC,GAChD,CACL,CAAC;AACN,CAAC"}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { getHostColumn, getLoadColumn, getNodeIdColumn, getVersionColumn, } from '../../../../../components/nodesColumns/columns';
|
3
|
-
import { NODES_COLUMNS_WIDTH_LS_KEY } from '../../../../../components/nodesColumns/constants';
|
3
|
+
import { NODES_COLUMNS_TO_DATA_FIELDS, NODES_COLUMNS_WIDTH_LS_KEY, } from '../../../../../components/nodesColumns/constants';
|
4
4
|
import { nodesApi } from '../../../../../store/reducers/nodes/nodes';
|
5
5
|
import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants';
|
6
6
|
import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../../utils/constants';
|
7
7
|
import { useAutoRefreshInterval, useSearchQuery } from '../../../../../utils/hooks';
|
8
|
+
import { getRequiredDataFields } from '../../../../../utils/tableUtils/getRequiredDataFields';
|
8
9
|
import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
|
9
10
|
import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
|
10
11
|
import { getSectionTitle } from '../getSectionTitle';
|
@@ -20,15 +21,18 @@ function getTopNodesByLoadColumns(params) {
|
|
20
21
|
hostColumn,
|
21
22
|
getVersionColumn(),
|
22
23
|
];
|
23
|
-
|
24
|
+
const preparedColumns = columns.map((column) => ({
|
24
25
|
...column,
|
25
26
|
sortable: false,
|
26
27
|
}));
|
28
|
+
const columnsIds = preparedColumns.map((column) => column.name);
|
29
|
+
const dataFieldsRequired = getRequiredDataFields(columnsIds, NODES_COLUMNS_TO_DATA_FIELDS);
|
30
|
+
return [preparedColumns, dataFieldsRequired];
|
27
31
|
}
|
28
32
|
export function TopNodesByLoad({ tenantName, additionalNodesProps }) {
|
29
33
|
const query = useSearchQuery();
|
30
34
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
31
|
-
const columns = getTopNodesByLoadColumns({
|
35
|
+
const [columns, fieldsRequired] = getTopNodesByLoadColumns({
|
32
36
|
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
33
37
|
database: tenantName,
|
34
38
|
});
|
@@ -37,6 +41,8 @@ export function TopNodesByLoad({ tenantName, additionalNodesProps }) {
|
|
37
41
|
type: 'any',
|
38
42
|
sort: '-LoadAverage',
|
39
43
|
limit: TENANT_OVERVIEW_TABLES_LIMIT,
|
44
|
+
tablets: false,
|
45
|
+
fieldsRequired,
|
40
46
|
}, { pollingInterval: autoRefreshInterval });
|
41
47
|
const loading = isFetching && currentData === undefined;
|
42
48
|
const topNodes = (currentData === null || currentData === void 0 ? void 0 : currentData.Nodes) || [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopNodesByLoad.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,aAAa,EACb,aAAa,EACb,eAAe,EACf,gBAAgB,GACnB,MAAM,gDAAgD,CAAC;AACxD,OAAO,
|
1
|
+
{"version":3,"file":"TopNodesByLoad.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,aAAa,EACb,aAAa,EACb,eAAe,EACf,gBAAgB,GACnB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACH,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAAC,QAAQ,EAAC,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAG3F,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAC,qBAAqB,EAAC,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,SAAS,wBAAwB,CAC7B,MAA6B;IAE7B,MAAM,UAAU,GAAG;QACf,GAAG,aAAa,CAAsB,MAAM,CAAC;QAC7C,KAAK,EAAE,SAAS;KACnB,CAAC;IAEF,MAAM,OAAO,GAAG;QACZ,aAAa,EAAuB;QACpC,eAAe,EAAuB;QACtC,UAAU;QACV,gBAAgB,EAAuB;KAC1C,CAAC;IAEF,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC7C,GAAG,MAAM;QACT,QAAQ,EAAE,KAAK;KAClB,CAAC,CAAC,CAAC;IAEJ,MAAM,UAAU,GAAG,eAAe,CAAC,GAAG,CAAC,CA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H,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,0BAA0B,EAC7C,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,CAAC,sBAAsB,CAAC,GAChD,CACL,CAAC;AACN,CAAC"}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { getHostColumn, getLoadColumn, getMemoryColumn, getNodeIdColumn, getSessionsColumn, getSharedCacheUsageColumn, getTabletsColumn, getUptimeColumn, } from '../../../../../components/nodesColumns/columns';
|
3
|
-
import { NODES_COLUMNS_WIDTH_LS_KEY } from '../../../../../components/nodesColumns/constants';
|
3
|
+
import { NODES_COLUMNS_TO_DATA_FIELDS, NODES_COLUMNS_WIDTH_LS_KEY, } from '../../../../../components/nodesColumns/constants';
|
4
4
|
import { nodesApi } from '../../../../../store/reducers/nodes/nodes';
|
5
5
|
import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants';
|
6
6
|
import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../../utils/constants';
|
7
7
|
import { useAutoRefreshInterval, useSearchQuery } from '../../../../../utils/hooks';
|
8
|
+
import { getRequiredDataFields } from '../../../../../utils/tableUtils/getRequiredDataFields';
|
8
9
|
import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
|
9
10
|
import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
|
10
11
|
import { getSectionTitle } from '../getSectionTitle';
|
@@ -24,15 +25,18 @@ function getTopNodesByMemoryColumns(params) {
|
|
24
25
|
getSessionsColumn(),
|
25
26
|
getTabletsColumn(params),
|
26
27
|
];
|
27
|
-
|
28
|
+
const preparedColumns = columns.map((column) => ({
|
28
29
|
...column,
|
29
30
|
sortable: false,
|
30
31
|
}));
|
32
|
+
const columnsIds = preparedColumns.map((column) => column.name);
|
33
|
+
const dataFieldsRequired = getRequiredDataFields(columnsIds, NODES_COLUMNS_TO_DATA_FIELDS);
|
34
|
+
return [preparedColumns, dataFieldsRequired];
|
31
35
|
}
|
32
36
|
export function TopNodesByMemory({ tenantName, additionalNodesProps }) {
|
33
37
|
const query = useSearchQuery();
|
34
38
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
35
|
-
const columns = getTopNodesByMemoryColumns({
|
39
|
+
const [columns, fieldsRequired] = getTopNodesByMemoryColumns({
|
36
40
|
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
37
41
|
database: tenantName,
|
38
42
|
});
|
@@ -42,6 +46,7 @@ export function TopNodesByMemory({ tenantName, additionalNodesProps }) {
|
|
42
46
|
tablets: true,
|
43
47
|
sort: '-Memory',
|
44
48
|
limit: TENANT_OVERVIEW_TABLES_LIMIT,
|
49
|
+
fieldsRequired,
|
45
50
|
}, { pollingInterval: autoRefreshInterval });
|
46
51
|
const loading = isFetching && currentData === undefined;
|
47
52
|
const topNodes = (currentData === null || currentData === void 0 ? void 0 : currentData.Nodes) || [];
|
package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopNodesByMemory.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,aAAa,EACb,aAAa,EACb,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,eAAe,GAClB,MAAM,gDAAgD,CAAC;AACxD,OAAO,
|
1
|
+
{"version":3,"file":"TopNodesByMemory.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,aAAa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EH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,0BAA0B,EAC7C,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,CAAC,sBAAsB,CAAC,GAChD,CACL,CAAC;AACN,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { Loader } from '@gravity-ui/uikit';
|
3
3
|
import { EntityStatus } from '../../../../components/EntityStatus/EntityStatus';
|
4
|
+
import { MonitoringButton } from '../../../../components/MonitoringButton/MonitoringButton';
|
4
5
|
import { overviewApi } from '../../../../store/reducers/overview/overview';
|
5
6
|
import { TENANT_METRICS_TABS_IDS } from '../../../../store/reducers/tenant/constants';
|
6
7
|
import { tenantApi } from '../../../../store/reducers/tenant/tenant';
|
@@ -87,6 +88,7 @@ export function TenantOverview({ tenantName, additionalTenantProps, additionalNo
|
|
87
88
|
if (tenantLoading) {
|
88
89
|
return (_jsx("div", { className: b('loader'), children: _jsx(Loader, { size: "m" }) }));
|
89
90
|
}
|
90
|
-
|
91
|
+
const monitoringLink = (_c = additionalTenantProps === null || additionalTenantProps === void 0 ? void 0 : additionalTenantProps.getMonitoringLink) === null || _c === void 0 ? void 0 : _c.call(additionalTenantProps, Name, Type);
|
92
|
+
return (_jsxs("div", { className: b(), children: [_jsxs("div", { className: b('info'), children: [_jsx("div", { className: b('top-label'), children: tenantType }), _jsxs("div", { className: b('top'), children: [renderName(), monitoringLink && _jsx(MonitoringButton, { href: monitoringLink })] }), _jsx(MetricsCards, { poolsCpuStats: poolsStats, memoryStats: memoryStats, blobStorageStats: blobStorageStats, tabletStorageStats: tabletStorageStats, tenantName: tenantName })] }), renderTabContent()] }));
|
91
93
|
}
|
92
94
|
//# sourceMappingURL=TenantOverview.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TenantOverview.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,WAAW,EAAC,MAAM,8CAA8C,CAAC;AACzE,OAAO,EAAC,uBAAuB,EAAC,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAC,SAAS,EAAC,MAAM,0CAA0C,CAAC;AACnE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0CAA0C,CAAC;AAEhF,OAAO,EAAC,oBAAoB,EAAC,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAC,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AAE3D,OAAO,EAAC,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AACvF,OAAO,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAC,CAAC,EAAC,MAAM,SAAS,CAAC;AAE1B,OAAO,uBAAuB,CAAC;AAQ/B,MAAM,UAAU,cAAc,CAAC,EAC3B,UAAU,EACV,qBAAqB,EACrB,oBAAoB,GACF;;IAClB,MAAM,EAAC,UAAU,EAAC,GAAG,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/D,MAAM,CAAC,mBAAmB,CAAC,GAAG,sBAAsB,EA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AU,GAAI,CAAC;YACpD,CAAC;YACD,KAAK,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC;gBACvC,OAAO,KAAC,kBAAkB,IAAC,UAAU,EAAE,UAAU,GAAI,CAAC;YAC1D,CAAC;YACD,OAAO,CAAC,CAAC,CAAC;gBACN,OAAO,KAAC,sBAAsB,IAAC,QAAQ,EAAE,UAAU,GAAI,CAAC;YAC5D,CAAC;QACL,CAAC;IACL,CAAC,CAAC;IAEF,IAAI,aAAa,EAAE,CAAC;QAChB,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,YACvB,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,GAAG,GACjB,CACT,CAAC;IACN,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACf,eAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,cAAK,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,YAAG,UAAU,GAAO,EAClD,eAAK,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,aACnB,UAAU,EAAE,EACZ,
|
1
|
+
{"version":3,"file":"TenantOverview.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,gBAAgB,EAAC,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAC,WAAW,EAAC,MAAM,8CAA8C,CAAC;AACzE,OAAO,EAAC,uBAAuB,EAAC,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAC,SAAS,EAAC,MAAM,0CAA0C,CAAC;AACnE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0CAA0C,CAAC;AAEhF,OAAO,EAAC,oBAAoB,EAAC,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAC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qB,uBAArB,qBAAqB,CAAE,iBAAiB,sEAAG,IAAI,EAAE,IAAI,CAAC,CAAC;IAE9E,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACf,eAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,cAAK,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,YAAG,UAAU,GAAO,EAClD,eAAK,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,aACnB,UAAU,EAAE,EACZ,cAAc,IAAI,KAAC,gBAAgB,IAAC,IAAI,EAAE,cAAc,GAAI,IAC3D,EACN,KAAC,YAAY,IACT,aAAa,EAAE,UAAU,EACzB,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,UAAU,EAAE,UAAU,GACxB,IACA,EACL,gBAAgB,EAAE,IACjB,CACT,CAAC;AACN,CAAC"}
|
@@ -4,24 +4,32 @@ import { storageApi } from '../../../../../store/reducers/storage/storage';
|
|
4
4
|
import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants';
|
5
5
|
import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../../utils/constants';
|
6
6
|
import { useAutoRefreshInterval, useSearchQuery } from '../../../../../utils/hooks';
|
7
|
+
import { getRequiredDataFields } from '../../../../../utils/tableUtils/getRequiredDataFields';
|
7
8
|
import { getStorageTopGroupsColumns } from '../../../../Storage/StorageGroups/columns/columns';
|
8
|
-
import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from '../../../../Storage/StorageGroups/columns/constants';
|
9
|
+
import { GROUPS_COLUMNS_TO_DATA_FIELDS, STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, } from '../../../../Storage/StorageGroups/columns/constants';
|
9
10
|
import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
|
10
11
|
import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
|
11
12
|
import { getSectionTitle } from '../getSectionTitle';
|
12
13
|
import i18n from '../i18n';
|
14
|
+
function getColumns() {
|
15
|
+
const preparedColumns = getStorageTopGroupsColumns();
|
16
|
+
const columnsIds = preparedColumns.map((column) => column.name);
|
17
|
+
const dataFieldsRequired = getRequiredDataFields(columnsIds, GROUPS_COLUMNS_TO_DATA_FIELDS);
|
18
|
+
return [preparedColumns, dataFieldsRequired];
|
19
|
+
}
|
13
20
|
export function TopGroups({ tenant }) {
|
14
21
|
const query = useSearchQuery();
|
15
22
|
const capabilitiesLoaded = useCapabilitiesLoaded();
|
16
23
|
const groupsHandlerAvailable = useStorageGroupsHandlerAvailable();
|
17
24
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
18
|
-
const columns =
|
25
|
+
const [columns, fieldsRequired] = getColumns();
|
19
26
|
const { currentData, isFetching, error } = storageApi.useGetStorageGroupsInfoQuery({
|
20
27
|
tenant,
|
21
28
|
sort: '-Usage',
|
22
29
|
with: 'all',
|
23
30
|
limit: TENANT_OVERVIEW_TABLES_LIMIT,
|
24
31
|
shouldUseGroupsHandler: groupsHandlerAvailable,
|
32
|
+
fieldsRequired,
|
25
33
|
}, {
|
26
34
|
pollingInterval: autoRefreshInterval,
|
27
35
|
skip: !capabilitiesLoaded,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopGroups.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;
|
1
|
+
{"version":3,"file":"TopGroups.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,qBAAqB,EACrB,g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CAAC,GAAG,UAAU,EAAE,CAAC;IAE/C,MAAM,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,EAAC,GAAG,UAAU,CAAC,4BAA4B,CAC5E;QACI,MAAM;QACN,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,4BAA4B;QACnC,sBAAsB,EAAE,sBAAsB;QAC9C,cAAc;KACjB,EACD;QACI,eAAe,EAAE,mBAAmB;QACpC,IAAI,EAAE,CAAC,kBAAkB;KAC5B,CACJ,CAAC;IAEF,MAAM,OAAO,GAAG,UAAU,IAAI,WAAW,KAAK,SAAS,CAAC;IAExD,MAAM,MAAM,GAAG,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,KAAI,EAAE,CAAC;IAEzC,MAAM,KAAK,GAAG,eAAe,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC;QACzB,IAAI,EAAE,aAAa,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,OAAO;SACzE,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,mCAAmC,EACtD,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,IAAI,CAAC,kBAAkB,EACvC,KAAK,EAAE,KAAK,GACd,CACL,CAAC;AACN,CAAC"}
|
@@ -1,14 +1,11 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import DataTable from '@gravity-ui/react-data-table';
|
3
|
-
import { DeveloperUILinkButton } from '../../../../components/DeveloperUILinkButton/DeveloperUILinkButton';
|
4
|
-
import { EntityStatus } from '../../../../components/EntityStatus/EntityStatus';
|
5
3
|
import { InternalLink } from '../../../../components/InternalLink';
|
6
4
|
import { LinkToSchemaObject } from '../../../../components/LinkToSchemaObject/LinkToSchemaObject';
|
5
|
+
import { TabletNameWrapper } from '../../../../components/TabletNameWrapper/TabletNameWrapper';
|
7
6
|
import { UsageLabel } from '../../../../components/UsageLabel/UsageLabel';
|
8
|
-
import { getTabletPagePath } from '../../../../routes';
|
9
7
|
import { getLoadSeverityForShard } from '../../../../store/reducers/tenantOverview/topShards/utils';
|
10
8
|
import { formatNumber, roundToPrecision } from '../../../../utils/dataFormatters/dataFormatters';
|
11
|
-
import { createTabletDeveloperUIHref } from '../../../../utils/developerUI/developerUI';
|
12
9
|
import { getDefaultNodePath } from '../../../Node/NodePages';
|
13
10
|
export const TOP_SHARDS_COLUMNS_WIDTH_LS_KEY = 'topShardsColumnsWidth';
|
14
11
|
const TOP_SHARDS_COLUMNS_IDS = {
|
@@ -64,11 +61,10 @@ const tabletIdColumn = {
|
|
64
61
|
name: TOP_SHARDS_COLUMNS_IDS.TabletId,
|
65
62
|
header: tableColumnsNames[TOP_SHARDS_COLUMNS_IDS.TabletId],
|
66
63
|
render: ({ row }) => {
|
67
|
-
var _a;
|
68
64
|
if (!row.TabletId) {
|
69
65
|
return '–';
|
70
66
|
}
|
71
|
-
return
|
67
|
+
return _jsx(TabletNameWrapper, { tabletId: row.TabletId });
|
72
68
|
},
|
73
69
|
sortable: false,
|
74
70
|
width: 220,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getTopShardsColumns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAIrD,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"getTopShardsColumns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAIrD,OAAO,EAAC,YAAY,EAAC,MAA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Ae,CAAC;IACpD,KAAK,EAAE,SAAS,CAAC,KAAK;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,UAAkB,EAAE,QAAkB,EAAE,EAAE;IAC/E,OAAO;QACH,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC;QACnC,cAAc;QACd,cAAc;QACd,cAAc;QACd,YAAY;QACZ,qBAAqB;KACxB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,UAAkB,EAAE,QAAkB,EAAE,EAAE;IAC1E,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,uBAAuB,CAAC,CAAC;AAC1F,CAAC,CAAC"}
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
3
3
|
import DataTable from '@gravity-ui/react-data-table';
|
4
4
|
import { Button } from '@gravity-ui/uikit';
|
5
5
|
import { EntitiesCount } from '../../components/EntitiesCount';
|
6
|
-
import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
|
7
6
|
import { ResponseError } from '../../components/Errors/ResponseError';
|
8
7
|
import { Illustration } from '../../components/Illustration';
|
9
8
|
import { PoolsGraph } from '../../components/PoolsGraph/PoolsGraph';
|
@@ -11,6 +10,7 @@ import { ProblemFilter } from '../../components/ProblemFilter';
|
|
11
10
|
import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable';
|
12
11
|
import { Search } from '../../components/Search';
|
13
12
|
import { TableWithControlsLayout } from '../../components/TableWithControlsLayout/TableWithControlsLayout';
|
13
|
+
import { TenantNameWrapper } from '../../components/TenantNameWrapper/TenantNameWrapper';
|
14
14
|
import { clusterName } from '../../store';
|
15
15
|
import { ProblemFilterValues, changeFilter, selectProblemFilter, } from '../../store/reducers/settings/settings';
|
16
16
|
import { selectFilteredTenants, selectTenants, selectTenantsSearchValue, } from '../../store/reducers/tenants/selectors';
|
@@ -19,7 +19,6 @@ import { cn } from '../../utils/cn';
|
|
19
19
|
import { DEFAULT_TABLE_SETTINGS } from '../../utils/constants';
|
20
20
|
import { formatCPU, formatNumber, formatStorageValuesToGb, } from '../../utils/dataFormatters/dataFormatters';
|
21
21
|
import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
22
|
-
import { getTenantPath } from '../Tenant/TenantPages';
|
23
22
|
import './Tenants.scss';
|
24
23
|
const b = cn('tenants');
|
25
24
|
const DATABASES_COLUMNS_WIDTH_LS_KEY = 'databasesTableColumnsWidth';
|
@@ -42,32 +41,11 @@ export const Tenants = ({ additionalTenantsProps }) => {
|
|
42
41
|
return (_jsxs(React.Fragment, { children: [_jsx(Search, { value: searchValue, onChange: handleSearchChange, placeholder: "Database name", className: b('search') }), _jsx(ProblemFilter, { value: problemFilter, onChange: handleProblemFilterChange }), _jsx(EntitiesCount, { total: tenants.length, current: (filteredTenants === null || filteredTenants === void 0 ? void 0 : filteredTenants.length) || 0, label: 'Databases', loading: loading })] }));
|
43
42
|
};
|
44
43
|
const renderTable = () => {
|
45
|
-
const getTenantBackend = (tenant) => {
|
46
|
-
var _a, _b;
|
47
|
-
if (typeof (additionalTenantsProps === null || additionalTenantsProps === void 0 ? void 0 : additionalTenantsProps.prepareTenantBackend) !== 'function') {
|
48
|
-
return undefined;
|
49
|
-
}
|
50
|
-
let backend = (_a = tenant.MonitoringEndpoint) !== null && _a !== void 0 ? _a : tenant.backend;
|
51
|
-
const nodeIds = (_b = tenant.NodeIds) !== null && _b !== void 0 ? _b : tenant.sharedNodeIds;
|
52
|
-
if (!backend && nodeIds && nodeIds.length > 0) {
|
53
|
-
const index = Math.floor(Math.random() * nodeIds.length);
|
54
|
-
backend = { NodeId: nodeIds[index] };
|
55
|
-
}
|
56
|
-
return additionalTenantsProps.prepareTenantBackend(backend);
|
57
|
-
};
|
58
44
|
const columns = [
|
59
45
|
{
|
60
46
|
name: 'Name',
|
61
47
|
header: 'Database',
|
62
|
-
render: ({ row }) => {
|
63
|
-
var _a;
|
64
|
-
const backend = getTenantBackend(row);
|
65
|
-
const isExternalLink = Boolean(backend);
|
66
|
-
return (_jsx(EntityStatus, { externalLink: isExternalLink, className: b('name'), name: row.Name || 'unknown database', withLeftTrim: true, status: row.Overall, hasClipboardButton: true, path: getTenantPath({
|
67
|
-
name: row.Name,
|
68
|
-
backend,
|
69
|
-
}), additionalControls: (_a = additionalTenantsProps === null || additionalTenantsProps === void 0 ? void 0 : additionalTenantsProps.getMonitoringLink) === null || _a === void 0 ? void 0 : _a.call(additionalTenantsProps, row.Name, row.Type) }));
|
70
|
-
},
|
48
|
+
render: ({ row }) => (_jsx(TenantNameWrapper, { tenant: row, additionalTenantsProps: additionalTenantsProps })),
|
71
49
|
width: 440,
|
72
50
|
sortable: true,
|
73
51
|
defaultOrder: DataTable.DESCENDING,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Tenants.js","sourceRoot":"","sources":["../../../src/containers/Tenants/Tenants.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"Tenants.js","sourceRoot":"","sources":["../../../src/containers/Tenants/Tenants.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,UAAU,EAAC,MAAM,wCAAwC,CAAC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AI;aAC1D;SACJ,CAAC;QAEF,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,IAAI,aAAa,KAAK,mBAAmB,CAAC,GAAG,EAAE,CAAC;YAC5E,OAAO,KAAC,YAAY,IAAC,IAAI,EAAC,UAAU,EAAC,KAAK,EAAC,KAAK,GAAG,CAAC;QACxD,CAAC;QAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,8BAA8B,EACjD,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,sBAAsB,EAChC,gBAAgB,EAAC,iBAAiB,GACpC,CACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,uBAAuB,eACpB,KAAC,uBAAuB,CAAC,QAAQ,cAAE,cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,OAAO,YAC1C,WAAW,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,GACP,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
@@ -3,10 +3,10 @@ import { Settings } from '@gravity-ui/navigation';
|
|
3
3
|
import { Setting } from './Setting';
|
4
4
|
export const UserSettings = ({ settings: userSettings }) => {
|
5
5
|
return (_jsx(Settings, { children: userSettings.map((page) => {
|
6
|
-
const { id, title, icon, sections = [] } = page;
|
6
|
+
const { id, title, icon, sections = [], showTitle } = page;
|
7
7
|
return (_jsx(Settings.Page, { id: id, title: title, icon: icon, children: sections.map((section) => {
|
8
8
|
const { title: sectionTitle, settings: sectionSettings = [] } = section;
|
9
|
-
return (_jsx(Settings.Section, { title: sectionTitle, children: sectionSettings.map((setting) => {
|
9
|
+
return (_jsx(Settings.Section, { title: sectionTitle, showTitle: showTitle !== null && showTitle !== void 0 ? showTitle : true, children: sectionSettings.map((setting) => {
|
10
10
|
if (setting.type === 'info') {
|
11
11
|
return (_jsx(Settings.Item, { ...setting, children: setting.content }, setting.title));
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"UserSettings.js","sourceRoot":"","sources":["../../../src/containers/UserSettings/UserSettings.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAOlC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAC,QAAQ,EAAE,YAAY,EAAoB,EAAE,EAAE;IACxE,OAAO,CACH,KAAC,QAAQ,cACJ,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACvB,MAAM,EAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,GAAG,EAAE,EAAC,GAAG,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"UserSettings.js","sourceRoot":"","sources":["../../../src/containers/UserSettings/UserSettings.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAOlC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAC,QAAQ,EAAE,YAAY,EAAoB,EAAE,EAAE;IACxE,OAAO,CACH,KAAC,QAAQ,cACJ,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACvB,MAAM,EAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,GAAG,EAAE,EAAE,SAAS,EAAC,GAAG,IAAI,CAAC;YAEzD,OAAO,CACH,KAAC,QAAQ,CAAC,IAAI,IAAU,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,YACnD,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;oBACtB,MAAM,EAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,GAAG,EAAE,EAAC,GAAG,OAAO,CAAC;oBAEtE,OAAO,CACH,KAAC,QAAQ,CAAC,OAAO,IAEb,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,IAAI,YAE3B,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;4BAC7B,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;gCAC1B,OAAO,CACH,KAAC,QAAQ,CAAC,IAAI,OAAyB,OAAO,YACzC,OAAO,CAAC,OAAO,IADA,OAAO,CAAC,KAAK,CAEjB,CACnB,CAAC;4BACN,CAAC;4BACD,OAAO,CACH,KAAC,QAAQ,CAAC,IAAI,OAAyB,OAAO,YAC1C,KAAC,OAAO,OAAK,OAAO,GAAI,IADR,OAAO,CAAC,KAAK,CAEjB,CACnB,CAAC;wBACN,CAAC,CAAC,IAjBG,EAAE,CAkBQ,CACtB,CAAC;gBACN,CAAC,CAAC,IA1Bc,EAAE,CA2BN,CACnB,CAAC;QACN,CAAC,CAAC,GACK,CACd,CAAC;AACN,CAAC,CAAC"}
|
@@ -111,12 +111,14 @@ export const generalPage = {
|
|
111
111
|
title: i18n('page.general'),
|
112
112
|
icon: { data: StarFill, height: 14, width: 14 },
|
113
113
|
sections: [appearanceSection],
|
114
|
+
showTitle: false,
|
114
115
|
};
|
115
116
|
export const experimentsPage = {
|
116
117
|
id: 'experimentsPage',
|
117
118
|
title: i18n('page.experiments'),
|
118
119
|
icon: { data: Flask },
|
119
120
|
sections: [experimentsSection],
|
121
|
+
showTitle: false,
|
120
122
|
};
|
121
123
|
export const editorPage = {
|
122
124
|
id: 'editorPage',
|
@@ -129,6 +131,7 @@ export const aboutPage = {
|
|
129
131
|
title: i18n('page.about'),
|
130
132
|
icon: { data: CircleInfo },
|
131
133
|
sections: [aboutSettingsSection],
|
134
|
+
showTitle: false,
|
132
135
|
};
|
133
136
|
export function getUserSettings({ singleClusterMode }) {
|
134
137
|
const experiments = singleClusterMode
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/containers/UserSettings/settings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACH,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,SAAS,EACT,mCAAmC,EACnC,wBAAwB,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAGnD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,WAAW,MAAM,uBAAuB,CAAC;
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/containers/UserSettings/settings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACH,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,SAAS,EACT,mCAAmC,EACnC,wBAAwB,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAGnD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAmBhD,MAAM,YAAY,GAAG;IACjB;QACI,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE,IAA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EAAE,KAAK;CACnB,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,EAAC,iBAAiB,EAA+B;IAC7E,MAAM,WAAW,GAAG,iBAAiB;QACjC,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,eAAe,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;YACvC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;IAET,MAAM,QAAQ,GAA0B,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAE1F,OAAO,QAAQ,CAAC;AACpB,CAAC"}
|
@@ -81,8 +81,8 @@ const columns = [
|
|
81
81
|
header: 'Load average',
|
82
82
|
sortAccessor: ({ LoadAveragePercents = [] }) => LoadAveragePercents[0],
|
83
83
|
defaultOrder: DataTable.DESCENDING,
|
84
|
-
width:
|
85
|
-
resizeMinWidth:
|
84
|
+
width: 170,
|
85
|
+
resizeMinWidth: 170,
|
86
86
|
render: ({ row }) => row.LoadAveragePercents && row.LoadAveragePercents.length > 0 ? (_jsx(ProgressViewer, { value: row.LoadAveragePercents[0], percents: true, capacity: 100, colorizeProgress: true })) : ('—'),
|
87
87
|
align: DataTable.LEFT,
|
88
88
|
},
|
package/dist/services/api.js
CHANGED
@@ -122,7 +122,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
|
|
122
122
|
...params,
|
123
123
|
}, { concurrentId, requestConfig: { signal } });
|
124
124
|
}
|
125
|
-
getStorageGroups({ nodeId, pDiskId, groupId, fieldsRequired
|
125
|
+
getStorageGroups({ nodeId, pDiskId, groupId, fieldsRequired, filter, ...params }, { concurrentId, signal } = {}) {
|
126
126
|
const preparedNodeId = Array.isArray(nodeId)
|
127
127
|
? this.prepareArrayRequestParam(nodeId)
|
128
128
|
: nodeId;
|
@@ -142,6 +142,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
|
|
142
142
|
fields_required: preparedFieldsRequired,
|
143
143
|
// Do not send empty string
|
144
144
|
filter: filter || undefined,
|
145
|
+
timeout: 20000,
|
145
146
|
...params,
|
146
147
|
}, { concurrentId, requestConfig: { signal } });
|
147
148
|
}
|