@truedat/dd 4.42.6 → 4.43.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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.43.0] 2022-04-26
4
+
5
+ ### Added
6
+
7
+ - [TD-3186] DataStructure view shows related implementations
8
+
3
9
  ## [4.42.6] 2022-04-25
4
10
 
5
11
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dd",
3
- "version": "4.42.6",
3
+ "version": "4.43.0",
4
4
  "description": "Truedat Web Data Dictionary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.14.1",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.42.6",
37
+ "@truedat/test": "4.43.0",
38
38
  "babel-jest": "^27.0.6",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -84,9 +84,9 @@
84
84
  ]
85
85
  },
86
86
  "dependencies": {
87
- "@truedat/auth": "4.42.6",
88
- "@truedat/core": "4.42.6",
89
- "@truedat/df": "4.42.6",
87
+ "@truedat/auth": "4.43.0",
88
+ "@truedat/core": "4.43.0",
89
+ "@truedat/df": "4.43.0",
90
90
  "lodash": "^4.17.21",
91
91
  "path-to-regexp": "^1.7.0",
92
92
  "prop-types": "^15.7.2",
@@ -107,5 +107,5 @@
107
107
  "react-dom": ">= 16.8.6 < 17",
108
108
  "semantic-ui-react": ">= 0.88.2 < 2.1"
109
109
  },
110
- "gitHead": "3dda251b557b530f73e81cd12c70af259a93e421"
110
+ "gitHead": "ad0f63f2d98ae377883743b839858d9d671d2431"
111
111
  }
@@ -26,6 +26,7 @@ const structureVersionFields = _.pick([
26
26
  "deleted_at",
27
27
  "description",
28
28
  "group",
29
+ "implementations",
29
30
  "metadata",
30
31
  "name",
31
32
  "source",
@@ -138,12 +138,16 @@ describe("selectors: getTabVisibility", () => {
138
138
  });
139
139
  });
140
140
 
141
- it("should include rules iff ruleImplementations is not empty", () => {
141
+ it("should include rules iff structure.implementations is not empty", () => {
142
142
  expect(getTabVisibility({})).toMatchObject({ rules: false });
143
- expect(getTabVisibility({ ruleImplementations: [] })).toMatchObject({
143
+ expect(
144
+ getTabVisibility({ structure: { implementations: [] } })
145
+ ).toMatchObject({
144
146
  rules: false,
145
147
  });
146
- expect(getTabVisibility({ ruleImplementations: [{}] })).toMatchObject({
148
+ expect(
149
+ getTabVisibility({ structure: { implementations: [{}] } })
150
+ ).toMatchObject({
147
151
  rules: true,
148
152
  });
149
153
  });
@@ -36,7 +36,7 @@ const notesTabVisible = ({ templatesLoading, templates, structure }) =>
36
36
  )(templates);
37
37
 
38
38
  const versionsTabVisible = notEmptyPath("structureVersions");
39
- const rulesTabVisible = notEmptyPath("ruleImplementations");
39
+ const rulesTabVisible = notEmptyPath("structure.implementations");
40
40
  const lineageTabVisible = _.anyPass([_.path("structure.degree.in")]);
41
41
  const impactTabVisible = _.anyPass([_.path("structure.degree.out")]);
42
42
  const parentsTabVisible = _.conformsTo({ parentRelations: notEmpty });