@truedat/dq 5.16.0 → 5.16.2

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.16.0",
3
+ "version": "5.16.2",
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": "4095b928a46c026eae47a266d327086be5421a61"
121
+ "gitHead": "4f7b257765169d14b8415107ee59d8b76124f829"
122
122
  }
@@ -22,7 +22,7 @@ export const NewBasicRuleImplementation = ({
22
22
  edition
23
23
  ? {
24
24
  id: clone ? null : ruleImplementationProps.id,
25
- original_id: clone ? ruleImplementationProps.id : null,
25
+ implementation_ref: ruleImplementationProps.implementation_ref,
26
26
  implementationKey: clone
27
27
  ? ""
28
28
  : ruleImplementationProps.implementation_key,
@@ -70,7 +70,8 @@ export const NewBasicRuleImplementation = ({
70
70
  goal: ruleImplementation.goal,
71
71
  domain_id: ruleImplementation.domain_id,
72
72
  status: props?.status,
73
- ...(clone ? { original_id: ruleImplementation.original_id } : {}),
73
+ implementation_ref: ruleImplementation.implementation_ref,
74
+ operation: clone ? "clone" : "create",
74
75
  };
75
76
  clone || !edition
76
77
  ? createRuleImplementation({
@@ -279,7 +279,7 @@ export const NewRuleImplementation = ({
279
279
  edition
280
280
  ? {
281
281
  id: clone ? null : ruleImplementationProps.id,
282
- original_id: clone ? ruleImplementationProps.id : null,
282
+ implementation_ref: ruleImplementationProps.implementation_ref,
283
283
  executable:
284
284
  ruleImplementationProps.implementation_type !== "basic"
285
285
  ? ruleImplementationProps.executable
@@ -519,6 +519,8 @@ export const NewRuleImplementation = ({
519
519
 
520
520
  const raw_content = _.prop("rawContent")(ruleImplementation);
521
521
 
522
+ const operation = clone ? "clone" : "create";
523
+
522
524
  const rule_implementation =
523
525
  ruleImplementation.implementationType == "raw"
524
526
  ? {
@@ -534,7 +536,8 @@ export const NewRuleImplementation = ({
534
536
  goal: ruleImplementation.goal,
535
537
  domain_id: ruleImplementation.domain_id,
536
538
  status: props?.status,
537
- ...(clone ? { original_id: ruleImplementation.original_id } : {}),
539
+ implementation_ref: ruleImplementation.implementation_ref,
540
+ operation,
538
541
  }
539
542
  : {
540
543
  executable: ruleImplementation.executable,
@@ -552,7 +555,8 @@ export const NewRuleImplementation = ({
552
555
  goal: ruleImplementation.goal,
553
556
  domain_id: ruleImplementation.domain_id,
554
557
  status: props?.status,
555
- ...(clone ? { original_id: ruleImplementation.original_id } : {}),
558
+ implementation_ref: ruleImplementation.implementation_ref,
559
+ operation,
556
560
  };
557
561
  clone || !edition
558
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: [],
@@ -364,6 +364,7 @@ const ruleImplementation = {
364
364
  executable: true,
365
365
  goal: 90,
366
366
  id: 1330,
367
+ implementation_ref: 1330,
367
368
  implementation_key: "oracle_prueba",
368
369
  implementation_type: "default",
369
370
  minimum: 80,