@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.5",
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.5",
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.5",
88
- "@truedat/core": "4.33.5",
89
- "@truedat/df": "4.33.5",
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": "ace547673c88f96ebe802a911eec3fc276cf9be4"
110
+ "gitHead": "417ace837309731f004f2d56371df420e82a4380"
111
111
  }
@@ -60,7 +60,9 @@ exports[`<LineageEventsTable /> matches the latest snapshot 1`] = `
60
60
  <td
61
61
  class=""
62
62
  >
63
- graph_data
63
+ <span>
64
+ graph_data
65
+ </span>
64
66
  </td>
65
67
  <td
66
68
  class=""
@@ -222,8 +222,6 @@ describe("generator: polling", () => {
222
222
  .cancelled()
223
223
  .next(true)
224
224
  .put(createGraph.failure(POLLING_CANCELLED))
225
- .next()
226
- .isDone();
227
225
  }).not.toThrow();
228
226
  });
229
227
  });
@@ -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 && (yield put(createGraph.success(graphResp)));
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, useIntl } from "react-intl";
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
- sort: { name: "graph_data.sort" },
17
- width: 2
18
- },
19
- // {
20
- // name: "graph_hash",
21
- // sort: { name: "graph_hash.sort" },
22
-
23
- // width: 2
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;