ydb-embedded-ui 8.0.0 → 8.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. package/dist/components/CellWithPopover/CellWithPopover.js +1 -1
  2. package/dist/components/CellWithPopover/CellWithPopover.js.map +1 -1
  3. package/dist/components/CellWithPopover/CellWithPopover.scss +5 -1
  4. package/dist/components/FullNodeViewer/FullNodeViewer.js +5 -1
  5. package/dist/components/FullNodeViewer/FullNodeViewer.js.map +1 -1
  6. package/dist/components/Stack/Stack.scss +1 -1
  7. package/dist/components/Table/Table.scss +1 -1
  8. package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js +4 -2
  9. package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js.map +1 -1
  10. package/dist/components/UptimeViewer/UptimeViewer.d.ts +10 -0
  11. package/dist/components/UptimeViewer/UptimeViewer.js +30 -0
  12. package/dist/components/UptimeViewer/UptimeViewer.js.map +1 -0
  13. package/dist/components/UptimeViewer/i18n/en.json +5 -0
  14. package/dist/components/UptimeViewer/i18n/index.d.ts +2 -0
  15. package/dist/components/UptimeViewer/i18n/index.js +5 -0
  16. package/dist/components/UptimeViewer/i18n/index.js.map +1 -0
  17. package/dist/components/nodesColumns/columns.d.ts +1 -1
  18. package/dist/components/nodesColumns/columns.js +4 -1
  19. package/dist/components/nodesColumns/columns.js.map +1 -1
  20. package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js +4 -2
  21. package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js.map +1 -1
  22. package/dist/containers/AppWithClusters/useClusterData.d.ts +0 -1
  23. package/dist/containers/AppWithClusters/useClusterData.js +1 -2
  24. package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
  25. package/dist/containers/Cluster/Cluster.js +4 -2
  26. package/dist/containers/Cluster/Cluster.js.map +1 -1
  27. package/dist/containers/Clusters/constants.d.ts +1 -1
  28. package/dist/containers/Storage/Disks/Disks.scss +1 -1
  29. package/dist/containers/Storage/PDisk/PDisk.d.ts +2 -1
  30. package/dist/containers/Storage/PDisk/PDisk.js +7 -2
  31. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  32. package/dist/containers/Storage/PDisk/PDisk.scss +21 -7
  33. package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +5 -11
  34. package/dist/containers/Storage/StorageNodes/columns/columns.js +1 -1
  35. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  36. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +2 -2
  37. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -1
  38. package/dist/containers/Tablet/components/TabletTable/TabletTable.js +5 -2
  39. package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -1
  40. package/dist/containers/Tablets/TabletsTable.js +3 -2
  41. package/dist/containers/Tablets/TabletsTable.js.map +1 -1
  42. package/dist/containers/Tenant/Diagnostics/HotKeys/i18n/index.d.ts +1 -1
  43. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.d.ts +1 -1
  44. package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +2 -2
  45. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +1 -1
  46. package/dist/services/api/meta.d.ts +0 -1
  47. package/dist/services/api/meta.js +0 -6
  48. package/dist/services/api/meta.js.map +1 -1
  49. package/dist/services/parsers/parseMetaCluster.d.ts +0 -3
  50. package/dist/services/parsers/parseMetaCluster.js +0 -16
  51. package/dist/services/parsers/parseMetaCluster.js.map +1 -1
  52. package/dist/store/reducers/cluster/cluster.js +7 -5
  53. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  54. package/dist/store/reducers/nodes/types.d.ts +0 -1
  55. package/dist/store/reducers/storage/types.d.ts +1 -0
  56. package/dist/store/reducers/storage/utils.d.ts +2 -1
  57. package/dist/store/reducers/storage/utils.js +12 -3
  58. package/dist/store/reducers/storage/utils.js.map +1 -1
  59. package/dist/types/api/cluster.d.ts +0 -6
  60. package/dist/types/api/cluster.js.map +1 -1
  61. package/dist/types/api/nodes.d.ts +2 -0
  62. package/dist/types/api/nodes.js.map +1 -1
  63. package/dist/utils/dataFormatters/__test__/formatUptime.test.js +6 -4
  64. package/dist/utils/dataFormatters/__test__/formatUptime.test.js.map +1 -1
  65. package/dist/utils/dataFormatters/dataFormatters.d.ts +8 -5
  66. package/dist/utils/dataFormatters/dataFormatters.js +8 -5
  67. package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
  68. package/dist/utils/monaco/insertSnippet.d.ts +1 -1
  69. package/dist/utils/monaco/insertSnippet.js +20 -2
  70. package/dist/utils/monaco/insertSnippet.js.map +1 -1
  71. package/dist/utils/monaco/yql/generateSuggestions.d.ts +8 -0
  72. package/dist/utils/monaco/yql/generateSuggestions.js +28 -11
  73. package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
  74. package/dist/utils/monaco/yql/yqlSuggestions.js +6 -1
  75. package/dist/utils/monaco/yql/yqlSuggestions.js.map +1 -1
  76. package/dist/utils/nodes.d.ts +0 -1
  77. package/dist/utils/nodes.js +0 -9
  78. package/dist/utils/nodes.js.map +1 -1
  79. package/package.json +2 -2
  80. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.d.ts +0 -1
  81. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js +0 -354
  82. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js.map +0 -1
@@ -1,7 +1,25 @@
1
- export function insertSnippetToEditor(input) {
1
+ export async function insertSnippetToEditor(input) {
2
2
  var _a;
3
- if (!window.ydbEditor) {
3
+ let retry = 1;
4
+ const checkEditor = async () => {
5
+ if (!window.ydbEditor) {
6
+ if (retry) {
7
+ await new Promise((r) => {
8
+ window.setTimeout(r, 100);
9
+ });
10
+ retry -= 1;
11
+ checkEditor();
12
+ }
13
+ else {
14
+ return false;
15
+ }
16
+ }
17
+ return true;
18
+ };
19
+ const editor = await checkEditor();
20
+ if (!editor) {
4
21
  console.error('Monaco editor not found');
22
+ return;
5
23
  }
6
24
  (_a = window.ydbEditor) === null || _a === void 0 ? void 0 : _a.trigger(undefined, 'insertSnippetToEditor', input);
7
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"insertSnippet.js","sourceRoot":"","sources":["../../../src/utils/monaco/insertSnippet.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,qBAAqB,CAAC,KAAa;;IAC/C,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QACpB,OAAO,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,MAAA,MAAM,CAAC,SAAS,0CAAE,OAAO,CAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,CAAC,CAAC;AACzE,CAAC"}
1
+ {"version":3,"file":"insertSnippet.js","sourceRoot":"","sources":["../../../src/utils/monaco/insertSnippet.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,KAAa;;IACrD,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,MAAM,WAAW,GAAG,KAAK,IAAI,EAAE;QAC3B,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;YACpB,IAAI,KAAK,EAAE,CAAC;gBACR,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;oBACpB,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;gBAC9B,CAAC,CAAC,CAAC;gBACH,KAAK,IAAI,CAAC,CAAC;gBACX,WAAW,EAAE,CAAC;YAClB,CAAC;iBAAM,CAAC;gBACJ,OAAO,KAAK,CAAC;YACjB,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,WAAW,EAAE,CAAC;IACnC,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,OAAO,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QACzC,OAAO;IACX,CAAC;IAED,MAAA,MAAM,CAAC,SAAS,0CAAE,OAAO,CAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,CAAC,CAAC;AACzE,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
- suggestTableIndexes: 6,
101
- suggestTableHints: 7,
102
- suggestEntitySettings: 8,
103
- suggestKeywords: 9,
104
- suggestAggregateFunctions: 10,
105
- suggestTableFunctions: 11,
106
- suggestWindowFunctions: 12,
107
- suggestFunctions: 13,
108
- suggestSimpleTypes: 14,
109
- suggestUdfs: 15,
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 === null || suggestKeywords === void 0 ? void 0 : suggestKeywords.map((keywordSuggestion) => ({
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,EAA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AE,uBAAuB,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;KAC1E,CAAC,CAAC,CAAC;AACR,CAAC;AACD,MAAM,CAAC,KAAK,UAAU,gCAAgC,CAClD,uBAAsC,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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AO;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"}
@@ -19,7 +19,6 @@ export interface PreparedNodeSystemState extends TSystemStateInfo {
19
19
  Rack?: string;
20
20
  DC?: string;
21
21
  LoadAveragePercents?: number[];
22
- Uptime: string;
23
22
  TenantName?: string;
24
23
  SharedCacheLimit?: number;
25
24
  SharedCacheUsed?: number;
@@ -2,7 +2,6 @@ import { z } from 'zod';
2
2
  import { ProblemFilterValues } from '../store/reducers/settings/settings';
3
3
  import { EFlag } from '../types/api/enums';
4
4
  import { HOUR_IN_SECONDS } from './constants';
5
- import { getDowntimeFromDateFormatted, getUptimeFromDateFormatted, } from './dataFormatters/dataFormatters';
6
5
  import { valueIsDefined } from '.';
7
6
  export var NodesUptimeFilterValues;
8
7
  (function (NodesUptimeFilterValues) {
@@ -40,13 +39,6 @@ export function prepareNodeSystemState(systemState = {}) {
40
39
  const Rack = ((_a = systemState.Location) === null || _a === void 0 ? void 0 : _a.Rack) || systemState.Rack;
41
40
  const DC = ((_b = systemState.Location) === null || _b === void 0 ? void 0 : _b.DataCenter) || systemState.DataCenter;
42
41
  const TenantName = (_c = systemState === null || systemState === void 0 ? void 0 : systemState.Tenants) === null || _c === void 0 ? void 0 : _c[0];
43
- let Uptime;
44
- if (systemState.DisconnectTime) {
45
- Uptime = getDowntimeFromDateFormatted(systemState.DisconnectTime);
46
- }
47
- else {
48
- Uptime = getUptimeFromDateFormatted(systemState.StartTime);
49
- }
50
42
  const LoadAveragePercents = calculateLoadAveragePercents(systemState);
51
43
  // 0 limit means that limit is not set, so it should be undefined
52
44
  const SharedCacheLimit = Number((_d = systemState.SharedCacheStats) === null || _d === void 0 ? void 0 : _d.LimitBytes) || undefined;
@@ -57,7 +49,6 @@ export function prepareNodeSystemState(systemState = {}) {
57
49
  ...systemState,
58
50
  Rack,
59
51
  DC,
60
- Uptime,
61
52
  LoadAveragePercents,
62
53
  TenantName,
63
54
  SharedCacheLimit,
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAKzC,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EACH,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAC,cAAc,EAAC,MAAM,GAAG,CAAC;AAEjC,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,sCAAa,CAAA;IACb,sDAA6B,CAAA;AACjC,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KACzC,UAAU,CAAC,uBAAuB,CAAC;KACnC,KAAK,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;AAExC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,CAAC,uBAAuB,CAAC,GAAG,CAAC,EAAE,KAAK;IACpC,CAAC,uBAAuB,CAAC,WAAW,CAAC,EAAE,aAAa;CACvD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAG7B,IAAO,EACT,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,IAAI,CAAC;AAE1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,SAAuB,EAAE,EAAE;IAC3D,OAAO,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,CAAe,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE;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AAS,CAAC;AACnG,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "8.0.0",
3
+ "version": "8.2.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.1.2",
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",
@@ -1,354 +0,0 @@
1
- import { prepareGroupsPDisk, prepareGroupsVDisk } from '../prepareGroupsDisks';
2
- describe('prepareGroupsVDisk', () => {
3
- it('Should correctly parse data', () => {
4
- const vDiksDataWithoutPDisk = {
5
- VDiskId: '2181038134-22-0-0-0',
6
- NodeId: 224,
7
- AllocatedSize: '30943477760',
8
- AvailableSize: '234461593600',
9
- Status: 'READY',
10
- DiskSpace: 'Green',
11
- Whiteboard: {
12
- VDiskId: {
13
- GroupID: 2181038134,
14
- GroupGeneration: 22,
15
- Ring: 0,
16
- Domain: 0,
17
- VDisk: 0,
18
- },
19
- ChangeTime: '1730273487988',
20
- PDiskId: 1001,
21
- VDiskSlotId: 1019,
22
- Guid: '10619691988133943213',
23
- Kind: '0',
24
- VDiskState: 'OK',
25
- DiskSpace: 'Green',
26
- SatisfactionRank: {
27
- FreshRank: {
28
- Flag: 'Green',
29
- },
30
- LevelRank: {
31
- Flag: 'Green',
32
- },
33
- },
34
- Replicated: true,
35
- UnsyncedVDisks: '3',
36
- AllocatedSize: '30943477760',
37
- AvailableSize: '234461593600',
38
- HasUnreadableBlobs: false,
39
- IncarnationGuid: '14709186654400312808',
40
- InstanceGuid: '18225898175839904663',
41
- FrontQueues: 'Green',
42
- StoragePoolName: '/storage/pool/name',
43
- ReadThroughput: '0',
44
- WriteThroughput: '0',
45
- },
46
- };
47
- const expectedResult = {
48
- VDiskId: {
49
- GroupID: 2181038134,
50
- GroupGeneration: 22,
51
- Ring: 0,
52
- Domain: 0,
53
- VDisk: 0,
54
- },
55
- StringifiedId: '2181038134-22-0-0-0',
56
- NodeId: 224,
57
- PDiskId: 1001,
58
- VDiskSlotId: 1019,
59
- StoragePoolName: '/storage/pool/name',
60
- Kind: '0',
61
- ChangeTime: '1730273487988',
62
- Guid: '10619691988133943213',
63
- IncarnationGuid: '14709186654400312808',
64
- InstanceGuid: '18225898175839904663',
65
- Severity: 1,
66
- VDiskState: 'OK',
67
- DiskSpace: 'Green',
68
- FrontQueues: 'Green',
69
- Status: 'READY',
70
- SatisfactionRank: {
71
- FreshRank: {
72
- Flag: 'Green',
73
- },
74
- LevelRank: {
75
- Flag: 'Green',
76
- },
77
- },
78
- Replicated: true,
79
- UnsyncedVDisks: '3',
80
- HasUnreadableBlobs: false,
81
- ReadThroughput: '0',
82
- WriteThroughput: '0',
83
- AllocatedSize: 30943477760,
84
- AvailableSize: 234461593600,
85
- TotalSize: 265405071360,
86
- AllocatedPercent: 12,
87
- Donors: undefined,
88
- PDisk: undefined,
89
- };
90
- const preparedData = prepareGroupsVDisk(vDiksDataWithoutPDisk);
91
- expect(preparedData).toEqual(expectedResult);
92
- });
93
- it('Should use BSC data when no Whiteboard data', () => {
94
- const vDiksDataWithoutPDisk = {
95
- VDiskId: '2181038134-22-0-0-0',
96
- NodeId: 224,
97
- AllocatedSize: '30943477760',
98
- AvailableSize: '234461593600',
99
- Status: 'READY',
100
- DiskSpace: 'Green',
101
- };
102
- const expectedResult = {
103
- StringifiedId: '2181038134-22-0-0-0',
104
- NodeId: 224,
105
- Severity: 0,
106
- DiskSpace: 'Green',
107
- Status: 'READY',
108
- AllocatedSize: 30943477760,
109
- AvailableSize: 234461593600,
110
- TotalSize: 265405071360,
111
- AllocatedPercent: 12,
112
- };
113
- const preparedData = prepareGroupsVDisk(vDiksDataWithoutPDisk);
114
- expect(preparedData).toEqual(expectedResult);
115
- });
116
- it('Should use Whiteboard data when no BSC data', () => {
117
- const vDiksDataWithoutPDisk = {
118
- Whiteboard: {
119
- VDiskId: {
120
- GroupID: 2181038134,
121
- GroupGeneration: 22,
122
- Ring: 0,
123
- Domain: 0,
124
- VDisk: 0,
125
- },
126
- ChangeTime: '1730273487988',
127
- PDiskId: 1001,
128
- VDiskSlotId: 1019,
129
- Guid: '10619691988133943213',
130
- Kind: '0',
131
- VDiskState: 'OK',
132
- DiskSpace: 'Green',
133
- SatisfactionRank: {
134
- FreshRank: {
135
- Flag: 'Green',
136
- },
137
- LevelRank: {
138
- Flag: 'Green',
139
- },
140
- },
141
- Replicated: true,
142
- UnsyncedVDisks: '3',
143
- AllocatedSize: '30943477760',
144
- AvailableSize: '234461593600',
145
- HasUnreadableBlobs: false,
146
- IncarnationGuid: '14709186654400312808',
147
- InstanceGuid: '18225898175839904663',
148
- FrontQueues: 'Green',
149
- StoragePoolName: '/storage/pool/name',
150
- ReadThroughput: '0',
151
- WriteThroughput: '0',
152
- },
153
- };
154
- const expectedResult = {
155
- VDiskId: {
156
- GroupID: 2181038134,
157
- GroupGeneration: 22,
158
- Ring: 0,
159
- Domain: 0,
160
- VDisk: 0,
161
- },
162
- StringifiedId: '2181038134-22-0-0-0',
163
- PDiskId: 1001,
164
- VDiskSlotId: 1019,
165
- StoragePoolName: '/storage/pool/name',
166
- Kind: '0',
167
- ChangeTime: '1730273487988',
168
- Guid: '10619691988133943213',
169
- IncarnationGuid: '14709186654400312808',
170
- InstanceGuid: '18225898175839904663',
171
- Severity: 1,
172
- VDiskState: 'OK',
173
- DiskSpace: 'Green',
174
- FrontQueues: 'Green',
175
- SatisfactionRank: {
176
- FreshRank: {
177
- Flag: 'Green',
178
- },
179
- LevelRank: {
180
- Flag: 'Green',
181
- },
182
- },
183
- Replicated: true,
184
- UnsyncedVDisks: '3',
185
- HasUnreadableBlobs: false,
186
- ReadThroughput: '0',
187
- WriteThroughput: '0',
188
- AllocatedSize: 30943477760,
189
- AvailableSize: 234461593600,
190
- TotalSize: 265405071360,
191
- AllocatedPercent: 12,
192
- Donors: undefined,
193
- PDisk: undefined,
194
- };
195
- const preparedData = prepareGroupsVDisk(vDiksDataWithoutPDisk);
196
- expect(preparedData).toEqual(expectedResult);
197
- });
198
- });
199
- describe('prepareGroupsPDisk', () => {
200
- it('Should correctly parse data', () => {
201
- const pDiskData = {
202
- PDiskId: '224-1001',
203
- NodeId: 224,
204
- Path: '/dev/disk/by-partlabel/kikimr_nvme_04',
205
- Type: 'ssd',
206
- Guid: '10619691988133943213',
207
- Category: '1',
208
- TotalSize: '6400161873920',
209
- AvailableSize: '5613855703040',
210
- Status: 'ACTIVE',
211
- DiskSpace: 'Green',
212
- DecommitStatus: 'DECOMMIT_NONE',
213
- SlotSize: '265405071360',
214
- Whiteboard: {
215
- PDiskId: 1001,
216
- ChangeTime: '1730273451793',
217
- Path: '/dev/disk/by-partlabel/kikimr_nvme_04',
218
- Guid: '10619691988133943213',
219
- Category: '1',
220
- AvailableSize: '5613855703040',
221
- TotalSize: '6400161873920',
222
- State: 'Normal',
223
- Device: 'Green',
224
- Realtime: 'Green',
225
- SerialNumber: 'PHLN227201336P4CGN',
226
- SystemSize: '817889280',
227
- LogUsedSize: '3271557120',
228
- LogTotalSize: '27262976000',
229
- ExpectedSlotCount: 24,
230
- EnforcedDynamicSlotSize: '265405071360',
231
- NumActiveSlots: 18,
232
- },
233
- };
234
- const expectedResult = {
235
- NodeId: 224,
236
- PDiskId: 1001,
237
- StringifiedId: '224-1001',
238
- ChangeTime: '1730273451793',
239
- Path: '/dev/disk/by-partlabel/kikimr_nvme_04',
240
- Guid: '10619691988133943213',
241
- SerialNumber: 'PHLN227201336P4CGN',
242
- Category: '1',
243
- Type: 'SSD',
244
- State: 'Normal',
245
- Device: 'Green',
246
- Realtime: 'Green',
247
- Status: 'ACTIVE',
248
- DiskSpace: 'Green',
249
- DecommitStatus: 'DECOMMIT_NONE',
250
- AvailableSize: 5613855703040,
251
- TotalSize: 6400161873920,
252
- AllocatedPercent: 12,
253
- AllocatedSize: 786306170880,
254
- Severity: 1,
255
- SystemSize: '817889280',
256
- LogUsedSize: '3271557120',
257
- LogTotalSize: '27262976000',
258
- NumActiveSlots: 18,
259
- ExpectedSlotCount: 24,
260
- SlotSize: '265405071360',
261
- EnforcedDynamicSlotSize: '265405071360',
262
- };
263
- const preparedData = prepareGroupsPDisk(pDiskData);
264
- expect(preparedData).toEqual(expectedResult);
265
- });
266
- it('Should use BSC data when no Whiteboard data', () => {
267
- const pDiskData = {
268
- PDiskId: '224-1001',
269
- NodeId: 224,
270
- Path: '/dev/disk/by-partlabel/kikimr_nvme_04',
271
- Type: 'ssd',
272
- Guid: '10619691988133943213',
273
- Category: '1',
274
- TotalSize: '6400161873920',
275
- AvailableSize: '5613855703040',
276
- Status: 'ACTIVE',
277
- DiskSpace: 'Green',
278
- DecommitStatus: 'DECOMMIT_NONE',
279
- SlotSize: '265405071360',
280
- };
281
- const expectedResult = {
282
- NodeId: 224,
283
- StringifiedId: '224-1001',
284
- Path: '/dev/disk/by-partlabel/kikimr_nvme_04',
285
- Guid: '10619691988133943213',
286
- Category: '1',
287
- Type: 'SSD',
288
- Severity: 0,
289
- Status: 'ACTIVE',
290
- DiskSpace: 'Green',
291
- DecommitStatus: 'DECOMMIT_NONE',
292
- TotalSize: 6400161873920,
293
- AvailableSize: 5613855703040,
294
- AllocatedPercent: 12,
295
- AllocatedSize: 786306170880,
296
- SlotSize: '265405071360',
297
- };
298
- const preparedData = prepareGroupsPDisk(pDiskData);
299
- expect(preparedData).toEqual(expectedResult);
300
- });
301
- it('Should use Whiteboard data when no BSC data', () => {
302
- const pDiskData = {
303
- NodeId: 224,
304
- Whiteboard: {
305
- PDiskId: 1001,
306
- ChangeTime: '1730273451793',
307
- Path: '/dev/disk/by-partlabel/kikimr_nvme_04',
308
- Guid: '10619691988133943213',
309
- Category: '1',
310
- AvailableSize: '5613855703040',
311
- TotalSize: '6400161873920',
312
- State: 'Normal',
313
- Device: 'Green',
314
- Realtime: 'Green',
315
- SerialNumber: 'PHLN227201336P4CGN',
316
- SystemSize: '817889280',
317
- LogUsedSize: '3271557120',
318
- LogTotalSize: '27262976000',
319
- ExpectedSlotCount: 24,
320
- EnforcedDynamicSlotSize: '265405071360',
321
- NumActiveSlots: 18,
322
- },
323
- };
324
- const expectedResult = {
325
- NodeId: 224,
326
- PDiskId: 1001,
327
- StringifiedId: '224-1001',
328
- ChangeTime: '1730273451793',
329
- Path: '/dev/disk/by-partlabel/kikimr_nvme_04',
330
- Guid: '10619691988133943213',
331
- SerialNumber: 'PHLN227201336P4CGN',
332
- Category: '1',
333
- Type: 'SSD',
334
- State: 'Normal',
335
- Device: 'Green',
336
- Realtime: 'Green',
337
- AvailableSize: 5613855703040,
338
- TotalSize: 6400161873920,
339
- AllocatedPercent: 12,
340
- AllocatedSize: 786306170880,
341
- Severity: 1,
342
- SystemSize: '817889280',
343
- LogUsedSize: '3271557120',
344
- LogTotalSize: '27262976000',
345
- NumActiveSlots: 18,
346
- ExpectedSlotCount: 24,
347
- SlotSize: '265405071360',
348
- EnforcedDynamicSlotSize: '265405071360',
349
- };
350
- const preparedData = prepareGroupsPDisk(pDiskData);
351
- expect(preparedData).toEqual(expectedResult);
352
- });
353
- });
354
- //# sourceMappingURL=prepareGroupsDisks.test.js.map