@truedat/bg 5.9.9 → 5.10.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/bg",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.1",
|
|
4
4
|
"description": "Truedat Web Business Glossary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@testing-library/jest-dom": "^5.16.5",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "5.
|
|
37
|
+
"@truedat/test": "5.10.1",
|
|
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",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@truedat/core": "5.
|
|
90
|
-
"@truedat/df": "5.
|
|
91
|
-
"@truedat/lm": "5.
|
|
89
|
+
"@truedat/core": "5.10.1",
|
|
90
|
+
"@truedat/df": "5.10.1",
|
|
91
|
+
"@truedat/lm": "5.10.1",
|
|
92
92
|
"decode-uri-component": "^0.2.2",
|
|
93
93
|
"file-saver": "^2.0.5",
|
|
94
94
|
"moment": "^2.29.4",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"react-dom": ">= 16.8.6 < 17",
|
|
112
112
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "ba010e6013cc394e610c97786331a5d687ecac64"
|
|
115
115
|
}
|
|
@@ -3,7 +3,7 @@ import { apiJsonPost, JSON_OPTS } from "@truedat/core/services/api";
|
|
|
3
3
|
import {
|
|
4
4
|
downloadConceptsRequestSaga,
|
|
5
5
|
downloadConceptsSaga,
|
|
6
|
-
saveFile
|
|
6
|
+
saveFile,
|
|
7
7
|
} from "../downloadConcepts";
|
|
8
8
|
import { downloadConcepts } from "../../routines";
|
|
9
9
|
import { API_BUSINESS_CONCEPT_VERSIONS_CSV } from "../../api";
|
|
@@ -36,7 +36,12 @@ describe("sagas: downloadConceptsSaga", () => {
|
|
|
36
36
|
const conceptQuery = { filters: {} };
|
|
37
37
|
const data = "SOME CSV DATA";
|
|
38
38
|
|
|
39
|
-
const body = {
|
|
39
|
+
const body = {
|
|
40
|
+
header_labels: headerLabels,
|
|
41
|
+
concept_url_schema:
|
|
42
|
+
"http://localhost/concepts/:business_concept_id/versions/:id",
|
|
43
|
+
...conceptQuery,
|
|
44
|
+
};
|
|
40
45
|
|
|
41
46
|
it("should put a success action when a response is returned", () => {
|
|
42
47
|
expect(() => {
|
|
@@ -2,13 +2,14 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import FileSaver from "file-saver";
|
|
3
3
|
import { call, put, select, takeLatest } from "redux-saga/effects";
|
|
4
4
|
import { apiJsonPost, JSON_OPTS } from "@truedat/core/services/api";
|
|
5
|
+
import { CONCEPT_VERSION } from "@truedat/core/routes";
|
|
5
6
|
import { downloadConcepts } from "../routines";
|
|
6
7
|
import { getPreviousConceptQuery } from "../selectors";
|
|
7
8
|
import { API_BUSINESS_CONCEPT_VERSIONS_CSV } from "../api";
|
|
8
9
|
|
|
9
10
|
export function saveFile(data) {
|
|
10
11
|
const blob = new Blob([String.fromCharCode(0xfeff), data], {
|
|
11
|
-
type: "text/csv;charset=utf-8"
|
|
12
|
+
type: "text/csv;charset=utf-8",
|
|
12
13
|
});
|
|
13
14
|
FileSaver.saveAs(blob, "concepts.csv");
|
|
14
15
|
}
|
|
@@ -17,7 +18,12 @@ export function* downloadConceptsSaga({ payload }) {
|
|
|
17
18
|
try {
|
|
18
19
|
const headerLabels = _.propOr({}, "headerLabels")(payload);
|
|
19
20
|
const query = yield select(getPreviousConceptQuery);
|
|
20
|
-
const
|
|
21
|
+
const conceptUrlSchema = window.location.origin + CONCEPT_VERSION;
|
|
22
|
+
const body = {
|
|
23
|
+
header_labels: headerLabels,
|
|
24
|
+
concept_url_schema: conceptUrlSchema,
|
|
25
|
+
...query,
|
|
26
|
+
};
|
|
21
27
|
const url = API_BUSINESS_CONCEPT_VERSIONS_CSV;
|
|
22
28
|
yield put(downloadConcepts.request(body));
|
|
23
29
|
const { data } = yield call(apiJsonPost, url, body, JSON_OPTS);
|
package/src/messages/en.js
CHANGED
|
@@ -143,17 +143,18 @@ export default {
|
|
|
143
143
|
"concepts.header.linksManager": "Concepts link manager",
|
|
144
144
|
"concepts.header.manage": "Concepts Management",
|
|
145
145
|
"concepts.props.completeness": "Completeness",
|
|
146
|
+
"concepts.props.concept_count": "Related concepts",
|
|
146
147
|
"concepts.props.description": "Description",
|
|
147
148
|
"concepts.props.domain": "Domain",
|
|
148
149
|
"concepts.props.inserted_at": "Creation date",
|
|
149
150
|
"concepts.props.last_change_at": "Last modification date",
|
|
150
151
|
"concepts.props.last_change_by": "Last modification by",
|
|
151
152
|
"concepts.props.link_count": "Link to field",
|
|
153
|
+
"concepts.props.link_to_concept": "Link to concept",
|
|
152
154
|
"concepts.props.missing_fields": "Missing required fields",
|
|
153
155
|
"concepts.props.name": "Term",
|
|
154
156
|
"concepts.props.roles": "Roles in {name}",
|
|
155
157
|
"concepts.props.rule_count": "Quality rules",
|
|
156
|
-
"concepts.props.concept_count": "Related concepts",
|
|
157
158
|
"concepts.props.status": "Status",
|
|
158
159
|
"concepts.props.tags": "Type",
|
|
159
160
|
"concepts.props.template": "Template",
|
package/src/messages/es.js
CHANGED
|
@@ -142,17 +142,18 @@ export default {
|
|
|
142
142
|
"concepts.header.linksManager": "Gestion de vínculos para conceptos",
|
|
143
143
|
"concepts.header.manage": "Gestión de Conceptos",
|
|
144
144
|
"concepts.props.completeness": "Completitud",
|
|
145
|
+
"concepts.props.concept_count": "Conceptos relacionados",
|
|
145
146
|
"concepts.props.description": "Descripción",
|
|
146
147
|
"concepts.props.domain": "Dominio",
|
|
147
148
|
"concepts.props.inserted_at": "Fecha de creación",
|
|
148
149
|
"concepts.props.last_change_at": "Fecha de última modificación",
|
|
149
150
|
"concepts.props.last_change_by": "Usuario última modificación",
|
|
150
151
|
"concepts.props.link_count": "Conectado a dato",
|
|
152
|
+
"concepts.props.link_to_concept": "Enlace al concepto",
|
|
151
153
|
"concepts.props.missing_fields": "Campos requeridos sin informar",
|
|
152
154
|
"concepts.props.name": "Concepto",
|
|
153
155
|
"concepts.props.roles": "Roles en {name}",
|
|
154
156
|
"concepts.props.rule_count": "Reglas de calidad",
|
|
155
|
-
"concepts.props.concept_count": "Conceptos relacionados",
|
|
156
157
|
"concepts.props.status": "Estado",
|
|
157
158
|
"concepts.props.tags": "Tipo",
|
|
158
159
|
"concepts.props.template": "Plantilla",
|