ydb-embedded-ui 6.34.0 → 6.35.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +5 -3
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/nodesColumns/__test__/utils.test.d.ts +1 -0
- package/dist/components/nodesColumns/__test__/utils.test.js +28 -0
- package/dist/components/nodesColumns/__test__/utils.test.js.map +1 -0
- package/dist/components/nodesColumns/columns.d.ts +28 -2
- package/dist/components/nodesColumns/columns.js +82 -4
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/components/nodesColumns/constants.d.ts +12 -0
- package/dist/components/nodesColumns/constants.js +36 -0
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/components/nodesColumns/i18n/en.json +11 -1
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/components/nodesColumns/utils.d.ts +2 -0
- package/dist/components/nodesColumns/utils.js +11 -0
- package/dist/components/nodesColumns/utils.js.map +1 -0
- package/dist/containers/Nodes/Nodes.js +2 -2
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +3 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.js +3 -3
- package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +11 -3
- package/dist/containers/Nodes/PaginatedNodes.js +16 -19
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.d.ts +3 -2
- package/dist/containers/Nodes/columns/constants.js +8 -8
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +3 -2
- package/dist/containers/Nodes/useNodesPageQueryParams.js +2 -2
- package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.d.ts +4 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js +23 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.d.ts +5 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js +23 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js +26 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js +3 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js.map +1 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +3 -9
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -1
- package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -2
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +17 -3
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +12 -3
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +25 -10
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js.map +1 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +0 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.js +0 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +5 -4
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +86 -53
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +1 -0
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +1 -0
- package/dist/containers/UserSettings/settings.js +6 -2
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/services/settings.d.ts +1 -0
- package/dist/services/settings.js +2 -1
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +12 -4
- package/dist/store/defaultStore.d.ts +6 -2
- package/dist/store/reducers/capabilities/capabilities.d.ts +24 -8
- package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
- package/dist/store/reducers/capabilities/hooks.js +3 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +18 -6
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +60 -20
- package/dist/store/reducers/index.d.ts +9 -3
- package/dist/store/reducers/node/selectors.d.ts +3 -1
- package/dist/store/reducers/nodes/types.d.ts +13 -0
- package/dist/store/reducers/nodes/utils.js +3 -3
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/nodesList.d.ts +3 -1
- package/dist/store/reducers/partitions/partitions.d.ts +4 -3
- package/dist/store/reducers/partitions/partitions.js +1 -3
- package/dist/store/reducers/partitions/partitions.js.map +1 -1
- package/dist/store/reducers/partitions/types.d.ts +0 -3
- package/dist/store/reducers/queryActions/types.d.ts +1 -1
- package/dist/store/reducers/tablets.d.ts +15 -5
- package/dist/store/reducers/tenants/selectors.d.ts +27 -9
- package/dist/store/reducers/topic.d.ts +45 -15
- package/dist/types/api/nodes.d.ts +56 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -1
- package/dist/utils/dataFormatters/dataFormatters.js +12 -6
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js +12 -8
- package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js.map +1 -1
- package/dist/utils/monaco/insertSnippet.d.ts +1 -0
- package/dist/utils/monaco/insertSnippet.js +8 -0
- package/dist/utils/monaco/insertSnippet.js.map +1 -0
- package/dist/utils/timeParsers/parsers.d.ts +1 -1
- package/dist/utils/timeParsers/parsers.js +3 -2
- package/dist/utils/timeParsers/parsers.js.map +1 -1
- package/package.json +2 -2
@@ -3,22 +3,25 @@ import React from 'react';
|
|
3
3
|
import { ResponseError } from '../../components/Errors/ResponseError';
|
4
4
|
import { LoaderWrapper } from '../../components/LoaderWrapper/LoaderWrapper';
|
5
5
|
import { TableWithControlsLayout } from '../../components/TableWithControlsLayout/TableWithControlsLayout';
|
6
|
+
import { NODES_COLUMNS_TITLES } from '../../components/nodesColumns/constants';
|
6
7
|
import { useCapabilitiesLoaded, useViewerNodesHandlerHasGrouping, } from '../../store/reducers/capabilities/hooks';
|
7
8
|
import { nodesApi } from '../../store/reducers/nodes/nodes';
|
8
9
|
import { useProblemFilter } from '../../store/reducers/settings/hooks';
|
9
10
|
import { useAutoRefreshInterval } from '../../utils/hooks';
|
11
|
+
import { useSelectedColumns } from '../../utils/hooks/useSelectedColumns';
|
10
12
|
import { NodesUptimeFilterValues } from '../../utils/nodes';
|
11
13
|
import { TableGroup } from '../Storage/TableGroup/TableGroup';
|
12
14
|
import { useExpandedGroups } from '../Storage/TableGroup/useExpandedTableGroups';
|
13
15
|
import { NodesControls } from './NodesControls/NodesControls';
|
14
16
|
import { PaginatedNodesTable } from './PaginatedNodesTable';
|
15
|
-
import {
|
17
|
+
import { getNodesColumns } from './columns/columns';
|
18
|
+
import { ALL_NODES_GROUP_BY_PARAMS, DEFAULT_NODES_COLUMNS, NODES_TABLE_SELECTED_COLUMNS_LS_KEY, REQUIRED_NODES_COLUMNS, } from './columns/constants';
|
16
19
|
import i18n from './i18n';
|
17
20
|
import { b } from './shared';
|
18
21
|
import { useNodesPageQueryParams } from './useNodesPageQueryParams';
|
19
22
|
import './Nodes.scss';
|
20
|
-
export function PaginatedNodes(
|
21
|
-
const { uptimeFilter, groupByParam, handleUptimeFilterChange } = useNodesPageQueryParams();
|
23
|
+
export function PaginatedNodes({ path, database, parentRef, additionalNodesProps, columns = getNodesColumns({ database, getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef }), defaultColumnsIds = DEFAULT_NODES_COLUMNS, requiredColumnsIds = REQUIRED_NODES_COLUMNS, selectedColumnsKey = NODES_TABLE_SELECTED_COLUMNS_LS_KEY, groupByParams = ALL_NODES_GROUP_BY_PARAMS, }) {
|
24
|
+
const { uptimeFilter, groupByParam, handleUptimeFilterChange } = useNodesPageQueryParams(groupByParams);
|
22
25
|
const { problemFilter, handleProblemFilterChange } = useProblemFilter();
|
23
26
|
const capabilitiesLoaded = useCapabilitiesLoaded();
|
24
27
|
const viewerNodesHandlerHasGrouping = useViewerNodesHandlerHasGrouping();
|
@@ -39,32 +42,26 @@ export function PaginatedNodes(props) {
|
|
39
42
|
]);
|
40
43
|
const renderContent = () => {
|
41
44
|
if (viewerNodesHandlerHasGrouping && groupByParam) {
|
42
|
-
return _jsx(GroupedNodesComponent, {
|
45
|
+
return (_jsx(GroupedNodesComponent, { path: path, database: database, parentRef: parentRef, columns: columns, defaultColumnsIds: defaultColumnsIds, requiredColumnsIds: requiredColumnsIds, selectedColumnsKey: selectedColumnsKey, groupByParams: groupByParams }));
|
43
46
|
}
|
44
|
-
return _jsx(NodesComponent, {
|
47
|
+
return (_jsx(NodesComponent, { path: path, database: database, parentRef: parentRef, columns: columns, defaultColumnsIds: defaultColumnsIds, requiredColumnsIds: requiredColumnsIds, selectedColumnsKey: selectedColumnsKey, groupByParams: groupByParams }));
|
45
48
|
};
|
46
49
|
return _jsx(LoaderWrapper, { loading: !capabilitiesLoaded, children: renderContent() });
|
47
50
|
}
|
48
|
-
function NodesComponent({ path, database, parentRef,
|
49
|
-
const { searchValue, uptimeFilter } = useNodesPageQueryParams();
|
51
|
+
function NodesComponent({ path, database, parentRef, columns, defaultColumnsIds, requiredColumnsIds, selectedColumnsKey, groupByParams, }) {
|
52
|
+
const { searchValue, uptimeFilter } = useNodesPageQueryParams(groupByParams);
|
50
53
|
const { problemFilter } = useProblemFilter();
|
51
54
|
const viewerNodesHandlerHasGrouping = useViewerNodesHandlerHasGrouping();
|
52
|
-
const { columnsToShow, columnsToSelect, setColumns } =
|
53
|
-
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
54
|
-
database,
|
55
|
-
});
|
55
|
+
const { columnsToShow, columnsToSelect, setColumns } = useSelectedColumns(columns, selectedColumnsKey, NODES_COLUMNS_TITLES, defaultColumnsIds, requiredColumnsIds);
|
56
56
|
const renderControls = ({ totalEntities, foundEntities, inited }) => {
|
57
|
-
return (_jsx(NodesControls, { withGroupBySelect: viewerNodesHandlerHasGrouping, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns, entitiesCountCurrent: foundEntities, entitiesCountTotal: totalEntities, entitiesLoading: !inited }));
|
57
|
+
return (_jsx(NodesControls, { withGroupBySelect: viewerNodesHandlerHasGrouping, groupByParams: groupByParams, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns, entitiesCountCurrent: foundEntities, entitiesCountTotal: totalEntities, entitiesLoading: !inited }));
|
58
58
|
};
|
59
59
|
return (_jsx(PaginatedNodesTable, { path: path, database: database, searchValue: searchValue, problemFilter: problemFilter, uptimeFilter: uptimeFilter, columns: columnsToShow, parentRef: parentRef, renderControls: renderControls }));
|
60
60
|
}
|
61
|
-
function GroupedNodesComponent({ path, database, parentRef,
|
62
|
-
const { searchValue, groupByParam } = useNodesPageQueryParams();
|
61
|
+
function GroupedNodesComponent({ path, database, parentRef, columns, defaultColumnsIds, requiredColumnsIds, selectedColumnsKey, groupByParams, }) {
|
62
|
+
const { searchValue, groupByParam } = useNodesPageQueryParams(groupByParams);
|
63
63
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
64
|
-
const { columnsToShow, columnsToSelect, setColumns } =
|
65
|
-
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
66
|
-
database,
|
67
|
-
});
|
64
|
+
const { columnsToShow, columnsToSelect, setColumns } = useSelectedColumns(columns, selectedColumnsKey, NODES_COLUMNS_TITLES, defaultColumnsIds, requiredColumnsIds);
|
68
65
|
const { currentData, isFetching, error } = nodesApi.useGetNodesQuery({
|
69
66
|
path,
|
70
67
|
database,
|
@@ -78,7 +75,7 @@ function GroupedNodesComponent({ path, database, parentRef, additionalNodesProps
|
|
78
75
|
const { NodeGroups: tableGroups, FoundNodes: found = 0, TotalNodes: total = 0, } = currentData || {};
|
79
76
|
const { expandedGroups, setIsGroupExpanded } = useExpandedGroups(tableGroups);
|
80
77
|
const renderControls = () => {
|
81
|
-
return (_jsx(NodesControls, { withGroupBySelect: true, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns, entitiesCountCurrent: found, entitiesCountTotal: total, entitiesLoading: isLoading }));
|
78
|
+
return (_jsx(NodesControls, { withGroupBySelect: true, groupByParams: groupByParams, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns, entitiesCountCurrent: found, entitiesCountTotal: total, entitiesLoading: isLoading }));
|
82
79
|
};
|
83
80
|
const renderGroups = () => {
|
84
81
|
if (tableGroups === null || tableGroups === void 0 ? void 0 : tableGroups.length) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PaginatedNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/PaginatedNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;
|
1
|
+
{"version":3,"file":"PaginatedNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/PaginatedNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,oBAAoB,EAAC,MAAM,yCAAyC,CAAC;AAE7E,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAE1D,OAAO,EAAC,gBAAgB,EAAC,MAAM,qCAAqC,CAAC;AAGrE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAC,iBAAiB,EAAC,MAAM,8CAA8C,CAAC;AAE/E,OAAO,EAAC,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B,CAAC,GAAG,EACzC,WAAW,EAAE,IAAI,EACjB,aAAa,EAAE,YAAY,EAC3B,oBAAoB,EAAE,KAAK,EAC3B,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,SAAS,GACtB,IAlBG,IAAI,CAmBA,CAChB,CAAC;YACN,CAAC,CAAC,CAAC;QACP,CAAC;QAED,OAAO,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACnC,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,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC5E,YAAY,EAAE,GACa,IACV,CAC7B,CAAC;AACN,CAAC"}
|
@@ -4,5 +4,6 @@ import type { NodesGroupByField } from '../../../types/api/nodes';
|
|
4
4
|
export declare const NODES_TABLE_SELECTED_COLUMNS_LS_KEY = "nodesTableSelectedColumns";
|
5
5
|
export declare const DEFAULT_NODES_COLUMNS: NodesColumnId[];
|
6
6
|
export declare const REQUIRED_NODES_COLUMNS: NodesColumnId[];
|
7
|
-
export declare
|
8
|
-
export declare function
|
7
|
+
export declare const ALL_NODES_GROUP_BY_PARAMS: ["SystemState", "Host", "DC", "Rack", "Database", "Version", "Uptime"];
|
8
|
+
export declare function getNodesGroupByOptions(groupByParams: NodesGroupByField[], withSystemStateGroupBy?: boolean): SelectOption[];
|
9
|
+
export declare function parseNodesGroupByParam(paramToParse: unknown, groupByParams: NodesGroupByField[], withSystemStateGroupBy?: boolean): NodesGroupByField | undefined;
|
@@ -13,7 +13,7 @@ export const DEFAULT_NODES_COLUMNS = [
|
|
13
13
|
'Tablets',
|
14
14
|
];
|
15
15
|
export const REQUIRED_NODES_COLUMNS = ['NodeId'];
|
16
|
-
const ALL_NODES_GROUP_BY_PARAMS = [
|
16
|
+
export const ALL_NODES_GROUP_BY_PARAMS = [
|
17
17
|
'SystemState',
|
18
18
|
'Host',
|
19
19
|
'DC',
|
@@ -22,22 +22,22 @@ const ALL_NODES_GROUP_BY_PARAMS = [
|
|
22
22
|
'Version',
|
23
23
|
'Uptime',
|
24
24
|
];
|
25
|
-
function
|
25
|
+
function prepareGroupByParams(groupByParams, withSystemStateGroupBy) {
|
26
26
|
if (!withSystemStateGroupBy) {
|
27
|
-
return
|
27
|
+
return groupByParams.filter((param) => param !== 'SystemState');
|
28
28
|
}
|
29
|
-
return
|
29
|
+
return groupByParams;
|
30
30
|
}
|
31
|
-
export function getNodesGroupByOptions(withSystemStateGroupBy) {
|
32
|
-
return
|
31
|
+
export function getNodesGroupByOptions(groupByParams, withSystemStateGroupBy) {
|
32
|
+
return prepareGroupByParams(groupByParams, withSystemStateGroupBy).map((param) => {
|
33
33
|
return {
|
34
34
|
value: param,
|
35
35
|
content: getNodesGroupByFieldTitle(param),
|
36
36
|
};
|
37
37
|
});
|
38
38
|
}
|
39
|
-
export function parseNodesGroupByParam(paramToParse, withSystemStateGroupBy) {
|
40
|
-
const availableParams =
|
39
|
+
export function parseNodesGroupByParam(paramToParse, groupByParams, withSystemStateGroupBy) {
|
40
|
+
const availableParams = prepareGroupByParams(groupByParams, withSystemStateGroupBy);
|
41
41
|
return availableParams.find((groupByField) => groupByField === paramToParse);
|
42
42
|
}
|
43
43
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,yBAAyB,EAAC,MAAM,4CAA4C,CAAC;AAIrF,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAE/E,MAAM,CAAC,MAAM,qBAAqB,GAAoB;IAClD,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,aAAa;IACb,SAAS;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAoB,CAAC,QAAQ,CAAC,CAAC;AAElE,MAAM,yBAAyB,GAAG;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,yBAAyB,EAAC,MAAM,4CAA4C,CAAC;AAIrF,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAE/E,MAAM,CAAC,MAAM,qBAAqB,GAAoB;IAClD,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,aAAa;IACb,SAAS;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAoB,CAAC,QAAQ,CAAC,CAAC;AAElE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,aAAa;IACb,MAAM;IACN,IAAI;IACJ,MAAM;IACN,UAAU;IACV,SAAS;IACT,QAAQ;CAC4B,CAAC;AAEzC,SAAS,oBAAoB,CACzB,aAAkC,EAClC,sBAAgC;IAEhC,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC1B,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,aAAa,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,aAAa,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,sBAAsB,CAClC,aAAkC,EAClC,sBAAgC;IAEhC,OAAO,oBAAoB,CAAC,aAAa,EAAE,sBAAsB,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC7E,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,yBAAyB,CAAC,KAAK,CAAC;SAC5C,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,sBAAsB,CAClC,YAAqB,EACrB,aAAkC,EAClC,sBAAgC;IAEhC,MAAM,eAAe,GAAG,oBAAoB,CAAC,aAAa,EAAE,sBAAsB,CAAC,CAAC;IAEpF,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,KAAK,YAAY,CAAC,CAAC;AACjF,CAAC"}
|
@@ -1,8 +1,9 @@
|
|
1
|
+
import type { NodesGroupByField } from '../../types/api/nodes';
|
1
2
|
import type { NodesUptimeFilterValues } from '../../utils/nodes';
|
2
|
-
export declare function useNodesPageQueryParams(): {
|
3
|
+
export declare function useNodesPageQueryParams(groupByParams: NodesGroupByField[] | undefined): {
|
3
4
|
uptimeFilter: NodesUptimeFilterValues;
|
4
5
|
searchValue: string;
|
5
|
-
groupByParam:
|
6
|
+
groupByParam: NodesGroupByField | undefined;
|
6
7
|
handleSearchQueryChange: (value: string) => void;
|
7
8
|
handleUptimeFilterChange: (value: NodesUptimeFilterValues) => void;
|
8
9
|
handleGroupByParamChange: (value: string) => void;
|
@@ -2,7 +2,7 @@ import { StringParam, useQueryParams } from 'use-query-params';
|
|
2
2
|
import { useViewerNodesHandlerHasGroupingBySystemState } from '../../store/reducers/capabilities/hooks';
|
3
3
|
import { nodesUptimeFilterValuesSchema } from '../../utils/nodes';
|
4
4
|
import { parseNodesGroupByParam } from './columns/constants';
|
5
|
-
export function useNodesPageQueryParams() {
|
5
|
+
export function useNodesPageQueryParams(groupByParams) {
|
6
6
|
var _a;
|
7
7
|
const [queryParams, setQueryParams] = useQueryParams({
|
8
8
|
uptimeFilter: StringParam,
|
@@ -12,7 +12,7 @@ export function useNodesPageQueryParams() {
|
|
12
12
|
const uptimeFilter = nodesUptimeFilterValuesSchema.parse(queryParams.uptimeFilter);
|
13
13
|
const searchValue = (_a = queryParams.search) !== null && _a !== void 0 ? _a : '';
|
14
14
|
const systemStateGroupingAvailable = useViewerNodesHandlerHasGroupingBySystemState();
|
15
|
-
const groupByParam = parseNodesGroupByParam(queryParams.nodesGroupBy, systemStateGroupingAvailable);
|
15
|
+
const groupByParam = parseNodesGroupByParam(queryParams.nodesGroupBy, groupByParams !== null && groupByParams !== void 0 ? groupByParams : [], systemStateGroupingAvailable);
|
16
16
|
const handleSearchQueryChange = (value) => {
|
17
17
|
setQueryParams({ search: value || undefined }, 'replaceIn');
|
18
18
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useNodesPageQueryParams.js","sourceRoot":"","sources":["../../../src/containers/Nodes/useNodesPageQueryParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,6CAA6C,EAAC,MAAM,yCAAyC,CAAC;
|
1
|
+
{"version":3,"file":"useNodesPageQueryParams.js","sourceRoot":"","sources":["../../../src/containers/Nodes/useNodesPageQueryParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,6CAA6C,EAAC,MAAM,yCAAyC,CAAC;AAGtG,OAAO,EAAC,6BAA6B,EAAC,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAE3D,MAAM,UAAU,uBAAuB,CAAC,aAA8C;;IAClF,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,cAAc,CAAC;QACjD,YAAY,EAAE,WAAW;QACzB,MAAM,EAAE,WAAW;QACnB,YAAY,EAAE,WAAW;KAC5B,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,6BAA6B,CAAC,KAAK,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IACnF,MAAM,WAAW,GAAG,MAAA,WAAW,CAAC,MAAM,mCAAI,EAAE,CAAC;IAE7C,MAAM,4BAA4B,GAAG,6CAA6C,EAAE,CAAC;IACrF,MAAM,YAAY,GAAG,sBAAsB,CACvC,WAAW,CAAC,YAAY,EACxB,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,EAAE,EACnB,4BAA4B,CAC/B,CAAC;IAEF,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAE,EAAE;QAC9C,cAAc,CAAC,EAAC,MAAM,EAAE,KAAK,IAAI,SAAS,EAAC,EAAE,WAAW,CAAC,CAAC;IAC9D,CAAC,CAAC;IACF,MAAM,wBAAwB,GAAG,CAAC,KAA8B,EAAE,EAAE;QAChE,cAAc,CAAC,EAAC,YAAY,EAAE,KAAK,EAAC,EAAE,WAAW,CAAC,CAAC;IACvD,CAAC,CAAC;IACF,MAAM,wBAAwB,GAAG,CAAC,KAAa,EAAE,EAAE;QAC/C,cAAc,CAAC,EAAC,YAAY,EAAE,KAAK,EAAC,EAAE,WAAW,CAAC,CAAC;IACvD,CAAC,CAAC;IAEF,OAAO;QACH,YAAY;QACZ,WAAW;QACX,YAAY;QAEZ,uBAAuB;QACvB,wBAAwB;QACxB,wBAAwB;KAC3B,CAAC;AACN,CAAC"}
|
@@ -24,7 +24,7 @@ import Describe from './Describe/Describe';
|
|
24
24
|
import DetailedOverview from './DetailedOverview/DetailedOverview';
|
25
25
|
import { getDataBasePages, getPagesByType } from './DiagnosticsPages';
|
26
26
|
import { HotKeys } from './HotKeys/HotKeys';
|
27
|
-
import {
|
27
|
+
import { NetworkWrapper } from './Network/NetworkWrapper';
|
28
28
|
import { Partitions } from './Partitions/Partitions';
|
29
29
|
import { TopQueries } from './TopQueries';
|
30
30
|
import { TopShards } from './TopShards';
|
@@ -78,7 +78,7 @@ function Diagnostics(props) {
|
|
78
78
|
return _jsx(StorageWrapper, { database: tenantName, parentRef: containerRef });
|
79
79
|
}
|
80
80
|
case TENANT_DIAGNOSTICS_TABS_IDS.network: {
|
81
|
-
return _jsx(
|
81
|
+
return (_jsx(NetworkWrapper, { path: path, database: tenantName, additionalNodesProps: props.additionalNodesProps, parentRef: containerRef }));
|
82
82
|
}
|
83
83
|
case TENANT_DIAGNOSTICS_TABS_IDS.describe: {
|
84
84
|
return _jsx(Describe, { path: path, database: tenantName, type: type });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Diagnostics.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Diagnostics/Diagnostics.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAC,wBAAwB,EAAC,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AAGxE,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AACtC,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AACtC,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAC,oBAAoB,EAAC,MAAM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;QACL,CAAC;IACL,CAAC,CAAC;IACF,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC/B,eAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,KAAC,IAAI,IACD,IAAI,EAAC,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,EAAE,EACxB,MAAM,EAAE,CAAC,EAAC,EAAE,EAAC,EAAE,IAAI,EAAE,EAAE;4BACnB,MAAM,IAAI,GAAG,aAAa,CAAC;gCACvB,GAAG,WAAW;gCACd,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,EAAE;6BACxC,CAAC,CAAC;4BAEH,OAAO,CACH,KAAC,IAAI,IAAC,EAAE,EAAE,IAAI,EAAW,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,YACvC,IAAI,IADY,EAAE,CAEhB,CACV,CAAC;wBACN,CAAC,EACD,gBAAgB,EAAE,IAAI,GACxB,EACF,KAAC,kBAAkB,KAAG,IACpB,GACJ,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACd,SAAS,CAAC,CAAC,CAAC,CACT,KAAC,MAAM,cACH,0BAAQ,SAAS,CAAC,KAAK,GAAS,GAC3B,CACZ,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,EAAE,EACb,cAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,YAAY,YAC/C,gBAAgB,EAAE,GACjB,IACJ,CACT,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { GetNodesColumnsParams } from '../../../../../components/nodesColumns/types';
|
2
|
+
import type { NodesPreparedEntity } from '../../../../../store/reducers/nodes/types';
|
3
|
+
import type { Column } from '../../../../../utils/tableUtils/types';
|
4
|
+
export declare function getNetworkTableNodesColumns(params: GetNodesColumnsParams): Column<NodesPreparedEntity>[];
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { getClockSkewColumn, getConnectionsColumn, getCpuColumn, getDataCenterColumn, getHostColumn, getNetworkUtilizationColumn, getNodeIdColumn, getPingTimeColumn, getPoolsColumn, getRackColumn, getReceiveThroughputColumn, getSendThroughputColumn, getUptimeColumn, } from '../../../../../components/nodesColumns/columns';
|
2
|
+
import { isSortableNodesColumn } from '../../../../../components/nodesColumns/constants';
|
3
|
+
export function getNetworkTableNodesColumns(params) {
|
4
|
+
const columns = [
|
5
|
+
getNodeIdColumn(),
|
6
|
+
getHostColumn(params, { statusForIcon: 'ConnectStatus' }),
|
7
|
+
getDataCenterColumn(),
|
8
|
+
getRackColumn(),
|
9
|
+
getUptimeColumn(),
|
10
|
+
getCpuColumn(),
|
11
|
+
getPoolsColumn(),
|
12
|
+
getConnectionsColumn(),
|
13
|
+
getNetworkUtilizationColumn(),
|
14
|
+
getSendThroughputColumn(),
|
15
|
+
getReceiveThroughputColumn(),
|
16
|
+
getPingTimeColumn(),
|
17
|
+
getClockSkewColumn(),
|
18
|
+
];
|
19
|
+
return columns.map((column) => {
|
20
|
+
return { ...column, sortable: isSortableNodesColumn(column.name) };
|
21
|
+
});
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=columns.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/Network/NetworkTable/columns.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,2BAA2B,EAC3B,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,GAClB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAC,qBAAqB,EAAC,MAAM,kDAAkD,CAAC;AAKvF,MAAM,UAAU,2BAA2B,CACvC,MAA6B;IAE7B,MAAM,OAAO,GAAG;QACZ,eAAe,EAAuB;QACtC,aAAa,CAAsB,MAAM,EAAE,EAAC,aAAa,EAAE,eAAe,EAAC,CAAC;QAC5E,mBAAmB,EAAuB;QAC1C,aAAa,EAAuB;QACpC,eAAe,EAAuB;QACtC,YAAY,EAAuB;QACnC,cAAc,EAAuB;QACrC,oBAAoB,EAAuB;QAC3C,2BAA2B,EAAuB;QAClD,uBAAuB,EAAuB;QAC9C,0BAA0B,EAAuB;QACjD,iBAAiB,EAAuB;QACxC,kBAAkB,EAAuB;KAC5C,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1B,OAAO,EAAC,GAAG,MAAM,EAAE,QAAQ,EAAE,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACP,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { NodesColumnId } from '../../../../../components/nodesColumns/constants';
|
2
|
+
export declare const NETWORK_NODES_TABLE_SELECTED_COLUMNS_KEY = "networkNodesTableSelectedColumns";
|
3
|
+
export declare const NETWORK_DEFAULT_NODES_COLUMNS: NodesColumnId[];
|
4
|
+
export declare const NETWORK_REQUIRED_NODES_COLUMNS: NodesColumnId[];
|
5
|
+
export declare const NETWORK_NODES_GROUP_BY_PARAMS: ["Host", "DC", "Rack", "Uptime", "ConnectStatus", "NetworkUtilization", "PingTime", "ClockSkew"];
|
@@ -0,0 +1,23 @@
|
|
1
|
+
export const NETWORK_NODES_TABLE_SELECTED_COLUMNS_KEY = 'networkNodesTableSelectedColumns';
|
2
|
+
export const NETWORK_DEFAULT_NODES_COLUMNS = [
|
3
|
+
'NodeId',
|
4
|
+
'Host',
|
5
|
+
'Connections',
|
6
|
+
'NetworkUtilization',
|
7
|
+
'SendThroughput',
|
8
|
+
'ReceiveThroughput',
|
9
|
+
'PingTime',
|
10
|
+
'ClockSkew',
|
11
|
+
];
|
12
|
+
export const NETWORK_REQUIRED_NODES_COLUMNS = ['NodeId'];
|
13
|
+
export const NETWORK_NODES_GROUP_BY_PARAMS = [
|
14
|
+
'Host',
|
15
|
+
'DC',
|
16
|
+
'Rack',
|
17
|
+
'Uptime',
|
18
|
+
'ConnectStatus',
|
19
|
+
'NetworkUtilization',
|
20
|
+
'PingTime',
|
21
|
+
'ClockSkew',
|
22
|
+
];
|
23
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/Network/NetworkTable/constants.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,wCAAwC,GAAG,kCAAkC,CAAC;AAE3F,MAAM,CAAC,MAAM,6BAA6B,GAAoB;IAC1D,QAAQ;IACR,MAAM;IACN,aAAa;IACb,oBAAoB;IACpB,gBAAgB;IAChB,mBAAmB;IACnB,UAAU;IACV,WAAW;CACd,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAoB,CAAC,QAAQ,CAAC,CAAC;AAE1E,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,MAAM;IACN,IAAI;IACJ,MAAM;IACN,QAAQ;IACR,eAAe;IACf,oBAAoB;IACpB,UAAU;IACV,WAAW;CACyB,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { PaginatedNodesProps } from '../../../Nodes/PaginatedNodes';
|
2
|
+
interface NetworkWrapperProps extends Pick<PaginatedNodesProps, 'path' | 'parentRef' | 'additionalNodesProps'> {
|
3
|
+
database: string;
|
4
|
+
}
|
5
|
+
export declare function NetworkWrapper({ database, path, parentRef, additionalNodesProps, }: NetworkWrapperProps): import("react/jsx-runtime").JSX.Element;
|
6
|
+
export {};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { LoaderWrapper } from '../../../../components/LoaderWrapper/LoaderWrapper';
|
3
|
+
import { useCapabilitiesLoaded, useViewerNodesHandlerHasNetworkStats, } from '../../../../store/reducers/capabilities/hooks';
|
4
|
+
import { ENABLE_NETWORK_TABLE_KEY } from '../../../../utils/constants';
|
5
|
+
import { useSetting } from '../../../../utils/hooks';
|
6
|
+
import { PaginatedNodes } from '../../../Nodes/PaginatedNodes';
|
7
|
+
import { Network } from './Network';
|
8
|
+
import { getNetworkTableNodesColumns } from './NetworkTable/columns';
|
9
|
+
import { NETWORK_DEFAULT_NODES_COLUMNS, NETWORK_NODES_GROUP_BY_PARAMS, NETWORK_NODES_TABLE_SELECTED_COLUMNS_KEY, NETWORK_REQUIRED_NODES_COLUMNS, } from './NetworkTable/constants';
|
10
|
+
export function NetworkWrapper({ database, path, parentRef, additionalNodesProps, }) {
|
11
|
+
const capabilitiesLoaded = useCapabilitiesLoaded();
|
12
|
+
const viewerNodesHasNetworkStats = useViewerNodesHandlerHasNetworkStats();
|
13
|
+
const [networkTableEnabled] = useSetting(ENABLE_NETWORK_TABLE_KEY);
|
14
|
+
const shouldUseNetworkNodesTable = viewerNodesHasNetworkStats && networkTableEnabled;
|
15
|
+
const renderContent = () => {
|
16
|
+
if (shouldUseNetworkNodesTable) {
|
17
|
+
return (_jsx(PaginatedNodes, { path: path, database: database, parentRef: parentRef, additionalNodesProps: additionalNodesProps, columns: getNetworkTableNodesColumns({
|
18
|
+
database: database,
|
19
|
+
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
20
|
+
}), defaultColumnsIds: NETWORK_DEFAULT_NODES_COLUMNS, requiredColumnsIds: NETWORK_REQUIRED_NODES_COLUMNS, selectedColumnsKey: NETWORK_NODES_TABLE_SELECTED_COLUMNS_KEY, groupByParams: NETWORK_NODES_GROUP_BY_PARAMS }));
|
21
|
+
}
|
22
|
+
return _jsx(Network, { tenantName: database });
|
23
|
+
};
|
24
|
+
return _jsx(LoaderWrapper, { loading: !capabilitiesLoaded, children: renderContent() });
|
25
|
+
}
|
26
|
+
//# sourceMappingURL=NetworkWrapper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NetworkWrapper.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/Network/NetworkWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,oDAAoD,CAAC;AACjF,OAAO,EACH,qBAAqB,EACrB,oCAAoC,GACvC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAC,wBAAwB,EAAC,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAC,cAAc,EAAC,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,2BAA2B,EAAC,MAAM,wBAAwB,CAAC;AACnE,OAAO,EACH,6BAA6B,EAC7B,6BAA6B,EAC7B,wCAAwC,EACxC,8BAA8B,GACjC,MAAM,0BAA0B,CAAC;AAOlC,MAAM,UAAU,cAAc,CAAC,EAC3B,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,oBAAoB,GACF;IAClB,MAAM,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;IACnD,MAAM,0BAA0B,GAAG,oCAAoC,EAAE,CAAC;IAC1E,MAAM,CAAC,mBAAmB,CAAC,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAC;IAEnE,MAAM,0BAA0B,GAAG,0BAA0B,IAAI,mBAAmB,CAAC;IAErF,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,IAAI,0BAA0B,EAAE,CAAC;YAC7B,OAAO,CACH,KAAC,cAAc,IACX,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,oBAAoB,EAAE,oBAAoB,EAC1C,OAAO,EAAE,2BAA2B,CAAC;oBACjC,QAAQ,EAAE,QAAQ;oBAClB,UAAU,EAAE,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,UAAU;iBAC/C,CAAC,EACF,iBAAiB,EAAE,6BAA6B,EAChD,kBAAkB,EAAE,8BAA8B,EAClD,kBAAkB,EAAE,wCAAwC,EAC5D,aAAa,EAAE,6BAA6B,GAC9C,CACL,CAAC;QACN,CAAC;QAED,OAAO,KAAC,OAAO,IAAC,UAAU,EAAE,QAAQ,GAAI,CAAC;IAC7C,CAAC,CAAC;IAEF,OAAO,KAAC,aAAa,IAAC,OAAO,EAAE,CAAC,kBAAkB,YAAG,aAAa,EAAE,GAAiB,CAAC;AAC1F,CAAC"}
|
@@ -43,7 +43,7 @@ export const Partitions = ({ path, database }) => {
|
|
43
43
|
const isTopicWithoutConsumers = !topicLoading && !consumers;
|
44
44
|
const wrongSelectedConsumer = selectedConsumer && consumers && !consumers.includes(selectedConsumer);
|
45
45
|
if (isTopicWithoutConsumers || wrongSelectedConsumer) {
|
46
|
-
dispatch(setSelectedConsumer(
|
46
|
+
dispatch(setSelectedConsumer(undefined));
|
47
47
|
}
|
48
48
|
}, [dispatch, topicLoading, selectedConsumer, consumers]);
|
49
49
|
const columnsToShow = React.useMemo(() => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Partitions.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/Partitions/Partitions.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,aAAa,EAAC,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAC,YAAY,EAAE,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;A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AAC,OAAO,CAAC,EAC5B,IAAI,EAAE,kBAAkB,EACxB,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,sBAAsB,EAChC,gBAAgB,EAAE,IAAI,CAAC,wBAAwB,CAAC,GAClD,CACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACf,cAAK,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,YAAG,cAAc,EAAE,GAAO,EACtD,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,cAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,YAC9B,cAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,YAAG,cAAc,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,IAAI,GAAO,GACjF,IACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { PreparedPartitionDataWithHosts } from '../utils/types';
|
2
2
|
interface PartitionsControlsProps {
|
3
3
|
consumers: string[] | undefined;
|
4
|
-
selectedConsumer
|
5
|
-
onSelectedConsumerChange: (consumer
|
4
|
+
selectedConsumer?: string;
|
5
|
+
onSelectedConsumerChange: (consumer?: string) => void;
|
6
6
|
selectDisabled: boolean;
|
7
7
|
partitions: PreparedPartitionDataWithHosts[] | undefined;
|
8
8
|
onSearchChange: (filteredPartitions: PreparedPartitionDataWithHosts[]) => void;
|
package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js
CHANGED
@@ -63,7 +63,8 @@ export const PartitionsControls = ({ consumers, selectedConsumer, onSelectedCons
|
|
63
63
|
return columns;
|
64
64
|
}, [initialColumnsIds, hiddenColumns]);
|
65
65
|
const handleConsumerSelectChange = (value) => {
|
66
|
-
|
66
|
+
// Do not set empty string to state
|
67
|
+
onSelectedConsumerChange(value[0] || undefined);
|
67
68
|
};
|
68
69
|
const handlePartitionIdSearchChange = (value) => {
|
69
70
|
setPartitionIdSearchValue(value);
|
@@ -89,6 +90,6 @@ export const PartitionsControls = ({ consumers, selectedConsumer, onSelectedCons
|
|
89
90
|
const renderOption = (option) => {
|
90
91
|
return (_jsx("div", { className: b('select-option', { empty: option.value === '' }), children: option.content }));
|
91
92
|
};
|
92
|
-
return (_jsxs(React.Fragment, { children: [_jsx(Select, { className: b('consumer-select'), label: i18n('controls.consumerSelector'), options: consumersToSelect, value: [selectedConsumer], onUpdate: handleConsumerSelectChange, filterable: consumers && consumers.length > 5, disabled: selectDisabled || !consumers || !consumers.length, renderOption: renderOption, renderSelectedOption: renderOption }), _jsx(Search, { onChange: handlePartitionIdSearchChange, placeholder: i18n('controls.partitionSearch'), className: b('search', { partition: true }), value: partitionIdSearchValue }), _jsx(Search, { onChange: handleGeneralSearchChange, placeholder: i18n('controls.generalSearch'), className: b('search', { general: true }), value: generalSearchValue }), _jsx(TableColumnSetup, { popupWidth: 242, items: columnsToSelect, showStatus: true, onUpdate: handleTableColumnsSetupChange, sortable: false }, "TableColumnSetup")] }));
|
93
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Select, { className: b('consumer-select'), label: i18n('controls.consumerSelector'), options: consumersToSelect, value: [selectedConsumer || ''], onUpdate: handleConsumerSelectChange, filterable: consumers && consumers.length > 5, disabled: selectDisabled || !consumers || !consumers.length, renderOption: renderOption, renderSelectedOption: renderOption }), _jsx(Search, { onChange: handlePartitionIdSearchChange, placeholder: i18n('controls.partitionSearch'), className: b('search', { partition: true }), value: partitionIdSearchValue }), _jsx(Search, { onChange: handleGeneralSearchChange, placeholder: i18n('controls.generalSearch'), className: b('search', { general: true }), value: generalSearchValue }), _jsx(TableColumnSetup, { popupWidth: 242, items: columnsToSelect, showStatus: true, onUpdate: handleTableColumnsSetupChange, sortable: false }, "TableColumnSetup")] }));
|
93
94
|
};
|
94
95
|
//# sourceMappingURL=PartitionsControls.js.map
|
package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PartitionsControls.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,MAAM,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAC,MAAM,EAAC,MAAM,yCAAyC,CAAC;AAE/D,OAAO,EAAC,CAAC,EAAC,MAAM,eAAe,CAAC;AAChC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAC,sBAAsB,EAAE,yBAAyB,EAAC,MAAM,oBAAoB,CAAC;AAerF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAC/B,SAAS,EACT,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,UAAU,EACV,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,iBAAiB,GACK,EAAE,EAAE;IAC1B,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACvE,MAAM,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE/E,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,CAAC,UAAU,EAAE,CAAC;YACd,OAAO;QACX,CAAC;QAED,MAAM,aAAa,GAAG,IAAI,MAAM,CAAC,YAAY,CAAC,sBAAsB,CAAC,EAAE,GAAG,CAAC,CAAC;QAC5E,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,YAAY,CAAC,kBAAkB,CA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,CAAC;IAC7F,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACvC,MAAM,OAAO,GAA2B,EAAE,CAAC;QAC3C,KAAK,MAAM,EAAE,IAAI,iBAAiB,EAAE,CAAC;YACjC,MAAM,IAAI,GAAG,EAAE,KAAK,sBAAsB,CAAC,YAAY,CAAC;YACxD,MAAM,MAAM,GAAyB;gBACjC,KAAK,EAAE,yBAAyB,CAAC,EAA4C,CAAC;gBAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;gBAC9C,EAAE,EAAE,EAAE;gBACN,QAAQ,EAAE,IAAI;gBACd,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;aACrC,CAAC;YACF,IAAI,IAAI,EAAE,CAAC;gBACP,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAC5B,CAAC;iBAAM,CAAC;gBACJ,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACzB,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;IAEvC,MAAM,0BAA0B,GAAG,CAAC,KAAe,EAAE,EAAE;QACnD,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"PartitionsControls.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,MAAM,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAC,MAAM,EAAC,MAAM,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C,CAAC,EACvC,KAAK,EAAE,kBAAkB,GAC3B,EACF,KAAC,gBAAgB,IAEb,UAAU,EAAE,GAAG,EACf,KAAK,EAAE,eAAe,EACtB,UAAU,QACV,QAAQ,EAAE,6BAA6B,EACvC,QAAQ,EAAE,KAAK,IALX,kBAAkB,CAMxB,IACW,CACpB,CAAC;AACN,CAAC,CAAC"}
|
@@ -2,16 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
3
3
|
import { ChevronDown } from '@gravity-ui/icons';
|
4
4
|
import { Button, DropdownMenu } from '@gravity-ui/uikit';
|
5
|
-
import { changeUserInput } from '../../../../store/reducers/executeQuery';
|
6
|
-
import { useTypedDispatch } from '../../../../utils/hooks';
|
7
5
|
import { useChangeInputWithConfirmation } from '../../../../utils/hooks/withConfirmation/useChangeInputWithConfirmation';
|
6
|
+
import { insertSnippetToEditor } from '../../../../utils/monaco/insertSnippet';
|
8
7
|
import { bindActions } from '../../utils/newSQLQueryActions';
|
9
8
|
import i18n from './i18n';
|
10
9
|
export function NewSQL() {
|
11
|
-
const dispatch = useTypedDispatch();
|
12
10
|
const insertTemplate = React.useCallback((input) => {
|
13
|
-
|
14
|
-
}, [
|
11
|
+
insertSnippetToEditor(input);
|
12
|
+
}, []);
|
15
13
|
const onTemplateClick = useChangeInputWithConfirmation(insertTemplate);
|
16
14
|
const actions = bindActions(onTemplateClick);
|
17
15
|
const items = [
|
@@ -46,10 +44,6 @@ export function NewSQL() {
|
|
46
44
|
text: i18n('action.select-rows'),
|
47
45
|
action: actions.selectQuery,
|
48
46
|
},
|
49
|
-
{
|
50
|
-
text: i18n('action.select-from-external-table'),
|
51
|
-
action: actions.selectQueryFromExternalTable,
|
52
|
-
},
|
53
47
|
{
|
54
48
|
text: i18n('action.delete-rows'),
|
55
49
|
action: actions.deleteRows,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NewSQL.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/NewSQL/NewSQL.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"NewSQL.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/NewSQL/NewSQL.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAC,8BAA8B,EAAC,MAAM,yEAAyE,CAAC;AACvH,OAAO,EAAC,qBAAqB,EAAC,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,UAAU,MAAM;IAClB,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,KAAa,EAAE,EAAE;QACvD,qBAAqB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,eAAe,GAAG,8BAA8B,CAAC,cAAc,CAAC,CAAC;IAEvE,MAAM,OAAO,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC;IAE7C,MAAM,KAAK,GAAG;QACV;YACI,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC;YACzB,KAAK,EAAE;gBACH;oBACI,IAAI,EAAE,IAAI,CAAC,yBAAyB,CAAC;oBACrC,MAAM,EAAE,OAAO,CAAC,cAAc;iBACjC;gBACD;oBACI,IAAI,EAAE,IAAI,CAAC,4BAA4B,CAAC;oBACxC,MAAM,EAAE,OAAO,CAAC,iBAAiB;iB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AAE,IAAI,CAAC,yBAAyB,CAAC;oBACrC,MAAM,EAAE,OAAO,CAAC,eAAe;iBAClC;aACJ;SACJ;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,YAAY,IACT,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CACvB,MAAC,MAAM,OAAK,KAAK,aACZ,IAAI,CAAC,gBAAgB,CAAC,EACvB,KAAC,MAAM,CAAC,IAAI,cACR,KAAC,WAAW,KAAG,GACL,IACT,CACZ,EACD,UAAU,EAAE,EAAC,SAAS,EAAE,KAAK,EAAC,GAChC,CACL,CAAC;AACN,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"button.new-sql": "New
|
2
|
+
"button.new-sql": "New query",
|
3
3
|
"action.create-row-table": "Create row table",
|
4
4
|
"action.create-column-table": "Create column table",
|
5
5
|
"action.create-external-table": "Create external table",
|
@@ -7,7 +7,6 @@
|
|
7
7
|
"action.update-table": "Update table",
|
8
8
|
"action.alter-table": "Alter table",
|
9
9
|
"action.select-rows": "Select from a table",
|
10
|
-
"action.select-from-external-table": "Select from external table",
|
11
10
|
"action.delete-rows": "Delete rows",
|
12
11
|
"action.drop-table": "Drop table",
|
13
12
|
"action.add-index": "Add index",
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "button.new-sql" | "action.create-row-table" | "action.create-column-table" | "action.create-external-table" | "action.upsert-to-table" | "action.update-table" | "action.alter-table" | "action.select-rows" | "action.
|
1
|
+
declare const _default: (key: "button.new-sql" | "action.create-row-table" | "action.create-column-table" | "action.create-external-table" | "action.upsert-to-table" | "action.update-table" | "action.alter-table" | "action.select-rows" | "action.delete-rows" | "action.drop-table" | "action.add-index" | "action.drop-index" | "action.drop-external-table" | "menu.tables" | "menu.topics" | "menu.capture" | "menu.replication" | "menu.users" | "action.create-topic" | "action.drop-topic" | "action.alter-topic" | "action.create-cdc-stream" | "action.create-async-replication" | "action.create-user" | "action.create-group" | "action.drop-user" | "action.drop-group" | "action.grant-privilege" | "action.revoke-privilege" | "action.alter-async-replication" | "action.drop-async-replication", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|