@truedat/dd 5.2.8 → 5.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +5 -5
- package/src/api/queries.js +31 -0
- package/src/components/DictionaryRoutes.js +3 -0
- package/src/components/Task.js +149 -0
- package/src/components/Tasks.js +138 -0
- package/src/components/TasksRoutes.js +27 -0
- package/src/components/__tests__/Task.spec.js +44 -0
- package/src/components/__tests__/Tasks.spec.js +120 -0
- package/src/components/__tests__/TasksRoutes.spec.js +56 -0
- package/src/components/__tests__/__snapshots__/DictionaryRoutes.spec.js.snap +4 -0
- package/src/components/__tests__/__snapshots__/Task.spec.js.snap +298 -0
- package/src/components/__tests__/__snapshots__/Tasks.spec.js.snap +301 -0
- package/src/components/__tests__/__snapshots__/TasksRoutes.spec.js.snap +448 -0
- package/src/messages/en.js +17 -0
- package/src/messages/es.js +17 -0
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`<TasksRoutes /> matches the latest snapshot (list route) 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
class="ui segment"
|
|
7
|
+
>
|
|
8
|
+
<h2
|
|
9
|
+
class="ui header"
|
|
10
|
+
>
|
|
11
|
+
<i
|
|
12
|
+
aria-hidden="true"
|
|
13
|
+
class="check circular icon"
|
|
14
|
+
/>
|
|
15
|
+
<div
|
|
16
|
+
class="content"
|
|
17
|
+
>
|
|
18
|
+
Tasks
|
|
19
|
+
<div
|
|
20
|
+
class="sub header"
|
|
21
|
+
>
|
|
22
|
+
Background reindex tasks
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</h2>
|
|
26
|
+
<div
|
|
27
|
+
class="ui basic segment"
|
|
28
|
+
>
|
|
29
|
+
<button
|
|
30
|
+
class="ui primary button"
|
|
31
|
+
>
|
|
32
|
+
Refresh
|
|
33
|
+
</button>
|
|
34
|
+
<button
|
|
35
|
+
class="ui primary right floated button"
|
|
36
|
+
>
|
|
37
|
+
Reindex all structures
|
|
38
|
+
</button>
|
|
39
|
+
<button
|
|
40
|
+
class="ui primary right floated button"
|
|
41
|
+
>
|
|
42
|
+
Reindex all grants
|
|
43
|
+
</button>
|
|
44
|
+
</div>
|
|
45
|
+
<div
|
|
46
|
+
class="dimmable"
|
|
47
|
+
>
|
|
48
|
+
<div
|
|
49
|
+
class="ui inverted dimmer"
|
|
50
|
+
style=""
|
|
51
|
+
>
|
|
52
|
+
<div
|
|
53
|
+
class="content"
|
|
54
|
+
>
|
|
55
|
+
<div
|
|
56
|
+
class="ui loader"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<table
|
|
61
|
+
class="ui selectable table"
|
|
62
|
+
>
|
|
63
|
+
<thead
|
|
64
|
+
class=""
|
|
65
|
+
>
|
|
66
|
+
<tr
|
|
67
|
+
class=""
|
|
68
|
+
>
|
|
69
|
+
<th
|
|
70
|
+
class=""
|
|
71
|
+
>
|
|
72
|
+
Index
|
|
73
|
+
</th>
|
|
74
|
+
<th
|
|
75
|
+
class=""
|
|
76
|
+
>
|
|
77
|
+
Status
|
|
78
|
+
</th>
|
|
79
|
+
<th
|
|
80
|
+
class=""
|
|
81
|
+
>
|
|
82
|
+
Started at
|
|
83
|
+
</th>
|
|
84
|
+
<th
|
|
85
|
+
class=""
|
|
86
|
+
>
|
|
87
|
+
Last message at
|
|
88
|
+
</th>
|
|
89
|
+
<th
|
|
90
|
+
class=""
|
|
91
|
+
>
|
|
92
|
+
Progress
|
|
93
|
+
</th>
|
|
94
|
+
<th
|
|
95
|
+
class=""
|
|
96
|
+
>
|
|
97
|
+
Elapsed time
|
|
98
|
+
</th>
|
|
99
|
+
</tr>
|
|
100
|
+
</thead>
|
|
101
|
+
<tbody
|
|
102
|
+
class=""
|
|
103
|
+
>
|
|
104
|
+
<tr
|
|
105
|
+
class=""
|
|
106
|
+
>
|
|
107
|
+
<td
|
|
108
|
+
class=""
|
|
109
|
+
>
|
|
110
|
+
grants
|
|
111
|
+
</td>
|
|
112
|
+
<td
|
|
113
|
+
class=""
|
|
114
|
+
>
|
|
115
|
+
processing
|
|
116
|
+
</td>
|
|
117
|
+
<td
|
|
118
|
+
class=""
|
|
119
|
+
>
|
|
120
|
+
<time
|
|
121
|
+
datetime="1577836800000"
|
|
122
|
+
>
|
|
123
|
+
2020-01-01 00:00
|
|
124
|
+
</time>
|
|
125
|
+
</td>
|
|
126
|
+
<td
|
|
127
|
+
class=""
|
|
128
|
+
>
|
|
129
|
+
<time
|
|
130
|
+
datetime="1577836860000"
|
|
131
|
+
>
|
|
132
|
+
2020-01-01 00:01
|
|
133
|
+
</time>
|
|
134
|
+
</td>
|
|
135
|
+
<td
|
|
136
|
+
class=""
|
|
137
|
+
>
|
|
138
|
+
1000/10000
|
|
139
|
+
</td>
|
|
140
|
+
<td
|
|
141
|
+
class=""
|
|
142
|
+
>
|
|
143
|
+
0.01s
|
|
144
|
+
</td>
|
|
145
|
+
</tr>
|
|
146
|
+
</tbody>
|
|
147
|
+
</table>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
`;
|
|
152
|
+
|
|
153
|
+
exports[`<TasksRoutes /> matches the latest snapshot (view route) 1`] = `
|
|
154
|
+
<div>
|
|
155
|
+
<div
|
|
156
|
+
class="ui breadcrumb"
|
|
157
|
+
>
|
|
158
|
+
<a
|
|
159
|
+
class="section"
|
|
160
|
+
href="/tasks"
|
|
161
|
+
>
|
|
162
|
+
Tasks
|
|
163
|
+
</a>
|
|
164
|
+
<i
|
|
165
|
+
aria-hidden="true"
|
|
166
|
+
class="right angle icon divider"
|
|
167
|
+
/>
|
|
168
|
+
<div
|
|
169
|
+
class="active section"
|
|
170
|
+
>
|
|
171
|
+
grants
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
<div
|
|
175
|
+
class="ui segment"
|
|
176
|
+
>
|
|
177
|
+
<h2
|
|
178
|
+
class="ui header"
|
|
179
|
+
>
|
|
180
|
+
<i
|
|
181
|
+
aria-hidden="true"
|
|
182
|
+
class="check circular icon"
|
|
183
|
+
/>
|
|
184
|
+
<div
|
|
185
|
+
class="content"
|
|
186
|
+
>
|
|
187
|
+
Task details
|
|
188
|
+
<div
|
|
189
|
+
class="sub header"
|
|
190
|
+
>
|
|
191
|
+
Background reindex task
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
</h2>
|
|
195
|
+
<div
|
|
196
|
+
class="ui basic segment"
|
|
197
|
+
>
|
|
198
|
+
<button
|
|
199
|
+
class="ui primary button"
|
|
200
|
+
>
|
|
201
|
+
Refresh
|
|
202
|
+
</button>
|
|
203
|
+
</div>
|
|
204
|
+
<div
|
|
205
|
+
class="dimmable"
|
|
206
|
+
>
|
|
207
|
+
<div
|
|
208
|
+
class="ui inverted dimmer"
|
|
209
|
+
style=""
|
|
210
|
+
>
|
|
211
|
+
<div
|
|
212
|
+
class="content"
|
|
213
|
+
>
|
|
214
|
+
<div
|
|
215
|
+
class="ui loader"
|
|
216
|
+
/>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
<div
|
|
220
|
+
class="ui divided four column grid"
|
|
221
|
+
>
|
|
222
|
+
<div
|
|
223
|
+
class="row"
|
|
224
|
+
>
|
|
225
|
+
<div
|
|
226
|
+
class="three wide column"
|
|
227
|
+
>
|
|
228
|
+
<div
|
|
229
|
+
class="item"
|
|
230
|
+
>
|
|
231
|
+
<div
|
|
232
|
+
class="content"
|
|
233
|
+
>
|
|
234
|
+
<h5
|
|
235
|
+
class="header"
|
|
236
|
+
>
|
|
237
|
+
Index
|
|
238
|
+
</h5>
|
|
239
|
+
<div
|
|
240
|
+
class="description"
|
|
241
|
+
>
|
|
242
|
+
grants
|
|
243
|
+
</div>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
<div
|
|
248
|
+
class="three wide column"
|
|
249
|
+
>
|
|
250
|
+
<div
|
|
251
|
+
class="item"
|
|
252
|
+
>
|
|
253
|
+
<div
|
|
254
|
+
class="content"
|
|
255
|
+
>
|
|
256
|
+
<h5
|
|
257
|
+
class="header"
|
|
258
|
+
>
|
|
259
|
+
Status
|
|
260
|
+
</h5>
|
|
261
|
+
<div
|
|
262
|
+
class="description"
|
|
263
|
+
>
|
|
264
|
+
processing
|
|
265
|
+
</div>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
<div
|
|
270
|
+
class="three wide column"
|
|
271
|
+
>
|
|
272
|
+
<div
|
|
273
|
+
class="item"
|
|
274
|
+
>
|
|
275
|
+
<div
|
|
276
|
+
class="content"
|
|
277
|
+
>
|
|
278
|
+
<h5
|
|
279
|
+
class="header"
|
|
280
|
+
>
|
|
281
|
+
Started at
|
|
282
|
+
</h5>
|
|
283
|
+
<div
|
|
284
|
+
class="description"
|
|
285
|
+
>
|
|
286
|
+
<time
|
|
287
|
+
datetime="1577836800000"
|
|
288
|
+
>
|
|
289
|
+
2020-01-01 00:00
|
|
290
|
+
</time>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
<div
|
|
296
|
+
class="three wide column"
|
|
297
|
+
>
|
|
298
|
+
<div
|
|
299
|
+
class="item"
|
|
300
|
+
>
|
|
301
|
+
<div
|
|
302
|
+
class="content"
|
|
303
|
+
>
|
|
304
|
+
<h5
|
|
305
|
+
class="header"
|
|
306
|
+
>
|
|
307
|
+
Last message at
|
|
308
|
+
</h5>
|
|
309
|
+
<div
|
|
310
|
+
class="description"
|
|
311
|
+
>
|
|
312
|
+
<time
|
|
313
|
+
datetime="1577836860000"
|
|
314
|
+
>
|
|
315
|
+
2020-01-01 00:01
|
|
316
|
+
</time>
|
|
317
|
+
</div>
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
<div
|
|
322
|
+
class="three wide column"
|
|
323
|
+
>
|
|
324
|
+
<div
|
|
325
|
+
class="item"
|
|
326
|
+
>
|
|
327
|
+
<div
|
|
328
|
+
class="content"
|
|
329
|
+
>
|
|
330
|
+
<h5
|
|
331
|
+
class="header"
|
|
332
|
+
>
|
|
333
|
+
Elapsed time
|
|
334
|
+
</h5>
|
|
335
|
+
<div
|
|
336
|
+
class="description"
|
|
337
|
+
>
|
|
338
|
+
0.01s
|
|
339
|
+
</div>
|
|
340
|
+
</div>
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
</div>
|
|
345
|
+
<div
|
|
346
|
+
class="ui divider"
|
|
347
|
+
/>
|
|
348
|
+
<div
|
|
349
|
+
class="ui progress"
|
|
350
|
+
data-percent="10"
|
|
351
|
+
>
|
|
352
|
+
<div
|
|
353
|
+
class="bar"
|
|
354
|
+
style="width: 10%;"
|
|
355
|
+
>
|
|
356
|
+
<div
|
|
357
|
+
class="progress"
|
|
358
|
+
>
|
|
359
|
+
10%
|
|
360
|
+
</div>
|
|
361
|
+
</div>
|
|
362
|
+
<div
|
|
363
|
+
class="label"
|
|
364
|
+
>
|
|
365
|
+
Progress
|
|
366
|
+
</div>
|
|
367
|
+
</div>
|
|
368
|
+
<div
|
|
369
|
+
class="ui divider"
|
|
370
|
+
/>
|
|
371
|
+
<div
|
|
372
|
+
class="ui divided four column grid"
|
|
373
|
+
>
|
|
374
|
+
<div
|
|
375
|
+
class="row"
|
|
376
|
+
>
|
|
377
|
+
<div
|
|
378
|
+
class="three wide column"
|
|
379
|
+
>
|
|
380
|
+
<div
|
|
381
|
+
class="item"
|
|
382
|
+
>
|
|
383
|
+
<div
|
|
384
|
+
class="content"
|
|
385
|
+
>
|
|
386
|
+
<h5
|
|
387
|
+
class="header"
|
|
388
|
+
>
|
|
389
|
+
Max memory usage
|
|
390
|
+
</h5>
|
|
391
|
+
<div
|
|
392
|
+
class="description"
|
|
393
|
+
>
|
|
394
|
+
0MB
|
|
395
|
+
</div>
|
|
396
|
+
</div>
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
<div
|
|
400
|
+
class="three wide column"
|
|
401
|
+
>
|
|
402
|
+
<div
|
|
403
|
+
class="item"
|
|
404
|
+
>
|
|
405
|
+
<div
|
|
406
|
+
class="content"
|
|
407
|
+
>
|
|
408
|
+
<h5
|
|
409
|
+
class="header"
|
|
410
|
+
>
|
|
411
|
+
Min memory usage
|
|
412
|
+
</h5>
|
|
413
|
+
<div
|
|
414
|
+
class="description"
|
|
415
|
+
>
|
|
416
|
+
0MB
|
|
417
|
+
</div>
|
|
418
|
+
</div>
|
|
419
|
+
</div>
|
|
420
|
+
</div>
|
|
421
|
+
<div
|
|
422
|
+
class="three wide column"
|
|
423
|
+
>
|
|
424
|
+
<div
|
|
425
|
+
class="item"
|
|
426
|
+
>
|
|
427
|
+
<div
|
|
428
|
+
class="content"
|
|
429
|
+
>
|
|
430
|
+
<h5
|
|
431
|
+
class="header"
|
|
432
|
+
>
|
|
433
|
+
Last memory usage
|
|
434
|
+
</h5>
|
|
435
|
+
<div
|
|
436
|
+
class="description"
|
|
437
|
+
>
|
|
438
|
+
0MB
|
|
439
|
+
</div>
|
|
440
|
+
</div>
|
|
441
|
+
</div>
|
|
442
|
+
</div>
|
|
443
|
+
</div>
|
|
444
|
+
</div>
|
|
445
|
+
</div>
|
|
446
|
+
</div>
|
|
447
|
+
</div>
|
|
448
|
+
`;
|
package/src/messages/en.js
CHANGED
|
@@ -627,6 +627,23 @@ export default {
|
|
|
627
627
|
"tags.empty": "There are no Structure Tags yet",
|
|
628
628
|
"tags.header": "Structure tags management",
|
|
629
629
|
"tags.subheader": "Tags for Data Catalog",
|
|
630
|
+
"task.elapsed": "Elapsed time",
|
|
631
|
+
"task.header": "Task details",
|
|
632
|
+
"task.index": "Index",
|
|
633
|
+
"task.last_message_at": "Last message at",
|
|
634
|
+
"task.memory.last": "Last memory usage",
|
|
635
|
+
"task.memory.max": "Max memory usage",
|
|
636
|
+
"task.memory.min": "Min memory usage",
|
|
637
|
+
"task.pid": "Task ID",
|
|
638
|
+
"task.progress": "Progress",
|
|
639
|
+
"task.refresh": "Refresh",
|
|
640
|
+
"task.reindex_all_grants": "Reindex all grants",
|
|
641
|
+
"task.reindex_all_structures": "Reindex all structures",
|
|
642
|
+
"task.started_at": "Started at",
|
|
643
|
+
"task.status": "Status",
|
|
644
|
+
"task.subheader": "Background reindex task",
|
|
645
|
+
"tasks.header": "Tasks",
|
|
646
|
+
"tasks.subheader": "Background reindex tasks",
|
|
630
647
|
"updateTag.error.name.has already been taken":
|
|
631
648
|
"A Structure Tag with this name already exists",
|
|
632
649
|
"updateStructureType.success.header": "Structure type updated",
|
package/src/messages/es.js
CHANGED
|
@@ -644,6 +644,23 @@ export default {
|
|
|
644
644
|
"tags.empty": "Aún no hay ninguna Etiqueta de Estructura",
|
|
645
645
|
"tags.header": "Gestión de Etiquetas de Estructuras",
|
|
646
646
|
"tags.subheader": "Etiquetas para el Catálogo de Datos",
|
|
647
|
+
"task.elapsed": "Tiempo transcurrido",
|
|
648
|
+
"task.header": "Detalles de tarea",
|
|
649
|
+
"task.index": "Índice",
|
|
650
|
+
"task.last_message_at": "Último mensaje en",
|
|
651
|
+
"task.memory.last": "Último uso de memória",
|
|
652
|
+
"task.memory.max": "Max uso de memória",
|
|
653
|
+
"task.memory.min": "Min uso de memória",
|
|
654
|
+
"task.pid": "ID",
|
|
655
|
+
"task.progress": "Progreso",
|
|
656
|
+
"task.refresh": "Actualizar",
|
|
657
|
+
"task.reindex_all_grants": "Reindexar Grants",
|
|
658
|
+
"task.reindex_all_structures": "Reindexar Estructuras",
|
|
659
|
+
"task.started_at": "Iniciado en",
|
|
660
|
+
"task.status": "Estado",
|
|
661
|
+
"task.subheader": "Tarea de indexación",
|
|
662
|
+
"tasks.header": "Tareas",
|
|
663
|
+
"tasks.subheader": "Tareas de indexación",
|
|
647
664
|
"updateTag.error.name.has already been taken":
|
|
648
665
|
"Ya existe una Etiqueta de Estructura con ese nombre",
|
|
649
666
|
"updateStructureType.success.header": "Tipo actualizado correctamente",
|