Skip to content

Commit 5fed4fd

Browse files
committed
[DOP-26403] Add new output types
1 parent 92f85b5 commit 5fed4fd

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

src/components/lineage/converters/getGraphEdges.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const getOutputEdgeColor = (
4646
): string => {
4747
for (const type of relation.types) {
4848
switch (type) {
49+
case "DELETE":
4950
case "DROP":
5051
case "TRUNCATE":
5152
return "red";

src/dataProvider/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,15 @@ interface InputRelationLineageResponseV1 extends BaseRelationLineageResponseV1 {
192192

193193
type OutputRelationTypeLineageResponseV1 =
194194
| "ALTER"
195+
| "APPEND"
195196
| "CREATE"
197+
| "DELETE"
196198
| "DROP"
199+
| "MERGE"
197200
| "OVERWRITE"
198201
| "RENAME"
199-
| "TRUNCATE";
202+
| "TRUNCATE"
203+
| "UPDATE";
200204

201205
interface OutputRelationLineageResponseV1
202206
extends BaseRelationLineageResponseV1 {

src/i18n/ru.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -374,12 +374,16 @@ const customRussianMessages: TranslationMessages = {
374374
},
375375
edges: {
376376
ioTypes: {
377-
ALTER: "МОДИЦИФИРОВАН",
378-
CREATE: "СОЗДАН",
379-
DROP: "УДАЛЕН",
380-
OVERWRITE: "ЗАМЕНЕН",
381-
RENAME: "ПЕРЕИМЕНОВАН",
382-
TRUNCATE: "ОЧИЩЕН",
377+
ALTER: "ИЗМЕНЕНИЕ",
378+
APPEND: "ДОБАВЛЕНИЕ",
379+
CREATE: "СОЗДАНИЕ",
380+
DELETE: "УДАЛЕНИЕ",
381+
DROP: "УНИЧТОЖЕНИЕ",
382+
MERGE: "ВСТАВКА",
383+
OVERWRITE: "ПЕРЕЗАПИСЬ",
384+
RENAME: "ПЕРЕИМЕНОВАНИЕ",
385+
TRUNCATE: "СТЕРАНИЕ",
386+
UPDATE: "ОБНОВЛЕНИЕ",
383387
},
384388
columnLineageTypes: {
385389
UNKNOWN: "НЕИЗВЕСТНО",

0 commit comments

Comments
 (0)