ydb-embedded-ui 6.27.1 → 6.29.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/BasicNodeViewer/BasicNodeViewer.js +2 -2
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js.map +1 -1
- 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 +3 -5
- 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 +7 -4
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js +20 -8
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js.map +1 -1
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.scss +6 -0
- package/dist/containers/Cluster/ClusterInfo/utils.js +1 -1
- package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
- 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 +4 -8
- 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/Versions/NodesTable/NodesTable.js +2 -2
- package/dist/services/api.js +1 -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 +2 -0
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/utils/__test__/prepareBackend.test.js +1 -1
- package/dist/utils/__test__/prepareBackend.test.js.map +1 -1
- package/dist/utils/developerUI/__test__/developerUI.test.js +4 -4
- package/dist/utils/developerUI/__test__/developerUI.test.js.map +1 -1
- package/dist/utils/developerUI/developerUI.js +4 -4
- package/dist/utils/developerUI/developerUI.js.map +1 -1
- package/dist/utils/monaco/yql/constants.js +2 -0
- package/dist/utils/monaco/yql/constants.js.map +1 -1
- package/dist/utils/prepareBackend.js +2 -2
- package/dist/utils/prepareBackend.js.map +1 -1
- 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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/containers/Storage/Storage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AAExE,OAAO,EAAC,YAAY,EAAE,WAAW,EAAC,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAEhE,OAAO,EAAC,sBAAsB,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mCAAmC,CAAC;AAEzE,OAAO,EAAC,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA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,EAAE,+BAA+B,GAC9D,CACL,CAAC,CAAC,CAAC,IAAI,EACP,OAAO,CAAC,CAAC,CAAC,CACP,KAAC,oBAAoB,IACjB,gBAAgB,QAChB,oBAAoB,EAAE,YAAY,CAAC,MAAM,EACzC,kBAAkB,EAAE,eAAe,EACnC,eAAe,EAAE,SAAS,EAC1B,eAAe,EAAE,2BAA2B,EAC5C,2BAA2B,EAAE,8BAA8B,GAC7D,CACL,CAAC,CAAC,CAAC,IAAI,IACK,CACpB,CAAC;IACN,CAAC,CAAC;IAEF,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,KAAC,YAAY,IAAC,QAAQ,EAAC,MAAM,GAAG,CAAC;IAC5C,CAAC;IAED,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,IAC1B,OAAO,EAAE,SAAS,IAAI,CAAC,kBAAkB,EACzC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAEpB,WAAW,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,IAAI,GACX,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
@@ -4,8 +4,8 @@ import { ShieldKeyhole } from '@gravity-ui/icons';
|
|
4
4
|
import DataTable from '@gravity-ui/react-data-table';
|
5
5
|
import { Icon, Label, Popover, PopoverBehavior } from '@gravity-ui/uikit';
|
6
6
|
import { CellWithPopover } from '../../../../components/CellWithPopover/CellWithPopover';
|
7
|
-
import { EntityStatus } from '../../../../components/EntityStatus/EntityStatus';
|
8
7
|
import { InternalLink } from '../../../../components/InternalLink';
|
8
|
+
import { StatusIcon } from '../../../../components/StatusIcon/StatusIcon';
|
9
9
|
import { UsageLabel } from '../../../../components/UsageLabel/UsageLabel';
|
10
10
|
import { VDiskWithDonorsStack } from '../../../../components/VDisk/VDiskWithDonorsStack';
|
11
11
|
import { getStorageGroupPath } from '../../../../routes';
|
@@ -108,9 +108,9 @@ const limitColumn = {
|
|
108
108
|
const usedSpaceFlagColumn = {
|
109
109
|
name: STORAGE_GROUPS_COLUMNS_IDS.DiskSpace,
|
110
110
|
header: STORAGE_GROUPS_COLUMNS_TITLES.DiskSpace,
|
111
|
-
width:
|
111
|
+
width: 70,
|
112
112
|
render: ({ row }) => {
|
113
|
-
return _jsx(
|
113
|
+
return _jsx(StatusIcon, { status: row.DiskSpace });
|
114
114
|
},
|
115
115
|
align: DataTable.CENTER,
|
116
116
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,wDAAwD,CAAC;AACvF,OAAO,EAAC,YAAY,EAAC,MAAM,
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,wDAAwD,CAAC;AACvF,OAAO,EAAC,YA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AC,MAAM,uBAAuB,GAAyB,CAAC,IAAI,EAAE,EAAE;IAClE,MAAM,OAAO,GAAG;QACZ,aAAa;QACb,cAAc;QACd,UAAU;QACV,aAAa;QACb,cAAc;QACd,WAAW;QACX,oBAAoB;QACpB,UAAU;QACV,WAAW;QACX,mBAAmB;QACnB,UAAU;QACV,WAAW;QACX,aAAa;QACb,qBAAqB;QACrB,eAAe,CAAC,IAAI,CAAC;QACrB,cAAc,CAAC,IAAI,CAAC;KACvB,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC5B,GAAG,MAAM;QACT,QAAQ,EAAE,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC;KACnD,CAAC,CAAC,CAAC;AACR,CAAC,CAAC"}
|
@@ -29,7 +29,9 @@ export function StorageGroupPage() {
|
|
29
29
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
30
30
|
const shouldUseGroupsHandler = useStorageGroupsHandlerAvailable();
|
31
31
|
const capabilitiesLoaded = useCapabilitiesLoaded();
|
32
|
-
const groupQuery = storageApi.useGetStorageGroupsInfoQuery(valueIsDefined(groupId)
|
32
|
+
const groupQuery = storageApi.useGetStorageGroupsInfoQuery(valueIsDefined(groupId)
|
33
|
+
? { groupId, shouldUseGroupsHandler, with: 'all', fieldsRequired: 'all' }
|
34
|
+
: skipToken, {
|
33
35
|
pollingInterval: autoRefreshInterval,
|
34
36
|
skip: !capabilitiesLoaded,
|
35
37
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StorageGroupPage.js","sourceRoot":"","sources":["../../../src/containers/StorageGroupPage/StorageGroupPage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAE,cAAc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C;IAC/F,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACX,cAAK,SAAS,EAAE,kBAAkB,CAAC,eAAe,CAAC,YAC9C,sBAAsB,CAAC,SAAS,CAAC,GAChC,EACN,KAAC,cAAc,IAAC,OAAO,EAAE,OAAO,GAAI,IACvB,CACpB,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,UAAU,CAAC,KAAK,GAAI,CAAC;IACtD,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,aACnC,YAAY,EAAE,EACd,cAAc,EAAE,EAChB,eAAe,EAAE,EACjB,WAAW,EAAE,EACb,UAAU,EAAE,EACZ,aAAa,EAAE,IACd,CACT,CAAC;AACN,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
export declare const tabletInfoKeyset: (key: "field_scheme-shard" | "field_follower" | "field_generation" | "field_hive" | "field_state" | "field_uptime" | "field_node" | "
|
1
|
+
export declare const tabletInfoKeyset: (key: "field_links" | "field_scheme-shard" | "field_follower" | "field_generation" | "field_hive" | "field_state" | "field_uptime" | "field_node" | "field_developer-ui-app" | "field_developer-ui-counters" | "field_developer-ui-executor" | "field_developer-ui-state" | "title_info" | "title_links", params?: import("@gravity-ui/i18n").Params) => string;
|
@@ -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,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAC,sBAAsB,EAAE,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AACrF,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAA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AAI,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,EAAE,KAAK,EAAE,SAAS,EAAC,CAAC;IAErF,MAAM,OAAO,GAAG;QACZ,YAAY,EAAuB;QACnC,eAAe,EAAuB;QACtC,UAAU;KACb,CAAC;IAEF,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC7C,GAAG,MAAM;QACT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AK;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,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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,EACb,aAAa,EACb,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,eAAe,GAClB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACH,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAAC,QAAQ,EAAC,MAAM,2CA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,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';
|
@@ -34,13 +35,7 @@ export function TenantOverview({ tenantName, additionalTenantProps, additionalNo
|
|
34
35
|
pollingInterval: autoRefreshInterval,
|
35
36
|
});
|
36
37
|
const { Tables, Topics } = ((_b = (_a = tenantSchemaData === null || tenantSchemaData === void 0 ? void 0 : tenantSchemaData.PathDescription) === null || _a === void 0 ? void 0 : _a.DomainDescription) === null || _b === void 0 ? void 0 : _b.DiskSpaceUsage) || {};
|
37
|
-
const usedTabletStorage = [
|
38
|
-
Tables === null || Tables === void 0 ? void 0 : Tables.TotalSize,
|
39
|
-
Topics === null || Topics === void 0 ? void 0 : Topics.AccountSize,
|
40
|
-
Topics === null || Topics === void 0 ? void 0 : Topics.DataSize,
|
41
|
-
Topics === null || Topics === void 0 ? void 0 : Topics.ReserveSize,
|
42
|
-
Topics === null || Topics === void 0 ? void 0 : Topics.UsedReserveSize,
|
43
|
-
].reduce((sum, current) => {
|
38
|
+
const usedTabletStorage = [Tables === null || Tables === void 0 ? void 0 : Tables.TotalSize, Topics === null || Topics === void 0 ? void 0 : Topics.DataSize].reduce((sum, current) => {
|
44
39
|
if (current) {
|
45
40
|
return sum + Number(current);
|
46
41
|
}
|
@@ -87,6 +82,7 @@ export function TenantOverview({ tenantName, additionalTenantProps, additionalNo
|
|
87
82
|
if (tenantLoading) {
|
88
83
|
return (_jsx("div", { className: b('loader'), children: _jsx(Loader, { size: "m" }) }));
|
89
84
|
}
|
90
|
-
|
85
|
+
const monitoringLink = (_c = additionalTenantProps === null || additionalTenantProps === void 0 ? void 0 : additionalTenantProps.getMonitoringLink) === null || _c === void 0 ? void 0 : _c.call(additionalTenantProps, Name, Type);
|
86
|
+
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
87
|
}
|
92
88
|
//# 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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C;IAE/E,MAAM,iBAAiB,GAAG
|
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,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,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C;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,MAAM,cAAc,GAAG,MAAA,qBAAqB,aAArB,qBAAqB,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,gCAAgC,GACnC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAE3F,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,0BAA0B,EAAC,MAAM,mDAAmD,CAAC;AAC7F,OAAO,EACH,6BAA6B,EAC7B,mCAAmC,GACtC,MAAM,qDAAqD,CAAC;AAE7D,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,UAAU;IACf,MAAM,eAAe,GAAG,0BAA0B,EAAE,CAAC;IAErD,MAAM,UAAU,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,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mC,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,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,kBAAkB,EAAC,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAC,iBAAiB,EAAC,MAAM,4DAA4D,CAAC;AAC7F,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,uBAAuB,EAAC,MAAM,2DAA2D,CAAC;AAGlG,OAAO,EAAC,YAAY,EAAE,gBAAgB,EAAC,MAAM,iDAAiD,CAAC;AAC/F,OAAO,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAE3D,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB,CAAC;AAEvE,MAAM,sBAAsB,GAAG;IAC3B,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,eAAe,EAAE,iBAAiB;IAClC,WAAW,EAAE,aAAa;CACpB,CAAC;AAIX,MAAM,iBAAiB,GAAqC;IACxD,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,cAAc;IACxB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,QA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AuB,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,GAC5D,CACL,CAAC;IACN,CAAC;IACD,KAAK,EAAE,SAAS,CAAC,KAAK;IACtB,QAAQ,EAAE,KAAK;IACf,KAAK,EAAE,GAAG;IACV,cAAc,EAAE,GAAG;CACtB,CAAC;AAEF,MAAM,qBAAqB,GAAwB;IAC/C,IAAI,EAAE,sBAAsB,CAAC,eAAe;IAC5C,MAAM,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,eAAe,CAAC;IACjE,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,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,
|