@truedat/dq 4.46.7 → 4.46.10

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,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.46.10] 2022-06-20
4
+
5
+ ### Fixed
6
+
7
+ - [TD-4938] Avoid creating empty objects in `mapStateToProps`
8
+
9
+ ## [4.46.9] 2022-06-20
10
+
11
+ - [TD-4953] Implementation details view is not displaying the template fields
12
+
3
13
  ## [4.46.7] 2022-06-20
4
14
 
5
15
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "4.46.7",
3
+ "version": "4.46.10",
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.46.7",
37
+ "@truedat/test": "4.46.10",
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",
@@ -88,8 +88,8 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@apollo/client": "^3.6.4",
91
- "@truedat/core": "4.46.7",
92
- "@truedat/df": "4.46.7",
91
+ "@truedat/core": "4.46.10",
92
+ "@truedat/df": "4.46.10",
93
93
  "axios": "^0.19.2",
94
94
  "graphql": "^15.5.3",
95
95
  "path-to-regexp": "^1.7.0",
@@ -110,5 +110,5 @@
110
110
  "react-dom": ">= 16.8.6 < 17",
111
111
  "semantic-ui-react": ">= 0.88.2 < 2.1"
112
112
  },
113
- "gitHead": "2b1c3f0fcf94a7b510f171c06cfb2e1550a14166"
113
+ "gitHead": "2bfaf01b4ff0cbd9166456e0cfff7028015d220f"
114
114
  }
@@ -7,6 +7,8 @@ import {
7
7
  fetchImplementationFilters,
8
8
  } from "../routines";
9
9
 
10
+ const EMPTY = {};
11
+
10
12
  const mapDispatchToProps = (dispatch) =>
11
13
  bindActionCreators(
12
14
  {
@@ -23,7 +25,7 @@ export const makeMapStateToProps = () => {
23
25
  const mapStateToProps = (state, props) => ({
24
26
  selectedFilter: state.ruleImplementationSelectedFilter,
25
27
  filters: activeFiltersSelector(state, props),
26
- defaultFilters: props?.defaultFilters || {},
28
+ defaultFilters: props?.defaultFilters || EMPTY,
27
29
  });
28
30
  return mapStateToProps;
29
31
  };
@@ -127,6 +127,7 @@ export const ImplementationsRoutes = ({
127
127
  <>
128
128
  <RuleImplementationLoader />
129
129
  <RuleSubscriptionLoader />
130
+ <TemplatesLoader scope="ri" />
130
131
  <Route
131
132
  exact
132
133
  path={IMPLEMENTATION}
@@ -42,14 +42,14 @@ RuleResult.propTypes = {
42
42
  ]),
43
43
  };
44
44
 
45
- const mapStateToProps = (
46
- { ruleImplementation, remediationLoading, templatesLoading },
47
- ownProps
48
- ) => ({
45
+ const mapStateToProps = ({
46
+ ruleImplementation,
47
+ remediationLoading,
48
+ templatesLoading,
49
+ }) => ({
49
50
  ruleImplementation,
50
51
  remediationLoading,
51
52
  templatesLoading,
52
- ...ownProps,
53
53
  });
54
54
 
55
55
  export default connect(mapStateToProps)(RuleResult);
@@ -138,8 +138,6 @@ RuleResultDetails.propTypes = {
138
138
  ruleResultId: PropTypes.number,
139
139
  };
140
140
 
141
- const mapStateToProps = ({ ruleImplementation }) => ({
142
- ruleImplementation,
143
- });
141
+ const mapStateToProps = ({ ruleImplementation }) => ({ ruleImplementation });
144
142
 
145
143
  export default connect(mapStateToProps)(RuleResultDetails);
@@ -33,8 +33,6 @@ RuleResultRemediations.propTypes = {
33
33
  ruleResultId: PropTypes.number,
34
34
  };
35
35
 
36
- const mapStateToProps = ({ ruleImplementation }) => ({
37
- ruleImplementation,
38
- });
36
+ const mapStateToProps = ({ ruleImplementation }) => ({ ruleImplementation });
39
37
 
40
38
  export default connect(mapStateToProps)(RuleResultRemediations);