@truedat/dq 5.15.2 → 5.16.1
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 +2 -2
- package/src/components/NewBasicRuleImplementation.js +3 -0
- package/src/components/NewRuleImplementation.js +7 -0
- package/src/components/__tests__/NewBasicRuleImplementation.spec.js +3 -0
- package/src/components/__tests__/NewRuleImplementation.spec.js +2 -0
- package/src/components/__tests__/__fixtures__/newRuleImplementationHelper.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.16.1",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -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": "3ae6c96a4422050389f821e9cbd1ece4d8e51e42"
|
|
122
122
|
}
|
|
@@ -22,6 +22,7 @@ export const NewBasicRuleImplementation = ({
|
|
|
22
22
|
edition
|
|
23
23
|
? {
|
|
24
24
|
id: clone ? null : ruleImplementationProps.id,
|
|
25
|
+
implementation_ref: ruleImplementationProps.implementation_ref,
|
|
25
26
|
implementationKey: clone
|
|
26
27
|
? ""
|
|
27
28
|
: ruleImplementationProps.implementation_key,
|
|
@@ -69,6 +70,8 @@ export const NewBasicRuleImplementation = ({
|
|
|
69
70
|
goal: ruleImplementation.goal,
|
|
70
71
|
domain_id: ruleImplementation.domain_id,
|
|
71
72
|
status: props?.status,
|
|
73
|
+
implementation_ref: ruleImplementation.implementation_ref,
|
|
74
|
+
operation: clone ? "clone" : "create",
|
|
72
75
|
};
|
|
73
76
|
clone || !edition
|
|
74
77
|
? createRuleImplementation({
|
|
@@ -279,6 +279,7 @@ export const NewRuleImplementation = ({
|
|
|
279
279
|
edition
|
|
280
280
|
? {
|
|
281
281
|
id: clone ? null : ruleImplementationProps.id,
|
|
282
|
+
implementation_ref: ruleImplementationProps.implementation_ref,
|
|
282
283
|
executable:
|
|
283
284
|
ruleImplementationProps.implementation_type !== "basic"
|
|
284
285
|
? ruleImplementationProps.executable
|
|
@@ -518,6 +519,8 @@ export const NewRuleImplementation = ({
|
|
|
518
519
|
|
|
519
520
|
const raw_content = _.prop("rawContent")(ruleImplementation);
|
|
520
521
|
|
|
522
|
+
const operation = clone ? "clone" : "create";
|
|
523
|
+
|
|
521
524
|
const rule_implementation =
|
|
522
525
|
ruleImplementation.implementationType == "raw"
|
|
523
526
|
? {
|
|
@@ -533,6 +536,8 @@ export const NewRuleImplementation = ({
|
|
|
533
536
|
goal: ruleImplementation.goal,
|
|
534
537
|
domain_id: ruleImplementation.domain_id,
|
|
535
538
|
status: props?.status,
|
|
539
|
+
implementation_ref: ruleImplementation.implementation_ref,
|
|
540
|
+
operation,
|
|
536
541
|
}
|
|
537
542
|
: {
|
|
538
543
|
executable: ruleImplementation.executable,
|
|
@@ -550,6 +555,8 @@ export const NewRuleImplementation = ({
|
|
|
550
555
|
goal: ruleImplementation.goal,
|
|
551
556
|
domain_id: ruleImplementation.domain_id,
|
|
552
557
|
status: props?.status,
|
|
558
|
+
implementation_ref: ruleImplementation.implementation_ref,
|
|
559
|
+
operation,
|
|
553
560
|
};
|
|
554
561
|
clone || !edition
|
|
555
562
|
? createRuleImplementation({
|
|
@@ -22,6 +22,7 @@ const ruleImplementation = {
|
|
|
22
22
|
df_name: "fooDomain",
|
|
23
23
|
domain_id: 1,
|
|
24
24
|
id: 1330,
|
|
25
|
+
implementation_ref: 1330,
|
|
25
26
|
implementation_key: "bar_impl",
|
|
26
27
|
implementation_type: "basic",
|
|
27
28
|
goal: 20,
|
|
@@ -126,9 +127,11 @@ describe("<NewBasicRuleImplementation> NewBasicRuleImplementation doSubmit", ()
|
|
|
126
127
|
executable: false,
|
|
127
128
|
goal: 20,
|
|
128
129
|
id: 1329 + 1,
|
|
130
|
+
implementation_ref: 1330,
|
|
129
131
|
implementation_key: "bar_impl",
|
|
130
132
|
implementation_type: "basic",
|
|
131
133
|
minimum: 10,
|
|
134
|
+
operation: "create",
|
|
132
135
|
result_type: "percentage",
|
|
133
136
|
rule_id: null,
|
|
134
137
|
status: "draft",
|
|
@@ -136,7 +136,9 @@ describe("<NewRuleImplementation> NewRuleImplementation doSubmit", () => {
|
|
|
136
136
|
executable: true,
|
|
137
137
|
goal: 90,
|
|
138
138
|
id: 1329 + 1,
|
|
139
|
+
implementation_ref: 1329 + 1,
|
|
139
140
|
implementation_key: "oracle_prueba",
|
|
141
|
+
operation: "create",
|
|
140
142
|
implementation_type: "draft",
|
|
141
143
|
minimum: 80,
|
|
142
144
|
populations: [],
|