@truedat/dq 5.8.4 → 5.9.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.9.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.5",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "5.8.
|
|
37
|
+
"@truedat/test": "5.8.5",
|
|
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",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@apollo/client": "^3.7.1",
|
|
95
|
-
"@truedat/core": "5.8.
|
|
96
|
-
"@truedat/df": "5.8.
|
|
95
|
+
"@truedat/core": "5.8.5",
|
|
96
|
+
"@truedat/df": "5.8.5",
|
|
97
97
|
"decode-uri-component": "^0.2.2",
|
|
98
98
|
"graphql": "^15.5.3",
|
|
99
99
|
"moment": "^2.29.4",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"react-dom": ">= 16.8.6 < 17",
|
|
119
119
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "0bc6f7dab424c9fc870e347366f4222094cd6f26"
|
|
122
122
|
}
|
|
@@ -233,7 +233,7 @@ export const RuleImplementationForm = ({
|
|
|
233
233
|
attrs.includes("value") && Array.isArray(value)
|
|
234
234
|
? _.every((val) => val != null && isValidReferenceDatasetField(val))(
|
|
235
235
|
value
|
|
236
|
-
)
|
|
236
|
+
) || _.every((val) => val != null && isValidField(val))(value)
|
|
237
237
|
: true;
|
|
238
238
|
|
|
239
239
|
const isValidReferenceDatasetField = (value) =>
|
|
@@ -243,6 +243,11 @@ export const RuleImplementationForm = ({
|
|
|
243
243
|
value?.referenceDataset?.name != null
|
|
244
244
|
: true;
|
|
245
245
|
|
|
246
|
+
const isValidField = (value) =>
|
|
247
|
+
value?.type === "reference_dataset_field"
|
|
248
|
+
? value?.name != null && value?.id != null
|
|
249
|
+
: true;
|
|
250
|
+
|
|
246
251
|
const emptyAttr = (attr, item) =>
|
|
247
252
|
attr === "operator" ? _.isEmpty(_.prop(attr)(item)) : false;
|
|
248
253
|
|
|
@@ -335,6 +340,7 @@ export const RuleImplementationForm = ({
|
|
|
335
340
|
validations,
|
|
336
341
|
segments,
|
|
337
342
|
} = ruleImplementation || {};
|
|
343
|
+
|
|
338
344
|
return (
|
|
339
345
|
<>
|
|
340
346
|
{isLoading ? <Loading /> : null}
|