@truedat/dq 4.51.6 → 4.52.0

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.52.0] 2022-09-20
4
+
5
+ ### Fixed
6
+
7
+ - [TD-5135] Error in implementation audit component when field value is an
8
+ object
9
+
3
10
  ## [4.51.3] 2022-09-16
4
11
 
5
12
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "4.51.6",
3
+ "version": "4.52.0",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.4",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.51.6",
37
+ "@truedat/test": "4.52.0",
38
38
  "babel-jest": "^28.1.0",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -93,8 +93,8 @@
93
93
  },
94
94
  "dependencies": {
95
95
  "@apollo/client": "^3.6.4",
96
- "@truedat/core": "4.51.6",
97
- "@truedat/df": "4.51.6",
96
+ "@truedat/core": "4.52.0",
97
+ "@truedat/df": "4.52.0",
98
98
  "graphql": "^15.5.3",
99
99
  "path-to-regexp": "^1.7.0",
100
100
  "prop-types": "^15.8.1",
@@ -114,5 +114,5 @@
114
114
  "react-dom": ">= 16.8.6 < 17",
115
115
  "semantic-ui-react": ">= 0.88.2 < 2.1"
116
116
  },
117
- "gitHead": "8627aba1733d3b6b34cfd34092a6e58b7f766635"
117
+ "gitHead": "1d43cb9b9b8531eb6c054c7f430741976d59f592"
118
118
  }
@@ -29,7 +29,7 @@ export const RuleImplementationEventRow = ({
29
29
  text
30
30
  content={formatMessage(
31
31
  { id: "ruleImplementations.events.action_" + action },
32
- [field, value]
32
+ [field, _.isObject(value) ? JSON.stringify(value) : value]
33
33
  )}
34
34
  />
35
35
  ))}
@@ -20,23 +20,22 @@ describe("<RuleImplementationEvents />", () => {
20
20
  ts: "2019-09-12T02:00:00Z",
21
21
  payload: [{ field: "bar", action: "deprecated" }],
22
22
  },
23
- ];
24
- const renderOpts = {
25
- messages: {
26
- en: {
27
- "ruleImplementations.events.action_deprecated": "deprecated",
28
- "ruleImplementations.events.action_restored": "restored",
29
- },
23
+ {
24
+ id: 3,
25
+ service: "service",
26
+ event: "implementation_changed",
27
+ resource_id: 100,
28
+ ts: "2019-09-12T02:00:00Z",
29
+ payload: [
30
+ { field: "bar", action: "changed", value: { id: 123, name: "foo" } },
31
+ ],
30
32
  },
31
- };
33
+ ];
32
34
 
33
35
  const props = { events };
34
36
 
35
37
  it("matches the latest snapshot", () => {
36
- const { container } = render(
37
- <RuleImplementationEvents {...props} />,
38
- renderOpts
39
- );
38
+ const { container } = render(<RuleImplementationEvents {...props} />);
40
39
  expect(container).toMatchSnapshot();
41
40
  });
42
41
  });
@@ -34,7 +34,7 @@ exports[`<RuleImplementationEvents /> matches the latest snapshot 1`] = `
34
34
  <div
35
35
  class="text extra"
36
36
  >
37
- restored
37
+ Implementation restored
38
38
  </div>
39
39
  </div>
40
40
  </div>
@@ -64,7 +64,37 @@ exports[`<RuleImplementationEvents /> matches the latest snapshot 1`] = `
64
64
  <div
65
65
  class="text extra"
66
66
  >
67
- deprecated
67
+ Implementation deprecated
68
+ </div>
69
+ </div>
70
+ </div>
71
+ <div
72
+ class="event"
73
+ >
74
+ <div
75
+ class="content"
76
+ >
77
+ <div
78
+ class="summary"
79
+ >
80
+ <a
81
+ class="user"
82
+ />
83
+
84
+ <div
85
+ class="date"
86
+ >
87
+ <time
88
+ datetime="1568253600000"
89
+ >
90
+ 2019-09-12 02:00
91
+ </time>
92
+ </div>
93
+ </div>
94
+ <div
95
+ class="text extra"
96
+ >
97
+ Field bar changed to {"id":123,"name":"foo"}
68
98
  </div>
69
99
  </div>
70
100
  </div>