@truedat/dq 4.47.9 → 4.48.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.48.0] 2022-07-07
4
+
5
+ ### Added
6
+
7
+ - [TD-4925] Add info messages on implementation updates
8
+ (like 'implementation unchanged')
9
+
3
10
  ## [4.47.9] 2022-07-05
4
11
 
5
12
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "4.47.9",
3
+ "version": "4.48.0",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -88,8 +88,8 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@apollo/client": "^3.6.4",
91
- "@truedat/core": "4.47.9",
92
- "@truedat/df": "4.47.9",
91
+ "@truedat/core": "4.48.0",
92
+ "@truedat/df": "4.48.0",
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": "21954b7a0ea8240d2a9e8dc5014372eceed3b047"
113
+ "gitHead": "c4587d045fa6c9028082bdfbcfb35e4383f117ed"
114
114
  }
@@ -551,6 +551,7 @@ export default {
551
551
  "ruleImplementations.summary.headers.populations": "Populations",
552
552
  "ruleImplementations.summary.headers.segments": "Segments",
553
553
  "ruleImplementations.summary.headers.validations": "Validation",
554
+ "ruleImplementations.update.success.header.implementation_unchanged": "The implementation has not changed",
554
555
  "ruleImplementations.upload.success.errors":
555
556
  "Error in {implementation_key} attribute: {key} message: {message} ",
556
557
  "ruleImplementations.upload.success.header":
@@ -570,6 +570,7 @@ export default {
570
570
  "ruleImplementations.summary.headers.populations": "Poblaciones",
571
571
  "ruleImplementations.summary.headers.segments": "Segmentos",
572
572
  "ruleImplementations.summary.headers.validations": "Validaciones",
573
+ "ruleImplementations.update.success.header.implementation_unchanged": "La implementación no ha cambiado",
573
574
  "ruleImplementations.upload.success.errors":
574
575
  "Error en {name} atributo: {key} mensaje: {message} ",
575
576
  "ruleImplementations.upload.success.header":
@@ -5,6 +5,7 @@ import {
5
5
  uploadImplementations,
6
6
  uploadResults,
7
7
  fetchRemediation,
8
+ updateRuleImplementation,
8
9
  } from "../routines";
9
10
 
10
11
  const initialState = {};
@@ -133,6 +134,15 @@ const dqMessage = (state = initialState, { type, payload }) => {
133
134
  }
134
135
  case fetchRemediation.FAILURE:
135
136
  return { error: false };
137
+ case updateRuleImplementation.SUCCESS:
138
+ if (_.has("message")(payload)) {
139
+ return {
140
+ error: false,
141
+ header: `ruleImplementations.update.success.header.${payload.message}`,
142
+ icon: "attention",
143
+ color: "blue",
144
+ };
145
+ }
136
146
  default:
137
147
  return state;
138
148
  }