@truedat/bg 5.9.6 → 5.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/bg",
3
- "version": "5.9.6",
3
+ "version": "5.10.0",
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.9.6",
37
+ "@truedat/test": "5.10.0",
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.9.6",
90
- "@truedat/df": "5.9.6",
91
- "@truedat/lm": "5.9.6",
89
+ "@truedat/core": "5.10.0",
90
+ "@truedat/df": "5.10.0",
91
+ "@truedat/lm": "5.10.0",
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": "9f323fd84b59cac49e60b9cf0e441efc192465de"
114
+ "gitHead": "6044bbbb421c8741677417e0b9c6c7e39b0a002f"
115
115
  }
@@ -16,6 +16,7 @@ const staticLabels = [
16
16
  "domain",
17
17
  "status",
18
18
  "description",
19
+ "link_to_concept",
19
20
  "completeness",
20
21
  "inserted_at",
21
22
  "last_change_at",
@@ -77,6 +77,11 @@ exports[`<ConceptImplementationLinks /> show create implementations buttons when
77
77
  >
78
78
  Status
79
79
  </th>
80
+ <th
81
+ class="two wide"
82
+ >
83
+ Concepts
84
+ </th>
80
85
  <th
81
86
  class="two wide"
82
87
  >
@@ -137,6 +142,13 @@ exports[`<ConceptImplementationLinks /> show create implementations buttons when
137
142
  >
138
143
  ruleImplementation.status.undefined
139
144
  </td>
145
+ <td
146
+ class=""
147
+ >
148
+ <div>
149
+
150
+ </div>
151
+ </td>
140
152
  <td
141
153
  class=""
142
154
  />
@@ -225,6 +237,11 @@ exports[`<ConceptImplementationLinks /> show implementations with groups 1`] = `
225
237
  >
226
238
  Status
227
239
  </th>
240
+ <th
241
+ class="two wide"
242
+ >
243
+ Concepts
244
+ </th>
228
245
  <th
229
246
  class="two wide"
230
247
  >
@@ -285,6 +302,13 @@ exports[`<ConceptImplementationLinks /> show implementations with groups 1`] = `
285
302
  >
286
303
  ruleImplementation.status.undefined
287
304
  </td>
305
+ <td
306
+ class=""
307
+ >
308
+ <div>
309
+
310
+ </div>
311
+ </td>
288
312
  <td
289
313
  class=""
290
314
  />
@@ -346,6 +370,11 @@ exports[`<ConceptImplementationLinks /> show implementations with groups 1`] = `
346
370
  >
347
371
  Status
348
372
  </th>
373
+ <th
374
+ class="two wide"
375
+ >
376
+ Concepts
377
+ </th>
349
378
  <th
350
379
  class="two wide"
351
380
  >
@@ -406,6 +435,13 @@ exports[`<ConceptImplementationLinks /> show implementations with groups 1`] = `
406
435
  >
407
436
  ruleImplementation.status.undefined
408
437
  </td>
438
+ <td
439
+ class=""
440
+ >
441
+ <div>
442
+
443
+ </div>
444
+ </td>
409
445
  <td
410
446
  class=""
411
447
  />
@@ -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 = { header_labels: headerLabels, ...conceptQuery };
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 body = { header_labels: headerLabels, ...query };
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);
@@ -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",
@@ -283,6 +284,7 @@ export default {
283
284
  "relations.actions.implementation.delete.confirmation.content":
284
285
  "Link between implementation and concept will be deleted. Are you sure?",
285
286
  "relations.actions.implementation.delete.confirmation.header": "Delete link",
287
+ "ruleImplementations.props.business_concepts": "Concepts",
286
288
  "source.bc_caculo": "Calculated from",
287
289
  "source.bc_padre": "Children",
288
290
  "source.bc_parent": "Children",
@@ -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",
@@ -287,6 +288,7 @@ export default {
287
288
  "Se eliminará la vinculación entre la implementación y el concepto. ¿Estás seguro?",
288
289
  "relations.actions.implementation.delete.confirmation.header":
289
290
  "Borrar vínculación",
291
+ "ruleImplementations.props.business_concepts": "Conceptos",
290
292
  "saveConceptFilters.error.name.unique": "Nombre duplicado",
291
293
  "source.bc_caculo": "Cálculado en base a",
292
294
  "source.bc_padre": "Hijos",