@truedat/df 6.9.4 → 6.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/df",
3
- "version": "6.9.4",
3
+ "version": "6.10.1",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -87,8 +87,8 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "@apollo/client": "^3.7.1",
90
- "@truedat/auth": "6.9.4",
91
- "@truedat/core": "6.9.4",
90
+ "@truedat/auth": "6.10.1",
91
+ "@truedat/core": "6.10.1",
92
92
  "decode-uri-component": "^0.2.2",
93
93
  "path-to-regexp": "^1.7.0",
94
94
  "prop-types": "^15.8.1",
@@ -109,5 +109,5 @@
109
109
  "react-dom": ">= 16.8.6 < 17",
110
110
  "semantic-ui-react": ">= 2.0.3 < 2.2"
111
111
  },
112
- "gitHead": "7d6b440dd9af26cf2dcf21ad4c321f845c40e9b3"
112
+ "gitHead": "24842b079c16460f87d1fae762d9aab6feb6f8db"
113
113
  }
@@ -8,6 +8,9 @@ import "../styles/fieldGroupDetail.less";
8
8
 
9
9
  const parseField = (field) => {
10
10
  const { value, values } = field;
11
+
12
+ if (value === undefined) return field;
13
+
11
14
  if (_.has("fixed_tuple")(values)) {
12
15
  const translateValue = (value) =>
13
16
  _.flow(
@@ -1,6 +1,6 @@
1
1
  import { applyTemplate, applyTemplateWithoutDefaults } from "..";
2
2
 
3
- const xyzzy = "xyzzy";
3
+ const xyzzy = { value: "xyzzy", origin: "default" };
4
4
  const template = {
5
5
  content: [
6
6
  {
@@ -160,7 +160,7 @@ describe("utils: applyTemplate", () => {
160
160
  it("should nullify unlisted values", () => {
161
161
  const o = { fixed: { value: "foo2", origin: "user" }, xyzzy };
162
162
  const result = applyTemplate(template)(o);
163
- expect(result).toEqual({ fixed: { value: null, origin: "user" }, xyzzy });
163
+ expect(result).toEqual({ xyzzy });
164
164
  });
165
165
  });
166
166
 
@@ -187,7 +187,6 @@ describe("utils: applyTemplate", () => {
187
187
  };
188
188
  const result = applyTemplate(template)(o);
189
189
  expect(result).toEqual({
190
- fixed: { value: null, origin: "user" },
191
190
  role: { value: "u1", origin: "user" },
192
191
  wibble: { value: "wobble", origin: "default" },
193
192
  xyzzy,
@@ -17,7 +17,8 @@ export const applyTemplate =
17
17
  filterDepends(templateContent),
18
18
  filterSwitches(templateContent),
19
19
  (content) => filterDomains(templateContent)(content, domainId),
20
- (content) => applyDefaults(templateContent)(content, domainId)
20
+ (content) => applyDefaults(templateContent)(content, domainId),
21
+ _.pickBy((value) => !_.isEmpty(value.value))
21
22
  )(content);
22
23
  };
23
24