@truedat/dq 4.43.1 → 4.43.4

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,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.43.3] 2022-05-04
4
+
5
+ ### Changed
6
+
7
+ - [TD-3936] Updated `react-hook-form`
8
+
9
+ ## [4.43.2] 2022-05-03
10
+
11
+ ### Fixed
12
+
13
+ - [TD-4709] `DatasetForm` wasn't behaving correctly on implementations with
14
+ no dataset
15
+
3
16
  ## [4.43.1] 2022-04-28
4
17
 
5
18
  # Added
@@ -14,13 +27,13 @@
14
27
 
15
28
  ## [4.42.3] 2022-04-13
16
29
 
17
- # Fixed
30
+ ### Fixed
18
31
 
19
32
  - [TD-4721] Remove sources error condition in NewRuleImplementation
20
33
 
21
34
  ## [4.42.1] 2022-04-12
22
35
 
23
- # Changed
36
+ ### Changed
24
37
 
25
38
  - [TD-4536] Support rule implementation with multiple populations
26
39
 
@@ -935,7 +948,7 @@ New major version for Truedat 4.0, no changes
935
948
 
936
949
  - [TD-1802] Added individual saga to retrieve filter values
937
950
 
938
- ## [2.19.0]
951
+ ## [2.19.0] 2019-05-16
939
952
 
940
953
  ### Added
941
954
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "4.43.1",
3
+ "version": "4.43.4",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -31,7 +31,7 @@
31
31
  "@babel/plugin-transform-modules-commonjs": "^7.15.0",
32
32
  "@babel/preset-env": "^7.15.0",
33
33
  "@babel/preset-react": "^7.14.5",
34
- "@truedat/test": "4.43.1",
34
+ "@truedat/test": "4.43.4",
35
35
  "babel-jest": "^27.0.6",
36
36
  "babel-plugin-dynamic-import-node": "^2.3.3",
37
37
  "babel-plugin-lodash": "^3.3.4",
@@ -82,8 +82,8 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@apollo/client": "^3.4.10",
85
- "@truedat/core": "4.43.1",
86
- "@truedat/df": "4.43.1",
85
+ "@truedat/core": "4.43.4",
86
+ "@truedat/df": "4.43.4",
87
87
  "axios": "^0.19.2",
88
88
  "graphql": "^15.5.3",
89
89
  "path-to-regexp": "^1.7.0",
@@ -103,5 +103,5 @@
103
103
  "react-dom": ">= 16.8.6 < 17",
104
104
  "semantic-ui-react": ">= 0.88.2 < 2.1"
105
105
  },
106
- "gitHead": "7ea6f37972e3a70706913ada33751b955313801f"
106
+ "gitHead": "7f0463a65a0b8137f1598487bf26fefa52e5fa59"
107
107
  }
@@ -29,14 +29,17 @@ export const RuleSelector = ({ rules, control, loading }) => {
29
29
  control={control}
30
30
  name="rule_id"
31
31
  rules={{ required: true }}
32
- render={({ onBlur, onChange, value }, { invalid }) => (
32
+ render={({
33
+ field: { onBlur, onChange, value },
34
+ fieldState: { error },
35
+ }) => (
33
36
  <Form.Select
34
37
  label={{
35
38
  children: formatMessage({ id: "rule" }),
36
39
  htmlFor: "rule_id",
37
40
  }}
38
41
  deburr
39
- error={invalid}
42
+ error={!!error}
40
43
  loading={loading}
41
44
  onBlur={onBlur}
42
45
  onChange={(_e, { value }) => onChange(value)}
@@ -127,8 +127,11 @@ DatasetForm.propTypes = {
127
127
  setSelector: PropTypes.func,
128
128
  };
129
129
 
130
- const mapStateToProps = (state) => ({
130
+ const EMPTY_DATASET = [{}];
131
+
132
+ const mapStateToProps = (state, { structures }) => ({
131
133
  defaultFilters: datasetDefaultFiltersSelector(state),
134
+ structures: _.isEmpty(structures) ? EMPTY_DATASET : structures,
132
135
  });
133
136
 
134
137
  export default connect(mapStateToProps)(DatasetForm);
@@ -1,5 +1,4 @@
1
1
  import React, { Suspense } from "react";
2
- import { waitFor } from "@testing-library/react";
3
2
  import { render } from "@truedat/test/render";
4
3
  import DatasetForm from "../DatasetForm";
5
4