@truedat/dq 4.47.3 → 4.47.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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.47.4] 2022-06-29
4
+
5
+ - [TD-4921] Add implementation workflow events
6
+
3
7
  ## [4.47.2] 2022-06-24
4
8
 
5
9
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "4.47.3",
3
+ "version": "4.47.4",
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.47.3",
37
+ "@truedat/test": "4.47.4",
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.47.3",
92
- "@truedat/df": "4.47.3",
91
+ "@truedat/core": "4.47.4",
92
+ "@truedat/df": "4.47.4",
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": "f96f532d27f7104fbc50b6b0539593cec0d2039d"
113
+ "gitHead": "9d38ae9759ce669fe1b459a3ee80c314d33871e0"
114
114
  }
@@ -494,12 +494,20 @@ export default {
494
494
  "ruleImplementations.actions.upload.tooltip": "Upload Implementations",
495
495
  "ruleImplementations.actions.upload.confirmation.header":
496
496
  "Confirm bulk upload",
497
- "ruleImplementations.events.action_created": "Implementation created on rule: {0}",
497
+ "ruleImplementations.events.action_created": "Implementation created",
498
498
  "ruleImplementations.events.action_changed": "Field {0} changed to {1}",
499
499
  "ruleImplementations.events.action_deprecated": "Implementation deprecated",
500
500
  "ruleImplementations.events.action_moved": "Implementation moved to rule: {0}",
501
501
  "ruleImplementations.events.action_restored": "Implementation restored",
502
502
  "ruleImplementations.events.action_updated": "Implementation updated",
503
+
504
+ "ruleImplementations.events.action_published": "Implementation published",
505
+ "ruleImplementations.events.action_pending_approval": "Approval requested",
506
+ "ruleImplementations.events.action_rejected": "Approval rejected",
507
+ "ruleImplementations.events.action_deprecated": "Implementation deleted",
508
+ "ruleImplementations.events.action_draft": "Implementation on draft status",
509
+ "ruleImplementations.events.action_versioned": "Implementation versioned",
510
+
503
511
  "ruleImplementations.props.business_concept": "Concept",
504
512
  "ruleImplementations.props.last_change_at": "Last change at",
505
513
  "ruleImplementations.props.status": "Status",
@@ -91,7 +91,7 @@ export default {
91
91
  "populationForm.selectAll.text": "Seleccionar todos los datos",
92
92
  "quality_result.failed": "Fallida",
93
93
  "quality_result.no_execution": "No ejecutada",
94
- "quality_result.over_goal": "Cumpleee el objetivo",
94
+ "quality_result.over_goal": "Cumple el objetivo",
95
95
  "quality_result.under_goal": "Por debajo del objetivo",
96
96
  "quality_result.under_minimum": "Por debajo del umbral",
97
97
  "quality_result.under_minumum": "Por debajo del umbral",
@@ -507,14 +507,20 @@ export default {
507
507
  "El contenido introducido no está permitido: {invalid_content}",
508
508
  "ruleImplementations.actions.create": "Crear nueva implementación",
509
509
  "ruleImplementations.actions.edit": "Editar implementación",
510
- "ruleImplementations.events.action_created":
511
- "Implementación creada en regla: {0}",
512
510
  "ruleImplementations.events.action_changed": "Campo {0} actualizado a {1}",
513
511
  "ruleImplementations.events.action_deprecated": "Implementación archivada",
514
512
  "ruleImplementations.events.action_moved":
515
513
  "Implementación movida a la regla: {0}",
516
514
  "ruleImplementations.events.action_restored": "Implementación restaurada",
517
515
  "ruleImplementations.events.action_updated": "Implementación actualizada",
516
+
517
+ "ruleImplementations.events.action_published": "Implementación publicada",
518
+ "ruleImplementations.events.action_pending_approval": "Aprobación solicitada",
519
+ "ruleImplementations.events.action_rejected": "Aprobación rechazada",
520
+ "ruleImplementations.events.action_deprecated": "Implementación Eliminada",
521
+ "ruleImplementations.events.action_draft": "Implementación en borrador",
522
+ "ruleImplementations.events.action_versioned": "Implementación versionada",
523
+
518
524
  "ruleImplementations.props.business_concept": "Concepto",
519
525
  "ruleImplementations.props.last_change_at": "Fecha de última modificación",
520
526
  "ruleImplementations.props.executable.false": "Interna",
@@ -597,7 +603,7 @@ export default {
597
603
  "rules.events.action_changed_to": "Campo {0} actualizado a {1}",
598
604
  "rules.events.action_updated": "Regla actualizada",
599
605
  "ruleImplementations.events.action_created":
600
- "Implementación creada en regla: {0}",
606
+ "Implementación creada",
601
607
  "ruleImplementations.events.action_changed": "Campo {0} actualizado a {1}",
602
608
  "ruleImplementations.events.action_deprecated": "Implementación archivada",
603
609
  "ruleImplementations.events.action_moved":
@@ -127,6 +127,28 @@ describe("selectors: getParsedEvents", () => {
127
127
  },
128
128
  ts: "2021-10-20T07:56:45.891087Z",
129
129
  },
130
+ {
131
+ id: 15762,
132
+ service: "td_dd",
133
+ resource_id: 1130,
134
+ resource_type: "implementation",
135
+ event: "implementation_status_updated",
136
+ payload: {
137
+ domain_ids: [386],
138
+ implementation_key: "prueba de estados de audit",
139
+ status: "rejected",
140
+ },
141
+ user_id: 1,
142
+ user_name: null,
143
+ user: {
144
+ email: "user@user.com",
145
+ external_id: "",
146
+ full_name: "user",
147
+ id: 1,
148
+ user_name: "user",
149
+ },
150
+ ts: "2022-06-29T10:07:30.260906Z",
151
+ },
130
152
  ];
131
153
 
132
154
  const parsed = [
@@ -158,6 +180,15 @@ describe("selectors: getParsedEvents", () => {
158
180
  { action: "changed", field: "tags", value: "et" },
159
181
  ],
160
182
  },
183
+ {
184
+ ...events[4],
185
+ payload: [
186
+ {
187
+ action: "rejected",
188
+ field: "prueba de estados de audit",
189
+ },
190
+ ],
191
+ },
161
192
  ];
162
193
 
163
194
  it("should return all the events with the new payload", () => {
@@ -86,6 +86,16 @@ const getParsedEvents = createSelector([getEvents], (events) => {
86
86
  }))
87
87
  )(d),
88
88
  };
89
+ case "implementation_status_updated":
90
+ return {
91
+ ...d,
92
+ payload: [
93
+ {
94
+ field: _.path("payload.implementation_key")(d),
95
+ action: _.path("payload.status")(d),
96
+ },
97
+ ],
98
+ };
89
99
  case "rule_created":
90
100
  return {
91
101
  ...d,