ydb-embedded-ui 8.0.0 → 8.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js +4 -2
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js.map +1 -1
- package/dist/containers/AppWithClusters/useClusterData.d.ts +0 -1
- package/dist/containers/AppWithClusters/useClusterData.js +1 -2
- package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +4 -2
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/services/api/meta.d.ts +0 -1
- package/dist/services/api/meta.js +0 -6
- package/dist/services/api/meta.js.map +1 -1
- package/dist/services/parsers/parseMetaCluster.d.ts +0 -3
- package/dist/services/parsers/parseMetaCluster.js +0 -16
- package/dist/services/parsers/parseMetaCluster.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.js +7 -5
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/types/api/cluster.d.ts +0 -6
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/utils/dataFormatters/__test__/formatUptime.test.js +5 -2
- package/dist/utils/dataFormatters/__test__/formatUptime.test.js.map +1 -1
- package/dist/utils/dataFormatters/dataFormatters.js +3 -1
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/monaco/yql/generateSuggestions.d.ts +8 -0
- package/dist/utils/monaco/yql/generateSuggestions.js +28 -11
- package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
- package/dist/utils/monaco/yql/yqlSuggestions.js +6 -1
- package/dist/utils/monaco/yql/yqlSuggestions.js.map +1 -1
- package/package.json +2 -2
@@ -1,5 +1,6 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { ClipboardButton } from '@gravity-ui/uikit';
|
3
|
+
import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
|
3
4
|
import { getVersionColors, getVersionMap } from '../../../utils/clusterVersionColors';
|
4
5
|
import { cn } from '../../../utils/cn';
|
5
6
|
import { getCleanBalancerValue, removeViewerPathname } from '../../../utils/parseBalancer';
|
@@ -64,7 +65,8 @@ const getAdditionalTenantsProps = (clusterName, monitoring, balancer, useCluster
|
|
64
65
|
return additionalTenantsProps;
|
65
66
|
};
|
66
67
|
export function ExtendedCluster({ component: ClusterComponent, getMonitoringLink, getMonitoringClusterLink, }) {
|
67
|
-
const {
|
68
|
-
|
68
|
+
const { versions, useClusterBalancerAsBackend, additionalNodesProps } = useClusterData();
|
69
|
+
const { name, balancer, monitoring } = useClusterBaseInfo();
|
70
|
+
return (_jsx("div", { className: b(), children: _jsx(ClusterComponent, { additionalClusterProps: getAdditionalClusterProps(name, monitoring, balancer, getMonitoringClusterLink), additionalVersionsProps: getAdditionalVersionsProps(versions), additionalTenantsProps: getAdditionalTenantsProps(name, monitoring, balancer, useClusterBalancerAsBackend, getMonitoringLink), additionalNodesProps: additionalNodesProps }) }));
|
69
71
|
}
|
70
72
|
//# sourceMappingURL=ExtendedCluster.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExtendedCluster.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"ExtendedCluster.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAS3E,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AAErC,OAAO,EAAC,qBAAqB,EAAE,oB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UAAU,eAAe,CAAC,EAC5B,SAAS,EAAE,gBAAgB,EAC3B,iBAAiB,EACjB,wBAAwB,GACL;IACnB,MAAM,EAAC,QAAQ,EAAE,2BAA2B,EAAE,oBAAoB,EAAC,GAAG,cAAc,EAAE,CAAC;IAEvF,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAC,GAAG,kBAAkB,EAAE,CAAC;IAE1D,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,EAAE,YACf,KAAC,gBAAgB,IACb,sBAAsB,EAAE,yBAAyB,CAC7C,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,wBAAwB,CAC3B,EACD,uBAAuB,EAAE,0BAA0B,CAAC,QAAQ,CAAC,EAC7D,sBAAsB,EAAE,yBAAyB,CAC7C,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,2BAA2B,EAC3B,iBAAiB,CACpB,EACD,oBAAoB,EAAE,oBAAoB,GAC5C,GACA,CACT,CAAC;AACN,CAAC"}
|
@@ -4,7 +4,6 @@ export declare function useClusterData(): {
|
|
4
4
|
monitoring: string | undefined;
|
5
5
|
balancer: string | undefined;
|
6
6
|
versions: import("../../types/api/meta").MetaClusterVersion[] | undefined;
|
7
|
-
cluster: import("../../types/api/meta").MetaViewerClusterInfo | undefined;
|
8
7
|
};
|
9
8
|
export declare function useAdditionalNodeProps({ balancer }: {
|
10
9
|
balancer?: string;
|
@@ -11,12 +11,11 @@ export function useClusterData() {
|
|
11
11
|
const clusters = data || [];
|
12
12
|
return clusters.find((cluster) => cluster.name === clusterName);
|
13
13
|
}, [data, clusterName]);
|
14
|
-
const { solomon: monitoring, balancer, versions
|
14
|
+
const { solomon: monitoring, balancer, versions } = info || {};
|
15
15
|
return {
|
16
16
|
monitoring,
|
17
17
|
balancer,
|
18
18
|
versions,
|
19
|
-
cluster,
|
20
19
|
...useAdditionalNodeProps({ balancer }),
|
21
20
|
};
|
22
21
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useClusterData.js","sourceRoot":"","sources":["../../../src/containers/AppWithClusters/useClusterData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAC,WAAW,EAAC,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAC,mCAAmC,EAAC,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,MAAM,UAAU,cAAc;IAC1B,MAAM,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IAEhE,MAAM,EAAC,IAAI,EAAC,GAAG,WAAW,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAE9D,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC5B,MAAM,QAAQ,GAAG,IAAI,IAAI,EAAE,CAAC;QAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC;IACpE,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;IAExB,MAAM,EAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,
|
1
|
+
{"version":3,"file":"useClusterData.js","sourceRoot":"","sources":["../../../src/containers/AppWithClusters/useClusterData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAC,WAAW,EAAC,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAC,mCAAmC,EAAC,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,MAAM,UAAU,cAAc;IAC1B,MAAM,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IAEhE,MAAM,EAAC,IAAI,EAAC,GAAG,WAAW,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAE9D,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC5B,MAAM,QAAQ,GAAG,IAAI,IAAI,EAAE,CAAC;QAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC;IACpE,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;IAExB,MAAM,EAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAC,GAAG,IAAI,IAAI,EAAE,CAAC;IAE7D,OAAO;QACH,UAAU;QACV,QAAQ;QACR,QAAQ;QACR,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC;KACxC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,EAAC,QAAQ,EAAsB;IAClE,MAAM,CAAC,2BAA2B,CAAC,GAAG,UAAU,CAAU,mCAAmC,CAAC,CAAC;IAE/F,MAAM,oBAAoB,GAAG,uBAAuB,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;IAE5F,OAAO,EAAC,oBAAoB,EAAE,2BAA2B,EAAC,CAAC;AAC/D,CAAC"}
|
@@ -9,7 +9,7 @@ import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
|
|
9
9
|
import { InternalLink } from '../../components/InternalLink';
|
10
10
|
import routes, { getLocationObjectFromHref } from '../../routes';
|
11
11
|
import { useClusterDashboardAvailable } from '../../store/reducers/capabilities/hooks';
|
12
|
-
import { clusterApi, selectClusterTabletsWithFqdn, selectClusterTitle, updateDefaultClusterTab, } from '../../store/reducers/cluster/cluster';
|
12
|
+
import { clusterApi, selectClusterTabletsWithFqdn, selectClusterTitle, updateDefaultClusterTab, useClusterBaseInfo, } from '../../store/reducers/cluster/cluster';
|
13
13
|
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
14
14
|
import { cn } from '../../utils/cn';
|
15
15
|
import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
@@ -33,7 +33,9 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
33
33
|
clusterName: StringParam,
|
34
34
|
backend: StringParam,
|
35
35
|
});
|
36
|
-
const
|
36
|
+
const viewerClusterTitle = useTypedSelector((state) => selectClusterTitle(state, clusterName !== null && clusterName !== void 0 ? clusterName : undefined));
|
37
|
+
const { title: metaClusterTitle } = useClusterBaseInfo();
|
38
|
+
const clusterTitle = metaClusterTitle !== null && metaClusterTitle !== void 0 ? metaClusterTitle : viewerClusterTitle;
|
37
39
|
const { data: { clusterData: cluster = {}, groupsStats } = {}, isLoading: infoLoading, error, } = clusterApi.useGetClusterInfoQuery(clusterName !== null && clusterName !== void 0 ? clusterName : undefined);
|
38
40
|
const clusterError = error && typeof error === 'object' ? error : undefined;
|
39
41
|
const clusterTablets = useTypedSelector((state) => selectClusterTabletsWithFqdn(state, clusterName !== null && clusterName !== void 0 ? clusterName : undefined));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Cluster.js","sourceRoot":"","sources":["../../../src/containers/Cluster/Cluster.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;A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IACpC,CAAC;SAAM,CAAC;QACJ,SAAS,GAAG,UAAU,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;YAC3B,QAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;QACjD,CAAC;IACL,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEtC,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
@@ -14,7 +14,7 @@ export declare const COLUMNS_NAMES: {
|
|
14
14
|
readonly DESCRIPTION: "description";
|
15
15
|
readonly BALANCER: "balancer";
|
16
16
|
};
|
17
|
-
export declare const DEFAULT_COLUMNS: ("nodes" | "storage" | "status" | "hosts" | "versions" | "
|
17
|
+
export declare const DEFAULT_COLUMNS: ("nodes" | "storage" | "status" | "hosts" | "versions" | "tenants" | "service" | "load" | "owner" | "title" | "balancer")[];
|
18
18
|
export declare const COLUMNS_TITLES: {
|
19
19
|
readonly title: "Cluster";
|
20
20
|
readonly versions: "Versions";
|
@@ -6,7 +6,6 @@ export declare class MetaAPI extends BaseYdbAPI {
|
|
6
6
|
getClustersList(_?: never, { signal }?: {
|
7
7
|
signal?: AbortSignal;
|
8
8
|
}): Promise<MetaClusters>;
|
9
|
-
getClusterInfo(clusterName?: string, { signal }?: AxiosOptions): Promise<import("../../types/api/cluster").TClusterInfoV1 | import("../../types/api/cluster").TClusterInfoV2>;
|
10
9
|
getTenants(clusterName?: string, { signal }?: AxiosOptions): Promise<import("../../types/api/tenant").TTenantInfo>;
|
11
10
|
getClusterBaseInfo(clusterName: string, { concurrentId, signal }?: AxiosOptions): Promise<MetaBaseClusterInfo>;
|
12
11
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { metaBackend as META_BACKEND } from '../../store';
|
2
|
-
import { parseMetaCluster } from '../parsers/parseMetaCluster';
|
3
2
|
import { parseMetaTenants } from '../parsers/parseMetaTenants';
|
4
3
|
import { BaseYdbAPI } from './base';
|
5
4
|
export class MetaAPI extends BaseYdbAPI {
|
@@ -11,11 +10,6 @@ export class MetaAPI extends BaseYdbAPI {
|
|
11
10
|
requestConfig: { signal },
|
12
11
|
});
|
13
12
|
}
|
14
|
-
getClusterInfo(clusterName, { signal } = {}) {
|
15
|
-
return this.get(this.getPath('/meta/cluster'), {
|
16
|
-
name: clusterName,
|
17
|
-
}, { concurrentId: `getCluster${clusterName}`, requestConfig: { signal } }).then(parseMetaCluster);
|
18
|
-
}
|
19
13
|
getTenants(clusterName, { signal } = {}) {
|
20
14
|
return this.get(this.getPath('/meta/cp_databases'), {
|
21
15
|
cluster_name: clusterName,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/services/api/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,IAAI,YAAY,EAAC,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/services/api/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,IAAI,YAAY,EAAC,MAAM,aAAa,CAAC;AAOxD,OAAO,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAG7D,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,OAAO,OAAQ,SAAQ,UAAU;IACnC,OAAO,CAAC,IAAY;QAChB,OAAO,GAAG,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,EAAE,GAAG,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,eAAe,CAAC,CAAS,EAAE,EAAC,MAAM,KAA4B,EAAE;QAC5D,OAAO,IAAI,CAAC,GAAG,CAAe,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE;YAChE,aAAa,EAAE,EAAC,MAAM,EAAC;SAC1B,CAAC,CAAC;IACP,CAAC;IAED,UAAU,CAAC,WAAoB,EAAE,EAAC,MAAM,KAAkB,EAAE;QACxD,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAClC;YACI,YAAY,EAAE,WAAW;SAC5B,EACD,EAAC,aAAa,EAAE,EAAC,MAAM,EAAC,EAAC,CAC5B,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC7B,CAAC;IAED,kBAAkB,CACd,WAAmB,EACnB,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QAEzC,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EACjC;YACI,IAAI,EAAE,WAAW;SACpB,EACD,EAAC,YAAY,EAAE,aAAa,EAAE,EAAC,MAAM,EAAC,EAAC,CAC1C,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;CACJ"}
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { TClusterInfo } from '../../types/api/cluster';
|
2
|
-
import type { MetaCluster } from '../../types/api/meta';
|
3
|
-
export declare const parseMetaCluster: (data: MetaCluster) => TClusterInfo;
|
4
1
|
export declare function parseTraceFields({ traceCheck, traceView, }: {
|
5
2
|
traceCheck?: string;
|
6
3
|
traceView?: string;
|
@@ -1,20 +1,4 @@
|
|
1
1
|
import { traceCheckSchema, traceViewSchema } from '../../types/api/trace';
|
2
|
-
export const parseMetaCluster = (data) => {
|
3
|
-
const { cluster = {} } = data;
|
4
|
-
const { cluster: generalClusterInfo, balancer, solomon, trace_check: traceCheck, trace_view: traceView, } = cluster;
|
5
|
-
const { traceCheck: TraceCheck, traceView: TraceView } = parseTraceFields({
|
6
|
-
traceCheck,
|
7
|
-
traceView,
|
8
|
-
});
|
9
|
-
return {
|
10
|
-
...generalClusterInfo,
|
11
|
-
Name: cluster.title || (generalClusterInfo === null || generalClusterInfo === void 0 ? void 0 : generalClusterInfo.Name),
|
12
|
-
Balancer: balancer,
|
13
|
-
Solomon: solomon,
|
14
|
-
TraceCheck,
|
15
|
-
TraceView,
|
16
|
-
};
|
17
|
-
};
|
18
2
|
export function parseTraceFields({ traceCheck, traceView, }) {
|
19
3
|
try {
|
20
4
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parseMetaCluster.js","sourceRoot":"","sources":["../../../src/services/parsers/parseMetaCluster.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"parseMetaCluster.js","sourceRoot":"","sources":["../../../src/services/parsers/parseMetaCluster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAExE,MAAM,UAAU,gBAAgB,CAAC,EAC7B,UAAU,EACV,SAAS,GAIZ;IACG,IAAI,CAAC;QACD,OAAO;YACH,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;YACnF,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;SAClF,CAAC;IACN,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACT,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;IACpD,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC"}
|
@@ -43,9 +43,9 @@ export const clusterApi = api.injectEndpoints({
|
|
43
43
|
getClusterInfo: builder.query({
|
44
44
|
queryFn: async (clusterName, { signal }) => {
|
45
45
|
try {
|
46
|
-
const clusterData = window.api.
|
47
|
-
|
48
|
-
|
46
|
+
const clusterData = await window.api.viewer.getClusterInfo(clusterName, {
|
47
|
+
signal,
|
48
|
+
});
|
49
49
|
const clusterRoot = clusterData.Domain;
|
50
50
|
// Without domain we cannot get stats from system tables
|
51
51
|
if (!clusterRoot) {
|
@@ -122,8 +122,10 @@ export function useClusterBaseInfo() {
|
|
122
122
|
const createClusterInfoSelector = createSelector((clusterName) => clusterName, (clusterName) => clusterApi.endpoints.getClusterInfo.select(clusterName));
|
123
123
|
const selectClusterInfo = createSelector((state) => state, (_state, clusterName) => createClusterInfoSelector(clusterName), (state, selectGetClusterInfo) => selectGetClusterInfo(state).data);
|
124
124
|
export const selectClusterTitle = createSelector((_state, clusterName) => clusterName, (state, clusterName) => selectClusterInfo(state, clusterName), (clusterName, clusterInfo) => {
|
125
|
-
|
126
|
-
return
|
125
|
+
var _a;
|
126
|
+
return (clusterName ||
|
127
|
+
normalizeDomain((_a = clusterInfo === null || clusterInfo === void 0 ? void 0 : clusterInfo.clusterData) === null || _a === void 0 ? void 0 : _a.Domain) ||
|
128
|
+
CLUSTER_DEFAULT_TITLE);
|
127
129
|
});
|
128
130
|
export const selectClusterTabletsWithFqdn = createSelector((state, clusterName) => selectClusterInfo(state, clusterName), (state) => selectNodeHostsMap(state), (data, nodeHostsMap) => {
|
129
131
|
var _a;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../../src/store/reducers/cluster/cluster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EAAC,qBAAqB,EAAE,uBAAuB,EAAC,MAAM,0BAA0B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C;AACP,CAAC,CACJ,CAAC"}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { EFlag } from './enums';
|
2
2
|
import type { TTabletStateInfo } from './tablet';
|
3
|
-
import type { TTraceCheck, TTraceView } from './trace';
|
4
3
|
/**
|
5
4
|
* endpoint: viewer/json/cluster
|
6
5
|
*
|
@@ -8,7 +7,6 @@ import type { TTraceCheck, TTraceView } from './trace';
|
|
8
7
|
*/
|
9
8
|
export interface TClusterInfoV1 {
|
10
9
|
error?: string;
|
11
|
-
Name?: string;
|
12
10
|
Overall?: EFlag;
|
13
11
|
NodesTotal?: number;
|
14
12
|
NodesAlive?: number;
|
@@ -34,10 +32,6 @@ export interface TClusterInfoV1 {
|
|
34
32
|
Tablets?: string;
|
35
33
|
/** Cluster root database */
|
36
34
|
Domain?: string;
|
37
|
-
Balancer?: string;
|
38
|
-
Solomon?: string;
|
39
|
-
TraceView?: TTraceView;
|
40
|
-
TraceCheck?: TTraceCheck;
|
41
35
|
}
|
42
36
|
export interface TStorageStats {
|
43
37
|
PDiskFilter?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../src/types/api/cluster.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../src/types/api/cluster.ts"],"names":[],"mappings":"AA4EA,MAAM,UAAU,eAAe,CAAC,IAAmB;IAC/C,OAAO,IAAI;QACP,CAAC,CAAC,SAAS,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC;QAC5E,CAAC,CAAC,KAAK,CAAC;AAChB,CAAC"}
|
@@ -25,9 +25,12 @@ describe('formatUptimeInSeconds', () => {
|
|
25
25
|
const H = 60 * M;
|
26
26
|
const D = 24 * H;
|
27
27
|
it('should return days if value is more than 24h', () => {
|
28
|
-
expect(formatUptimeInSeconds(
|
28
|
+
expect(formatUptimeInSeconds(24 * H)).toBe('1d' + UNBREAKABLE_GAP + '00:00:00');
|
29
29
|
expect(formatUptimeInSeconds(D + H + M + 12)).toBe('1d' + UNBREAKABLE_GAP + '01:01:12');
|
30
|
-
|
30
|
+
// 1 week
|
31
|
+
expect(formatUptimeInSeconds(7 * D + H + M + 12)).toBe('7d' + UNBREAKABLE_GAP + '01:01:12');
|
32
|
+
// 1 month
|
33
|
+
expect(formatUptimeInSeconds(30 * D + 11 * H + 30 * M + 12)).toBe('30d' + UNBREAKABLE_GAP + '11:30:12');
|
31
34
|
expect(formatUptimeInSeconds(1234 * D + 12 * H + 12 * M + 12)).toBe('1234d' + UNBREAKABLE_GAP + '12:12:12');
|
32
35
|
});
|
33
36
|
it('should return hours if value is less than 24h', () => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatUptime.test.js","sourceRoot":"","sources":["../../../../src/utils/dataFormatters/__test__/formatUptime.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EACH,qBAAqB,EACrB,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,mBAAmB,CAAC;AAE3B,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC1C,MAAM,CAAC,0BAA0B,CAAC,OAAS,EAAE,OAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QAChD,MAAM,CAAC,0BAA0B,CAAC,OAAS,EAAE,OAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AACH,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC1C,EAA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IAC3E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -39,7 +39,9 @@ export function formatUptimeInSeconds(seconds) {
|
|
39
39
|
const sign = seconds < 0 ? '-' : '';
|
40
40
|
const d = duration(Math.abs(seconds), 's').rescale();
|
41
41
|
let value;
|
42
|
-
|
42
|
+
// Do not use just d.days(), since days could be rescaled up to weeks and more
|
43
|
+
// So for 7d we will have d.weeks() = 1 and d.days() = 0
|
44
|
+
if (Math.floor(d.asDays()) > 0) {
|
43
45
|
value = d.format(`d[${i18n('d')}${UNBREAKABLE_GAP}]hh:mm:ss`);
|
44
46
|
}
|
45
47
|
else if (d.hours() > 0) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dataFormatters.js","sourceRoot":"","sources":["../../../src/utils/dataFormatters/dataFormatters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAG/D,OAAO,EACH,WAAW,IAAI,iBAAiB,EAChC,4BAA4B,GAC/B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAC,sBAAsB,EAAE,eAAe,EAAC,MAAM,cAAc,CAAC;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAE,SAAS,EAAC,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,sBAAsB,EAAE,8BAA8B,EAAC,MAAM,gBAAgB,CAAC;AAEtF,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,sDAAsD;AACtD,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IACnD,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,EAAE,CAAC;IACd,CAAC;IAED,qDAAqD;IACrD,OAAO,iBAAiB,CAAC,KAAK,CAA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B,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAElE,OAAO,GAAG,cAAc,IAAI,IAAI,CAAC,kBAAkB,EAAE,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC,EAAE,CAAC;AAC3E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAuB,EAAE,YAAY,GAAG,EAAE,EAAE,EAAE;;IACzE,MAAM,aAAa,GAAG,MAAA,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,0CAAE,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAE/E,OAAO,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,YAAY,CAAC;AACzC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAE,YAAY,GAAG,EAAE,EAAE,EAAE;;IAC1E,MAAM,aAAa,GAAG,MAAA,aAAa,CAAC,KAAK,CAAC,0CAAE,MAAM,CAAC,yBAAyB,CAAC,CAAC;IAE9E,OAAO,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,YAAY,CAAC;AACzC,CAAC,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC7C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,EAAE,CAAC;IACd,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;SAAM,CAAC;QACJ,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC5B,CAAC;AACL,CAAC"}
|
@@ -18,6 +18,14 @@ export declare function generateKeywordsSuggestion(rangeToInsertSuggestion: mona
|
|
18
18
|
range: monaco.IRange;
|
19
19
|
sortText: string;
|
20
20
|
}[];
|
21
|
+
export declare function generateVariableSuggestion(rangeToInsertSuggestion: monaco.IRange, suggestVariables?: string[]): {
|
22
|
+
label: string;
|
23
|
+
insertText: string;
|
24
|
+
kind: monaco.languages.CompletionItemKind;
|
25
|
+
detail: string;
|
26
|
+
range: monaco.IRange;
|
27
|
+
sortText: string;
|
28
|
+
}[];
|
21
29
|
export declare function generateEntitiesSuggestion(rangeToInsertSuggestion: monaco.IRange, suggestEntities: YQLEntity[], database: string, prefix?: string): Promise<monaco.languages.CompletionItem[]>;
|
22
30
|
export declare function generateSimpleFunctionsSuggestion(rangeToInsertSuggestion: monaco.IRange): Promise<monaco.languages.CompletionItem[]>;
|
23
31
|
export declare function generateSimpleTypesSuggestion(rangeToInsertSuggestion: monaco.IRange): Promise<monaco.languages.CompletionItem[]>;
|
@@ -97,16 +97,17 @@ const SuggestionsWeight = {
|
|
97
97
|
suggestAllColumns: 3,
|
98
98
|
suggestColumns: 4,
|
99
99
|
suggestColumnAliases: 5,
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
100
|
+
suggestVariables: 6,
|
101
|
+
suggestTableIndexes: 7,
|
102
|
+
suggestTableHints: 8,
|
103
|
+
suggestEntitySettings: 9,
|
104
|
+
suggestKeywords: 10,
|
105
|
+
suggestAggregateFunctions: 11,
|
106
|
+
suggestTableFunctions: 12,
|
107
|
+
suggestWindowFunctions: 13,
|
108
|
+
suggestFunctions: 14,
|
109
|
+
suggestSimpleTypes: 15,
|
110
|
+
suggestUdfs: 16,
|
110
111
|
};
|
111
112
|
function getSuggestionIndex(suggestionType) {
|
112
113
|
return SuggestionsWeight[suggestionType];
|
@@ -259,7 +260,7 @@ export function generateKeywordsSuggestion(rangeToInsertSuggestion, suggestKeywo
|
|
259
260
|
if (!suggestKeywords) {
|
260
261
|
return [];
|
261
262
|
}
|
262
|
-
return suggestKeywords
|
263
|
+
return suggestKeywords.map((keywordSuggestion) => ({
|
263
264
|
label: keywordSuggestion.value,
|
264
265
|
insertText: keywordSuggestion.value,
|
265
266
|
kind: CompletionItemKind.Keyword,
|
@@ -268,6 +269,22 @@ export function generateKeywordsSuggestion(rangeToInsertSuggestion, suggestKeywo
|
|
268
269
|
sortText: suggestionIndexToWeight(getSuggestionIndex('suggestKeywords')),
|
269
270
|
}));
|
270
271
|
}
|
272
|
+
export function generateVariableSuggestion(rangeToInsertSuggestion, suggestVariables) {
|
273
|
+
if (!suggestVariables) {
|
274
|
+
return [];
|
275
|
+
}
|
276
|
+
return suggestVariables.map((rawVariable) => {
|
277
|
+
const variable = '$' + rawVariable;
|
278
|
+
return {
|
279
|
+
label: variable,
|
280
|
+
insertText: variable,
|
281
|
+
kind: CompletionItemKind.Variable,
|
282
|
+
detail: 'Variable',
|
283
|
+
range: rangeToInsertSuggestion,
|
284
|
+
sortText: suggestionIndexToWeight(getSuggestionIndex('suggestVariables')),
|
285
|
+
};
|
286
|
+
});
|
287
|
+
}
|
271
288
|
export async function generateEntitiesSuggestion(rangeToInsertSuggestion, suggestEntities, database, prefix) {
|
272
289
|
const normalizedPrefix = normalizeEntityPrefix(prefix, database);
|
273
290
|
const data = await window.api.viewer.autocomplete({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generateSuggestions.js","sourceRoot":"","sources":["../../../../src/utils/monaco/yql/generateSuggestions.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,wCAAwC,CAAC;AAEjE,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AAOrE,OAAO,EACH,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,eAAe,EACf,WAAW,EACX,aAAa,EACb,IAAI,EACJ,eAAe,GAClB,MAAM,aAAa,CAAC;AAErB,MAAM,kBAAkB,GAEpB;IACA,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,CAAC;IACX,WAAW,EAAE,CAAC;IACd,KAAK,EAAE,CAAC;IACR,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CA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C,EACtC,UAAqB;IAErB,MAAM,cAAc,GAAG,MAAM,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAC3D,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/B,KAAK,EAAE,EAAE;QACT,UAAU,EAAE,EAAE;QACd,IAAI,EAAE,kBAAkB,CAAC,QAAQ;QACjC,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,uBAAuB;QAC9B,QAAQ,EAAE,uBAAuB,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;KACjF,CAAC,CAAC,CAAC;AACR,CAAC;AAED,MAAM,QAAQ,GAAG,4BAA4B,CAAC;AAE9C,SAAS,uBAAuB,CAAC,KAAa;IAC1C,MAAM,uBAAuB,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChD,IAAI,uBAAuB,EAAE,CAAC;QAC1B,OAAO,uBAAuB,CAAC;IACnC,CAAC;IAED,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3D,MAAM,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;IAExC,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAEzC,OAAO,aAAa,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;AACpE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateAggregateFunctionsSuggestion, generateColumnAliasesSuggestion, generateColumnsSuggestion, generateEntitiesSuggestion, generateEntitySettingsSuggestion, generateKeywordsSuggestion, generatePragmasSuggestion, generateSimpleFunctionsSuggestion, generateSimpleTypesSuggestion, generateTableFunctionsSuggestion, generateUdfSuggestion, generateWindowFunctionsSuggestion, } from './generateSuggestions';
|
1
|
+
import { generateAggregateFunctionsSuggestion, generateColumnAliasesSuggestion, generateColumnsSuggestion, generateEntitiesSuggestion, generateEntitySettingsSuggestion, generateKeywordsSuggestion, generatePragmasSuggestion, generateSimpleFunctionsSuggestion, generateSimpleTypesSuggestion, generateTableFunctionsSuggestion, generateUdfSuggestion, generateVariableSuggestion, generateWindowFunctionsSuggestion, } from './generateSuggestions';
|
2
2
|
export function createProvideSuggestionsFunction(database) {
|
3
3
|
return async (model, monacoCursorPosition, _context, _token) => {
|
4
4
|
const rangeToInsertSuggestion = getRangeToInsertSuggestion(model, monacoCursorPosition);
|
@@ -28,6 +28,7 @@ async function getSuggestions(model, cursorPosition, rangeToInsertSuggestion, da
|
|
28
28
|
let simpleTypesSuggestions = [];
|
29
29
|
let pragmasSuggestions = [];
|
30
30
|
let entitySettingsSuggestions = [];
|
31
|
+
let variableSuggestions = [];
|
31
32
|
if (parseResult.suggestEntity) {
|
32
33
|
const entityNamePrefix = getEntityNameAtCursor(model, cursorPosition);
|
33
34
|
entitiesSuggestions = await generateEntitiesSuggestion(rangeToInsertSuggestion, parseResult.suggestEntity, database, entityNamePrefix);
|
@@ -49,6 +50,9 @@ async function getSuggestions(model, cursorPosition, rangeToInsertSuggestion, da
|
|
49
50
|
if (parseResult.suggestSimpleTypes) {
|
50
51
|
simpleTypesSuggestions = await generateSimpleTypesSuggestion(rangeToInsertSuggestion);
|
51
52
|
}
|
53
|
+
if (parseResult.suggestVariables) {
|
54
|
+
variableSuggestions = generateVariableSuggestion(rangeToInsertSuggestion, parseResult.suggestVariables);
|
55
|
+
}
|
52
56
|
if (parseResult.suggestUdfs) {
|
53
57
|
udfsSuggestions = await generateUdfSuggestion(rangeToInsertSuggestion);
|
54
58
|
}
|
@@ -74,6 +78,7 @@ async function getSuggestions(model, cursorPosition, rangeToInsertSuggestion, da
|
|
74
78
|
...keywordsSuggestions,
|
75
79
|
...aggregateFunctionsSuggestions,
|
76
80
|
...entitySettingsSuggestions,
|
81
|
+
...variableSuggestions,
|
77
82
|
];
|
78
83
|
return suggestions;
|
79
84
|
}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,CAAC,CAAC,mBAAmB,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7F,OAAO;QACH,WAAW,EAAE,mBAAmB,GAAG,yBAAyB;QAC5D,eAAe,EAAE,cAAc,CAAC,UAAU;QAC1C,SAAS,EAAE,iBAAiB;QAC5B,aAAa,EAAE,cAAc,CAAC,UAAU;KAC3C,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.1.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"@gravity-ui/react-data-table": "^2.1.1",
|
25
25
|
"@gravity-ui/table": "^1.7.0",
|
26
26
|
"@gravity-ui/uikit": "^6.33.0",
|
27
|
-
"@gravity-ui/websql-autocomplete": "^12.
|
27
|
+
"@gravity-ui/websql-autocomplete": "^12.7.0",
|
28
28
|
"@hookform/resolvers": "^3.9.0",
|
29
29
|
"@reduxjs/toolkit": "^2.2.3",
|
30
30
|
"@tanstack/react-table": "^8.19.3",
|