@truedat/dd 4.33.5 → 4.33.7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "4.33.
|
|
3
|
+
"version": "4.33.7",
|
|
4
4
|
"description": "Truedat Web Data Dictionary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@testing-library/jest-dom": "^5.14.1",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "4.33.
|
|
37
|
+
"@truedat/test": "4.33.7",
|
|
38
38
|
"babel-jest": "^27.0.6",
|
|
39
39
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
40
40
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@truedat/auth": "4.33.
|
|
88
|
-
"@truedat/core": "4.33.
|
|
89
|
-
"@truedat/df": "4.33.
|
|
87
|
+
"@truedat/auth": "4.33.7",
|
|
88
|
+
"@truedat/core": "4.33.7",
|
|
89
|
+
"@truedat/df": "4.33.7",
|
|
90
90
|
"lodash": "^4.17.21",
|
|
91
91
|
"path-to-regexp": "^1.7.0",
|
|
92
92
|
"prop-types": "^15.7.2",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"react-dom": ">= 16.8.6 < 17",
|
|
108
108
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "417ace837309731f004f2d56371df420e82a4380"
|
|
111
111
|
}
|
package/src/sagas/createGraph.js
CHANGED
|
@@ -112,7 +112,9 @@ export function* polling(graphAccepted) {
|
|
|
112
112
|
isCancelled && (yield put(createGraph.failure(POLLING_CANCELLED)));
|
|
113
113
|
} while (!isCancelled && graphResp?.status == 202);
|
|
114
114
|
|
|
115
|
-
graphResp?.status == 200 &&
|
|
115
|
+
graphResp?.status == 200 && !isCancelled
|
|
116
|
+
? yield put(createGraph.success(graphResp))
|
|
117
|
+
: yield put(createGraph.failure({}));
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
export function* createGraphRequestSaga() {
|
|
@@ -1,52 +1,48 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { FormattedMessage
|
|
3
|
+
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import Moment from "react-moment";
|
|
5
5
|
|
|
6
6
|
const dateDecorator = (date) =>
|
|
7
7
|
date && <Moment locale="es" date={date} format="YYYY-MM-DD HH:mm" />;
|
|
8
8
|
|
|
9
|
-
const statusDecorator = (status) =>
|
|
9
|
+
const statusDecorator = (status) => (
|
|
10
10
|
<FormattedMessage id={`lineage.graph.status.${_.toLower(status)}`} />
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
const graphDataDecorator = (graphData) => <span>{graphData}</span>;
|
|
11
14
|
|
|
12
15
|
const customLineageEventColumns = null;
|
|
13
16
|
const defaultLineageEventColumns = [
|
|
14
17
|
{
|
|
15
18
|
name: "graph_data",
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
fieldSelector: (event) => {
|
|
20
|
+
const graphData = _.get("graph_data")(event);
|
|
21
|
+
try {
|
|
22
|
+
return JSON.parse(graphData).join("\n");
|
|
23
|
+
} catch (e) {
|
|
24
|
+
return graphData;
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
fieldDecorator: graphDataDecorator,
|
|
28
|
+
width: 2,
|
|
29
|
+
},
|
|
25
30
|
{
|
|
26
31
|
name: "status",
|
|
27
|
-
sort: { name: "status.sort" },
|
|
28
32
|
fieldDecorator: statusDecorator,
|
|
29
|
-
width: 2
|
|
33
|
+
width: 2,
|
|
30
34
|
},
|
|
31
|
-
// {
|
|
32
|
-
// name: "task_reference",
|
|
33
|
-
// sort: { name: "task_reference.sort" },
|
|
34
|
-
// fieldSelector: _.path("type"),
|
|
35
|
-
// width: 2
|
|
36
|
-
// },
|
|
37
35
|
{
|
|
38
36
|
name: "message",
|
|
39
|
-
width: 2
|
|
37
|
+
width: 2,
|
|
40
38
|
},
|
|
41
39
|
{
|
|
42
40
|
name: "inserted_at",
|
|
43
|
-
sort: { name: "inserted_at" },
|
|
44
41
|
fieldDecorator: dateDecorator,
|
|
45
42
|
textAlign: "center",
|
|
46
|
-
width: 2
|
|
47
|
-
}
|
|
43
|
+
width: 2,
|
|
44
|
+
},
|
|
48
45
|
];
|
|
49
46
|
|
|
50
|
-
|
|
51
47
|
export const lineageEventColumns =
|
|
52
48
|
customLineageEventColumns || defaultLineageEventColumns;
|