@truedat/core 4.53.7 → 4.53.9
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 +6 -0
- package/package.json +3 -3
- package/src/components/Alert.js +6 -0
- package/src/components/QualityMenu.js +6 -0
- package/src/components/__tests__/__snapshots__/QualityMenu.spec.js.snap +13 -0
- package/src/messages/en.js +4 -1
- package/src/messages/es.js +4 -1
- package/src/routes.js +2 -0
- package/src/services/message.js +3 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/core",
|
|
3
|
-
"version": "4.53.
|
|
3
|
+
"version": "4.53.9",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@testing-library/jest-dom": "^5.16.4",
|
|
36
36
|
"@testing-library/react": "^12.0.0",
|
|
37
37
|
"@testing-library/user-event": "^13.2.1",
|
|
38
|
-
"@truedat/test": "4.53.
|
|
38
|
+
"@truedat/test": "4.53.9",
|
|
39
39
|
"babel-jest": "^28.1.0",
|
|
40
40
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
41
41
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"react-dom": ">= 16.8.6 < 17",
|
|
113
113
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "cfb29ec044aeb972df15ad73f30cf7fb06e2a54b"
|
|
116
116
|
}
|
package/src/components/Alert.js
CHANGED
|
@@ -11,6 +11,12 @@ import { AlertExporter } from "./AlertExporter";
|
|
|
11
11
|
const existingList = (list) => list && !_.isEmpty(list);
|
|
12
12
|
|
|
13
13
|
const formatErrorMessages = (error, formatMessage) => {
|
|
14
|
+
if (error?.field && error?.message)
|
|
15
|
+
return `${error.field}: ${formatMessage({
|
|
16
|
+
id: `error.${error.message}`,
|
|
17
|
+
defaultMessage: error.message,
|
|
18
|
+
})}`;
|
|
19
|
+
|
|
14
20
|
if (_.isString(error?.message)) return error.message;
|
|
15
21
|
|
|
16
22
|
if (_.every(["name", "code"], _.partial(_.has)(error)))
|
|
@@ -6,6 +6,7 @@ import { useAuthorized } from "../hooks";
|
|
|
6
6
|
import {
|
|
7
7
|
EXECUTION_GROUPS,
|
|
8
8
|
IMPLEMENTATIONS,
|
|
9
|
+
IMPLEMENTATIONS_DEPRECATED,
|
|
9
10
|
IMPLEMENTATIONS_PENDING,
|
|
10
11
|
QUALITY_DASHBOARD,
|
|
11
12
|
RULES,
|
|
@@ -21,6 +22,11 @@ export const ITEMS = [
|
|
|
21
22
|
routes: [IMPLEMENTATIONS_PENDING],
|
|
22
23
|
groups: ["quality_implementation_workflow_management"],
|
|
23
24
|
},
|
|
25
|
+
{
|
|
26
|
+
name: "implementations_deprecated",
|
|
27
|
+
routes: [IMPLEMENTATIONS_DEPRECATED],
|
|
28
|
+
groups: ["quality_implementation_workflow_management"],
|
|
29
|
+
},
|
|
24
30
|
{
|
|
25
31
|
name: "executions",
|
|
26
32
|
routes: [EXECUTION_GROUPS],
|
|
@@ -70,6 +70,19 @@ exports[`<QualityMenu /> matches the latest snapshot 1`] = `
|
|
|
70
70
|
Drafts
|
|
71
71
|
</span>
|
|
72
72
|
</a>
|
|
73
|
+
<a
|
|
74
|
+
aria-checked="true"
|
|
75
|
+
class="active item"
|
|
76
|
+
href="/deprecatedImplementations"
|
|
77
|
+
name="implementations_deprecated"
|
|
78
|
+
role="option"
|
|
79
|
+
>
|
|
80
|
+
<span
|
|
81
|
+
class="text"
|
|
82
|
+
>
|
|
83
|
+
Deprecated
|
|
84
|
+
</span>
|
|
85
|
+
</a>
|
|
73
86
|
<a
|
|
74
87
|
aria-checked="true"
|
|
75
88
|
class="active item"
|
package/src/messages/en.js
CHANGED
|
@@ -10,6 +10,7 @@ export default {
|
|
|
10
10
|
"actions.prev": "Previous",
|
|
11
11
|
"actions.publish": "Publish",
|
|
12
12
|
"actions.reject": "Reject",
|
|
13
|
+
"actions.restore": "Restore",
|
|
13
14
|
"actions.save": "Save",
|
|
14
15
|
"actions.share": "Share",
|
|
15
16
|
"actions.submit": "Send for approval",
|
|
@@ -43,8 +44,9 @@ export default {
|
|
|
43
44
|
"dateFilter.weeks": "weeks ago",
|
|
44
45
|
"dateFilter.months": "months ago",
|
|
45
46
|
"dateFilter.years": "years ago",
|
|
46
|
-
"error.header": "Eek! Something went wrong...",
|
|
47
47
|
"error.content": "Please report this error to the Truedat team.",
|
|
48
|
+
"error.duplicated": "duplicated",
|
|
49
|
+
"error.header": "Eek! Something went wrong...",
|
|
48
50
|
"filter.empty": "Empty",
|
|
49
51
|
filters: "Filters",
|
|
50
52
|
"filters.class.raw.field": "Field",
|
|
@@ -91,6 +93,7 @@ export default {
|
|
|
91
93
|
"sidemenu.hide": "Collapse sidebar",
|
|
92
94
|
"sidemenu.implementations": "Implementations",
|
|
93
95
|
"sidemenu.implementations_management": "Drafts",
|
|
96
|
+
"sidemenu.implementations_deprecated": "Deprecated",
|
|
94
97
|
"sidemenu.ingests": "Data Requests",
|
|
95
98
|
"sidemenu.jobs": "Jobs",
|
|
96
99
|
"sidemenu.lineage_events": "My graphs",
|
package/src/messages/es.js
CHANGED
|
@@ -10,6 +10,7 @@ export default {
|
|
|
10
10
|
"actions.prev": "Anterior",
|
|
11
11
|
"actions.publish": "Publicar",
|
|
12
12
|
"actions.reject": "Rechazar",
|
|
13
|
+
"actions.restore": "Recuperar",
|
|
13
14
|
"actions.save": "Guardar",
|
|
14
15
|
"actions.share": "Compartir",
|
|
15
16
|
"actions.submit": "Solicitar aprobación",
|
|
@@ -44,8 +45,9 @@ export default {
|
|
|
44
45
|
"dateFilter.weeks": "semanas",
|
|
45
46
|
"dateFilter.months": "meses",
|
|
46
47
|
"dateFilter.years": "años",
|
|
47
|
-
"error.header": "Se ha producido un error inesperado",
|
|
48
48
|
"error.content": "Por favor, coméntaselo al equipo de Truedat.",
|
|
49
|
+
"error.duplicated": "duplicado",
|
|
50
|
+
"error.header": "Se ha producido un error inesperado",
|
|
49
51
|
"filter.empty": "(vacío)",
|
|
50
52
|
filters: "Filtros",
|
|
51
53
|
"filters.class.raw.field": "Field",
|
|
@@ -94,6 +96,7 @@ export default {
|
|
|
94
96
|
"sidemenu.hide": "Ocultar",
|
|
95
97
|
"sidemenu.implementations": "Implementaciones",
|
|
96
98
|
"sidemenu.implementations_management": "Borradores",
|
|
99
|
+
"sidemenu.implementations_deprecated": "Archivadas",
|
|
97
100
|
"sidemenu.ingests": "Peticiones de datos",
|
|
98
101
|
"sidemenu.jobs": "Jobs",
|
|
99
102
|
"sidemenu.lineage_events": "Mis grafos",
|
package/src/routes.js
CHANGED
|
@@ -57,6 +57,7 @@ export const GROUP_CREATE = "/groups/new";
|
|
|
57
57
|
export const GROUP_EDIT = "/groups/:id/edit";
|
|
58
58
|
export const IMPLEMENTATION = "/implementations/:implementation_id(\\d+)";
|
|
59
59
|
export const IMPLEMENTATIONS = "/implementations";
|
|
60
|
+
export const IMPLEMENTATIONS_DEPRECATED = "/deprecatedImplementations";
|
|
60
61
|
export const IMPLEMENTATIONS_PENDING = "/pendingImplementations";
|
|
61
62
|
export const IMPLEMENTATION_CLONE = "/implementations/:implementation_id/clone";
|
|
62
63
|
export const IMPLEMENTATION_CONCEPT_LINKS =
|
|
@@ -242,6 +243,7 @@ const routes = {
|
|
|
242
243
|
GROUP_EDIT,
|
|
243
244
|
IMPLEMENTATION,
|
|
244
245
|
IMPLEMENTATIONS,
|
|
246
|
+
IMPLEMENTATIONS_DEPRECATED,
|
|
245
247
|
IMPLEMENTATIONS_PENDING,
|
|
246
248
|
IMPLEMENTATION_CLONE,
|
|
247
249
|
IMPLEMENTATION_CONCEPT_LINKS,
|
package/src/services/message.js
CHANGED
|
@@ -28,7 +28,9 @@ export const defaultMessage = (state, type, payload) => {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
export const graphQLErrors = (payload) => {
|
|
31
|
-
const errorList = _.map(_.pick(["path", "message"]))(
|
|
31
|
+
const errorList = _.map(_.pick(["path", "field", "message"]))(
|
|
32
|
+
payload.graphQLErrors
|
|
33
|
+
);
|
|
32
34
|
return {
|
|
33
35
|
error: true,
|
|
34
36
|
header: "Error",
|