ydb-embedded-ui 6.31.0 → 6.32.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. package/dist/components/AutoRefreshControl/AutoRefreshControl.js +1 -1
  2. package/dist/components/AutoRefreshControl/AutoRefreshControl.js.map +1 -1
  3. package/dist/components/BasicNodeViewer/BasicNodeViewer.js +9 -5
  4. package/dist/components/BasicNodeViewer/BasicNodeViewer.js.map +1 -1
  5. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +9 -5
  6. package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
  7. package/dist/components/PDiskPopup/PDiskPopup.js +9 -9
  8. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  9. package/dist/components/PaginatedTable/types.d.ts +1 -1
  10. package/dist/components/Search/Search.d.ts +3 -1
  11. package/dist/components/Search/Search.js +2 -2
  12. package/dist/components/Search/Search.js.map +1 -1
  13. package/dist/components/TabletNameWrapper/TabletNameWrapper.js +1 -1
  14. package/dist/components/TabletNameWrapper/TabletNameWrapper.js.map +1 -1
  15. package/dist/components/TenantNameWrapper/TenantNameWrapper.js +1 -1
  16. package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -1
  17. package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js +10 -10
  18. package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js.map +1 -1
  19. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  20. package/dist/components/VDiskPopup/VDiskPopup.js +1 -9
  21. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  22. package/dist/components/nodesColumns/constants.d.ts +4 -0
  23. package/dist/components/nodesColumns/constants.js +10 -0
  24. package/dist/components/nodesColumns/constants.js.map +1 -1
  25. package/dist/components/nodesColumns/i18n/en.json +2 -0
  26. package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
  27. package/dist/containers/Clusters/i18n/index.d.ts +1 -1
  28. package/dist/containers/Header/Header.js +2 -9
  29. package/dist/containers/Header/Header.js.map +1 -1
  30. package/dist/containers/Nodes/Nodes.js +11 -33
  31. package/dist/containers/Nodes/Nodes.js.map +1 -1
  32. package/dist/containers/Nodes/Nodes.scss +4 -0
  33. package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +11 -0
  34. package/dist/containers/Nodes/NodesControls/NodesControls.js +24 -0
  35. package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -0
  36. package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -2
  37. package/dist/containers/Nodes/PaginatedNodes.js +78 -54
  38. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  39. package/dist/containers/Nodes/PaginatedNodesTable.d.ts +22 -0
  40. package/dist/containers/Nodes/PaginatedNodesTable.js +30 -0
  41. package/dist/containers/Nodes/PaginatedNodesTable.js.map +1 -0
  42. package/dist/containers/Nodes/columns/constants.d.ts +4 -0
  43. package/dist/containers/Nodes/columns/constants.js +30 -0
  44. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  45. package/dist/containers/Nodes/getNodes.js +4 -5
  46. package/dist/containers/Nodes/getNodes.js.map +1 -1
  47. package/dist/containers/Nodes/i18n/en.json +5 -1
  48. package/dist/containers/Nodes/i18n/index.d.ts +1 -1
  49. package/dist/containers/Nodes/i18n/index.js +1 -2
  50. package/dist/containers/Nodes/i18n/index.js.map +1 -1
  51. package/dist/containers/Nodes/shared.d.ts +5 -0
  52. package/dist/containers/Nodes/shared.js +16 -0
  53. package/dist/containers/Nodes/shared.js.map +1 -0
  54. package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +9 -0
  55. package/dist/containers/Nodes/useNodesPageQueryParams.js +34 -0
  56. package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -0
  57. package/dist/containers/Storage/Disks/Disks.js +1 -2
  58. package/dist/containers/Storage/Disks/Disks.js.map +1 -1
  59. package/dist/containers/Storage/PaginatedStorageNodes.js +1 -2
  60. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
  61. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  62. package/dist/containers/Storage/utils/index.d.ts +1 -1
  63. package/dist/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.js +2 -2
  64. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -1
  65. package/dist/containers/Tenant/i18n/en.json +1 -0
  66. package/dist/containers/Tenant/i18n/index.d.ts +1 -1
  67. package/dist/containers/Tenant/utils/schemaActions.js +5 -1
  68. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  69. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +5 -1
  70. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
  71. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  72. package/dist/store/reducers/capabilities/hooks.js +3 -0
  73. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  74. package/dist/store/reducers/node/selectors.js +5 -5
  75. package/dist/store/reducers/node/selectors.js.map +1 -1
  76. package/dist/store/reducers/node/types.d.ts +3 -4
  77. package/dist/store/reducers/nodes/types.d.ts +3 -1
  78. package/dist/store/reducers/nodes/utils.d.ts +1 -1
  79. package/dist/store/reducers/nodes/utils.js +9 -4
  80. package/dist/store/reducers/nodes/utils.js.map +1 -1
  81. package/dist/store/reducers/pdisk/utils.js +6 -3
  82. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  83. package/dist/store/reducers/settings/hooks.d.ts +5 -0
  84. package/dist/store/reducers/settings/hooks.js +14 -0
  85. package/dist/store/reducers/settings/hooks.js.map +1 -0
  86. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.d.ts +1 -0
  87. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js +354 -0
  88. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js.map +1 -0
  89. package/dist/store/reducers/storage/prepareGroupsDisks.d.ts +37 -0
  90. package/dist/store/reducers/storage/prepareGroupsDisks.js +72 -0
  91. package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -0
  92. package/dist/store/reducers/storage/utils.js +7 -28
  93. package/dist/store/reducers/storage/utils.js.map +1 -1
  94. package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
  95. package/dist/store/reducers/vdisk/utils.js +3 -3
  96. package/dist/store/reducers/vdisk/utils.js.map +1 -1
  97. package/dist/types/api/nodes.d.ts +1 -1
  98. package/dist/types/api/pdisk.d.ts +1 -1
  99. package/dist/types/api/storage.d.ts +2 -2
  100. package/dist/utils/developerUI/__test__/developerUI.test.js +21 -1
  101. package/dist/utils/developerUI/__test__/developerUI.test.js.map +1 -1
  102. package/dist/utils/developerUI/developerUI.d.ts +1 -0
  103. package/dist/utils/developerUI/developerUI.js +3 -0
  104. package/dist/utils/developerUI/developerUI.js.map +1 -1
  105. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +10 -7
  106. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js.map +1 -1
  107. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +8 -23
  108. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js.map +1 -1
  109. package/dist/utils/disks/__test__/prepareDisks.test.d.ts +1 -0
  110. package/dist/utils/disks/__test__/prepareDisks.test.js +200 -0
  111. package/dist/utils/disks/__test__/prepareDisks.test.js.map +1 -0
  112. package/dist/utils/disks/calculatePDiskSeverity.d.ts +5 -2
  113. package/dist/utils/disks/calculatePDiskSeverity.js +2 -2
  114. package/dist/utils/disks/calculatePDiskSeverity.js.map +1 -1
  115. package/dist/utils/disks/calculateVDiskSeverity.d.ts +8 -2
  116. package/dist/utils/disks/calculateVDiskSeverity.js +0 -4
  117. package/dist/utils/disks/calculateVDiskSeverity.js.map +1 -1
  118. package/dist/utils/disks/helpers.d.ts +2 -1
  119. package/dist/utils/disks/helpers.js.map +1 -1
  120. package/dist/utils/disks/prepareDisks.d.ts +22 -4
  121. package/dist/utils/disks/prepareDisks.js +75 -28
  122. package/dist/utils/disks/prepareDisks.js.map +1 -1
  123. package/dist/utils/disks/types.d.ts +9 -2
  124. package/dist/utils/storage.d.ts +1 -1
  125. package/package.json +3 -2
  126. package/dist/containers/Nodes/i18n/ru.json +0 -3
@@ -0,0 +1,354 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareGroupsDisks.test.js","sourceRoot":"","sources":["../../../../../src/store/reducers/storage/__test__/prepareGroupsDisks.test.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAE7E,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAChC,E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AAC,CAAC;QAEnD,MAAM,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,37 @@
1
+ import type { TStoragePDisk, TStorageVDisk } from '../../../types/api/storage';
2
+ import type { PDiskType, PreparedVDisk } from '../../../utils/disks/types';
3
+ export declare function prepareGroupsVDisk(data?: TStorageVDisk): PreparedVDisk;
4
+ export declare function prepareGroupsPDisk(data?: TStoragePDisk & {
5
+ NodeId?: number;
6
+ }): {
7
+ StringifiedId: string | undefined;
8
+ AllocatedPercent: number;
9
+ AllocatedSize: number;
10
+ AvailableSize: number;
11
+ TotalSize: number;
12
+ Type: PDiskType;
13
+ Severity: number;
14
+ SlotSize: string | undefined;
15
+ PDiskId: number | undefined;
16
+ Path?: string;
17
+ Guid?: string;
18
+ Category?: string;
19
+ Status?: import("../../../types/api/pdisk").EDriveStatus;
20
+ DiskSpace?: import("../../../types/api/enums").EFlag;
21
+ DecommitStatus?: import("../../../types/api/pdisk").EDecommitStatus;
22
+ NodeId?: number;
23
+ CreateTime?: string;
24
+ ChangeTime?: string;
25
+ State?: import("../../../types/api/pdisk").TPDiskState;
26
+ Count?: number;
27
+ Device?: import("../../../types/api/enums").EFlag;
28
+ Realtime?: import("../../../types/api/enums").EFlag;
29
+ StateFlag?: import("../../../types/api/enums").EFlag;
30
+ Overall?: import("../../../types/api/enums").EFlag;
31
+ SerialNumber?: string;
32
+ SystemSize?: string;
33
+ LogUsedSize?: string;
34
+ LogTotalSize?: string;
35
+ EnforcedDynamicSlotSize?: string;
36
+ ExpectedSlotCount?: number;
37
+ };
@@ -0,0 +1,72 @@
1
+ import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
2
+ import { calculatePDiskSeverity } from '../../../utils/disks/calculatePDiskSeverity';
3
+ import { calculateVDiskSeverity } from '../../../utils/disks/calculateVDiskSeverity';
4
+ import { getPDiskType } from '../../../utils/disks/getPDiskType';
5
+ import { getPDiskId } from '../../../utils/disks/helpers';
6
+ import { preparePDiskSizeFields, prepareVDiskSizeFields } from '../../../utils/disks/prepareDisks';
7
+ export function prepareGroupsVDisk(data = {}) {
8
+ var _a, _b, _c, _d;
9
+ const { Whiteboard: whiteboardVDisk = {}, PDisk, ...bscVDisk } = data;
10
+ const mergedVDiskData = {
11
+ ...whiteboardVDisk,
12
+ ...bscVDisk,
13
+ VDiskId: whiteboardVDisk.VDiskId,
14
+ };
15
+ const preparedPDisk = PDisk
16
+ ? prepareGroupsPDisk({ ...PDisk, NodeId: mergedVDiskData.NodeId })
17
+ : undefined;
18
+ const PDiskId = (_a = preparedPDisk === null || preparedPDisk === void 0 ? void 0 : preparedPDisk.PDiskId) !== null && _a !== void 0 ? _a : whiteboardVDisk === null || whiteboardVDisk === void 0 ? void 0 : whiteboardVDisk.PDiskId;
19
+ const StringifiedId = (_b = bscVDisk.VDiskId) !== null && _b !== void 0 ? _b : stringifyVdiskId(whiteboardVDisk.VDiskId);
20
+ const Severity = calculateVDiskSeverity(mergedVDiskData);
21
+ const vDiskSizeFields = prepareVDiskSizeFields({
22
+ AvailableSize: (_c = mergedVDiskData.AvailableSize) !== null && _c !== void 0 ? _c : PDisk === null || PDisk === void 0 ? void 0 : PDisk.AvailableSize,
23
+ AllocatedSize: mergedVDiskData.AllocatedSize,
24
+ });
25
+ const preparedDonors = (_d = bscVDisk.Donors) === null || _d === void 0 ? void 0 : _d.map((donor) => {
26
+ return prepareGroupsVDisk({
27
+ ...donor,
28
+ Whiteboard: { ...donor.Whiteboard, DonorMode: true },
29
+ });
30
+ });
31
+ return {
32
+ ...mergedVDiskData,
33
+ ...vDiskSizeFields,
34
+ PDisk: preparedPDisk,
35
+ Donors: preparedDonors,
36
+ PDiskId,
37
+ StringifiedId,
38
+ Severity,
39
+ };
40
+ }
41
+ export function prepareGroupsPDisk(data = {}) {
42
+ var _a, _b, _c;
43
+ const { Whiteboard: whiteboardPDisk, ...bscPDisk } = data;
44
+ const mergedPDiskData = {
45
+ ...whiteboardPDisk,
46
+ ...bscPDisk,
47
+ PDiskId: whiteboardPDisk === null || whiteboardPDisk === void 0 ? void 0 : whiteboardPDisk.PDiskId,
48
+ };
49
+ const StringifiedId = bscPDisk.PDiskId || getPDiskId(mergedPDiskData.NodeId, mergedPDiskData.PDiskId);
50
+ const { AllocatedPercent, AllocatedSize, AvailableSize, TotalSize } = preparePDiskSizeFields({
51
+ AvailableSize: mergedPDiskData.AvailableSize,
52
+ TotalSize: mergedPDiskData.TotalSize,
53
+ });
54
+ const Type = (_b = (_a = bscPDisk.Type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) !== null && _b !== void 0 ? _b : getPDiskType(whiteboardPDisk === null || whiteboardPDisk === void 0 ? void 0 : whiteboardPDisk.Category);
55
+ const Severity = calculatePDiskSeverity({
56
+ State: whiteboardPDisk === null || whiteboardPDisk === void 0 ? void 0 : whiteboardPDisk.State,
57
+ AllocatedPercent,
58
+ });
59
+ const SlotSize = (_c = bscPDisk.SlotSize) !== null && _c !== void 0 ? _c : whiteboardPDisk === null || whiteboardPDisk === void 0 ? void 0 : whiteboardPDisk.EnforcedDynamicSlotSize;
60
+ return {
61
+ ...mergedPDiskData,
62
+ StringifiedId,
63
+ AllocatedPercent,
64
+ AllocatedSize,
65
+ AvailableSize,
66
+ TotalSize,
67
+ Type,
68
+ Severity,
69
+ SlotSize,
70
+ };
71
+ }
72
+ //# sourceMappingURL=prepareGroupsDisks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareGroupsDisks.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/prepareGroupsDisks.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,sBAAsB,EAAC,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAC,sBAAsB,EAAC,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAC,YAAY,EAAC,MAAM,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b,aAAa;QACb,SAAS;QACT,IAAI;QACJ,QAAQ;QACR,QAAQ;KACX,CAAC;AACN,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import { TPDiskState } from '../../../types/api/pdisk';
2
2
  import { EVDiskState } from '../../../types/api/vdisk';
3
3
  import { getColorSeverity, getSeverityColor } from '../../../utils/disks/helpers';
4
- import { preparePDiskData, prepareVDiskData } from '../../../utils/disks/prepareDisks';
4
+ import { prepareWhiteboardPDiskData, prepareWhiteboardVDiskData, } from '../../../utils/disks/prepareDisks';
5
5
  import { prepareNodeSystemState } from '../../../utils/nodes';
6
6
  import { getUsage } from '../../../utils/storage';
7
7
  import { parseUsToMs } from '../../../utils/timeParsers';
8
+ import { prepareGroupsVDisk } from './prepareGroupsDisks';
8
9
  // ==== Prepare groups ====
9
10
  function getGroupDiskSpaceStatus(group) {
10
11
  const { DiskSpace, VDisks = [] } = group;
@@ -13,7 +14,7 @@ function getGroupDiskSpaceStatus(group) {
13
14
  }
14
15
  const prepareVDisk = (vDisk, poolName) => {
15
16
  var _a;
16
- const preparedVDisk = prepareVDiskData(vDisk);
17
+ const preparedVDisk = prepareWhiteboardVDiskData(vDisk);
17
18
  // VDisk doesn't have its own StoragePoolName when located inside StoragePool data
18
19
  return {
19
20
  ...preparedVDisk,
@@ -36,7 +37,7 @@ export const prepareStorageGroupData = (group, pool) => {
36
37
  if (group.VDisks) {
37
38
  for (const vDisk of group.VDisks) {
38
39
  const { Replicated, VDiskState, AvailableSize, AllocatedSize, PDisk, ReadThroughput, WriteThroughput, } = vDisk;
39
- const { Type: PDiskType, State: PDiskState, AvailableSize: PDiskAvailableSize, } = preparePDiskData(PDisk);
40
+ const { Type: PDiskType, State: PDiskState, AvailableSize: PDiskAvailableSize, } = prepareWhiteboardPDiskData(PDisk);
40
41
  if (!Replicated || PDiskState !== TPDiskState.Normal || VDiskState !== EVDiskState.OK) {
41
42
  missing += 1;
42
43
  }
@@ -117,13 +118,13 @@ const prepareStorageNodeData = (node) => {
117
118
  }).length) || 0;
118
119
  const pDisks = (_b = node.PDisks) === null || _b === void 0 ? void 0 : _b.map((pDisk) => {
119
120
  return {
120
- ...preparePDiskData(pDisk),
121
+ ...prepareWhiteboardPDiskData(pDisk),
121
122
  NodeId: node.NodeId,
122
123
  };
123
124
  });
124
125
  const vDisks = (_c = node.VDisks) === null || _c === void 0 ? void 0 : _c.map((vDisk) => {
125
126
  return {
126
- ...prepareVDiskData(vDisk),
127
+ ...prepareWhiteboardVDiskData(vDisk),
127
128
  NodeId: node.NodeId,
128
129
  };
129
130
  });
@@ -169,29 +170,7 @@ export function prepareGroupsResponse(data) {
169
170
  const { FoundGroups, TotalGroups, StorageGroups = [], StorageGroupGroups } = data;
170
171
  const preparedGroups = StorageGroups.map((group) => {
171
172
  const { Usage, DiskSpaceUsage, Read, Write, Used, Limit, MissingDisks, VDisks = [], Overall, LatencyPutTabletLog, LatencyPutUserData, LatencyGetFast, } = group;
172
- const vDisks = VDisks.map((disk) => {
173
- const { Whiteboard: whiteboardVDisk, PDisk, VDiskId, NodeId, AllocatedSize, AvailableSize, DiskSpace, Status, } = disk;
174
- const whiteboardPDisk = PDisk === null || PDisk === void 0 ? void 0 : PDisk.Whiteboard;
175
- const PDiskId = whiteboardPDisk === null || whiteboardPDisk === void 0 ? void 0 : whiteboardPDisk.PDiskId;
176
- const whiteboardVDiskData = {
177
- ...whiteboardVDisk,
178
- PDiskId,
179
- NodeId,
180
- AllocatedSize,
181
- AvailableSize,
182
- DiskSpace,
183
- Status,
184
- PDisk: { ...whiteboardPDisk, NodeId },
185
- };
186
- const preparedVDiskData = prepareVDiskData(whiteboardVDiskData);
187
- return {
188
- ...preparedVDiskData,
189
- // There might be no Whiteboard data if cluster is not healthy
190
- // StringifiedId is formed from Whiteboard.VDiskId object
191
- // Use VDiskId string from backend in such case
192
- StringifiedId: preparedVDiskData.StringifiedId || VDiskId,
193
- };
194
- });
173
+ const vDisks = VDisks.map(prepareGroupsVDisk);
195
174
  const diskSpaceStatus = getGroupDiskSpaceStatus(group);
196
175
  return {
197
176
  ...group,
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AASrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AASvD,2BAA2B;AAE3B,SAAS,uBAAuB,CAAC,KAAkD;IAC/E,MAAM,EAAC,SAAS,EAAE,MAAM,GAAG,EAAE,EAAC,GAAG,KAAK,CAAC;IAEvC,OAAO,CACH,SAAS;QACT,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CACxF,CAAC;AACN,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,KAAsB,EAAE,QAA4B,EAAE,EAAE;;IAC1E,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAE9C,kFAAkF;IAClF,OAAO;QACH,GAAG,aAAa;QAChB,eAAe,EAAE,QAAQ;QACzB,MAAM,EAAE,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YAC3C,GAAG,KAAK;YACR,eAAe,EAAE,QAAQ;SAC5B,CAAC,CAAC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ACrB,CAAC,EAAE,MAAM,CAAC,CAAC,KAAK,EAAuB,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAE1D,OAAO;QACH,MAAM,EAAE,cAAc;QACtB,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,cAAc,CAAC,MAAM;QACnD,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC;QAC1B,WAAW;KACd,CAAC;AACN,CAAC"}
@@ -1 +1 @@
1
- export declare const getLoadSeverityForShard: (value: number) => "danger" | "warning" | "success" | undefined;
1
+ export declare const getLoadSeverityForShard: (value: number) => "success" | "warning" | "danger" | undefined;
@@ -1,11 +1,11 @@
1
- import { preparePDiskData, prepareVDiskData } from '../../../utils/disks/prepareDisks';
1
+ import { prepareWhiteboardPDiskData, prepareWhiteboardVDiskData, } from '../../../utils/disks/prepareDisks';
2
2
  import { prepareNodeSystemState } from '../../../utils/nodes';
3
3
  export function prepareVDiskDataResponse([vDiskResponse, pDiskResponse, nodeResponse]) {
4
4
  var _a, _b, _c, _d, _e, _f, _g;
5
5
  const rawVDisk = (_a = vDiskResponse.VDiskStateInfo) === null || _a === void 0 ? void 0 : _a[0];
6
- const preparedVDisk = prepareVDiskData(rawVDisk);
6
+ const preparedVDisk = prepareWhiteboardVDiskData(rawVDisk);
7
7
  const rawPDisk = (_b = pDiskResponse.PDiskStateInfo) === null || _b === void 0 ? void 0 : _b[0];
8
- const preparedPDisk = preparePDiskData(rawPDisk);
8
+ const preparedPDisk = prepareWhiteboardPDiskData(rawPDisk);
9
9
  const rawNode = (_c = nodeResponse.SystemStateInfo) === null || _c === void 0 ? void 0 : _c[0];
10
10
  const preparedNode = prepareNodeSystemState(rawNode);
11
11
  const NodeId = (_e = (_d = preparedVDisk.NodeId) !== null && _d !== void 0 ? _d : preparedPDisk.NodeId) !== null && _e !== void 0 ? _e : preparedNode.NodeId;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/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ter = 'space' | 'missing' | 'all';
128
- export type NodesGroupByField = 'NodeId' | 'Host' | 'NodeName' | 'Database' | 'DiskSpaceUsage' | 'DC' | 'Rack' | 'Missing' | 'Uptime' | 'Version';
128
+ export type NodesGroupByField = 'NodeId' | 'SystemState' | 'Host' | 'NodeName' | 'Database' | 'DiskSpaceUsage' | 'DC' | 'Rack' | 'Missing' | 'Uptime' | 'Version';
129
129
  export type NodesRequiredField = 'NodeId' | 'SystemState' | 'PDisks' | 'VDisks' | 'Tablets' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'Memory' | 'CPU' | 'LoadAverage' | 'Missing' | 'DiskSpaceUsage' | 'SubDomainKey' | 'DisconnectTime' | 'Database';
130
130
  export type NodesSortValue = 'NodeId' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'CPU' | 'LoadAverage' | 'Memory' | `Missing` | `DiskSpaceUsage` | `Database` | 'Pools' | 'RAM';
131
131
  export type NodesSort = BackendSortParam<NodesSortValue>;
@@ -80,7 +80,7 @@ interface TPDiskInfoWhiteboard {
80
80
  }
81
81
  interface TPDiskInfoBSC {
82
82
  PDisk?: TPDiskInfo;
83
- VDisks?: TVSlotEntry;
83
+ VDisks?: TVSlotEntry[];
84
84
  }
85
85
  /**
86
86
  * BSC PDisk data