@truedat/dq 4.51.5 → 4.51.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.51.7] 2022-09-21
4
+
5
+ ### Fixed
6
+
7
+ - [TD-5164] RuleEventDecorator exception if quality_events is empty
8
+
3
9
  ## [4.51.3] 2022-09-16
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "4.51.5",
3
+ "version": "4.51.7",
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.5",
37
+ "@truedat/test": "4.51.6",
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.5",
97
- "@truedat/df": "4.51.5",
96
+ "@truedat/core": "4.51.6",
97
+ "@truedat/df": "4.51.6",
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": "011111e4852ad6b0c7eec39bf8b5d2c8ed5855e3"
117
+ "gitHead": "6f13ba98bcb7ca657e3e8043dfdc5e6716862aa7"
118
118
  }
@@ -7,20 +7,20 @@ export const icons = {
7
7
  PENDING: { name: "info circle", color: "green" },
8
8
  STARTED: { name: "play circle outline", color: "green" },
9
9
  SUCCEEDED: { name: "check circle outline", color: "green" },
10
- FAILED: { name: "warning circle", color: "red" }
10
+ FAILED: { name: "warning circle", color: "red" },
11
11
  };
12
12
  export const RuleResultDecorator = ({ _embedded }) => {
13
13
  const event = flow(
14
14
  sortBy("inserted_at"),
15
15
  last,
16
16
  prop("type")
17
- )(_embedded.quality_events);
17
+ )(_embedded?.quality_events);
18
18
  const icon = icons[event] || { name: "question circle outline" };
19
19
  return <Icon size="large" {...icon} />;
20
20
  };
21
21
 
22
22
  RuleResultDecorator.propTypes = {
23
- _embedded: PropTypes.object
23
+ _embedded: PropTypes.object,
24
24
  };
25
25
 
26
26
  export default RuleResultDecorator;