@truedat/dq 4.36.0 → 4.36.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.36.1] 2022-01-13
4
+
5
+ ### Changed
6
+
7
+ - [TD-2564] Uses `has_field_child` default filter on Structure selection of ImplementationForm's DataSet
8
+
3
9
  ## [4.35.8] 2022-01-07
4
10
 
5
11
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "4.36.0",
3
+ "version": "4.36.1",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -82,8 +82,8 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@apollo/client": "^3.4.10",
85
- "@truedat/core": "4.36.0",
86
- "@truedat/df": "4.36.0",
85
+ "@truedat/core": "4.36.1",
86
+ "@truedat/df": "4.36.1",
87
87
  "axios": "^0.19.2",
88
88
  "graphql": "^15.5.3",
89
89
  "path-to-regexp": "^1.7.0",
@@ -103,5 +103,5 @@
103
103
  "react-dom": ">= 16.8.6 < 17",
104
104
  "semantic-ui-react": ">= 0.88.2 < 2.1"
105
105
  },
106
- "gitHead": "6bf7c33362c73f97c8e5ff61f19c694ef28a0c3d"
106
+ "gitHead": "236b538f0fa3671bc4f3dc3bcfb26ea6bb9bbaee"
107
107
  }
@@ -88,7 +88,7 @@ export const DatasetForm = ({
88
88
  };
89
89
 
90
90
  const buildDefaultFilters = (i) => {
91
- const defaultFilters = { "class.raw": [""] };
91
+ const defaultFilters = { "has_field_child.raw": ["true"] };
92
92
  return i == 0
93
93
  ? { defaultFilters }
94
94
  : { defaultFilters: { ...defaultFilters, ...customFilters } };
@@ -20,8 +20,8 @@ describe("<DatasetForm />", () => {
20
20
  id: 1,
21
21
  name: "strcuture1",
22
22
  path: [],
23
- system: { name: "system" }
24
- }
23
+ system: { name: "system" },
24
+ },
25
25
  },
26
26
  {
27
27
  join_type: "inner",
@@ -29,10 +29,10 @@ describe("<DatasetForm />", () => {
29
29
  id: 2,
30
30
  name: "structure2",
31
31
  path: [],
32
- system: { name: "system" }
32
+ system: { name: "system" },
33
33
  },
34
- clauses: [{ id: 100 }, { id: 200 }]
35
- }
34
+ clauses: [{ id: 100 }, { id: 200 }],
35
+ },
36
36
  ];
37
37
 
38
38
  const customFilters = { "foo.bar": ["baz"] };
@@ -44,7 +44,7 @@ describe("<DatasetForm />", () => {
44
44
  setSelector,
45
45
  selector,
46
46
  setImplementationFilterValues,
47
- setImplementationKey
47
+ setImplementationKey,
48
48
  };
49
49
 
50
50
  it("matches the latest snapshot", () => {
@@ -63,14 +63,14 @@ describe("<DatasetForm />", () => {
63
63
  const selectors = wrapper.find("lazy");
64
64
  expect(selectors.first().prop("options")).toEqual({
65
65
  defaultFilters: {
66
- "class.raw": [""]
67
- }
66
+ "has_field_child.raw": ["true"],
67
+ },
68
68
  });
69
69
  expect(selectors.last().prop("options")).toEqual({
70
70
  defaultFilters: {
71
- "class.raw": [""],
72
- "foo.bar": ["baz"]
73
- }
71
+ "has_field_child.raw": ["true"],
72
+ "foo.bar": ["baz"],
73
+ },
74
74
  });
75
75
  });
76
76
  });
@@ -13,8 +13,8 @@ exports[`<DatasetForm /> matches the latest snapshot 1`] = `
13
13
  options={
14
14
  Object {
15
15
  "defaultFilters": Object {
16
- "class.raw": Array [
17
- "",
16
+ "has_field_child.raw": Array [
17
+ "true",
18
18
  ],
19
19
  },
20
20
  }
@@ -77,12 +77,12 @@ exports[`<DatasetForm /> matches the latest snapshot 1`] = `
77
77
  options={
78
78
  Object {
79
79
  "defaultFilters": Object {
80
- "class.raw": Array [
81
- "",
82
- ],
83
80
  "foo.bar": Array [
84
81
  "baz",
85
82
  ],
83
+ "has_field_child.raw": Array [
84
+ "true",
85
+ ],
86
86
  },
87
87
  }
88
88
  }