@truedat/dd 4.59.8 → 4.59.10

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.59.9] 2023-01-16
4
+
5
+ ### Fixed
6
+
7
+ - [TD-4109] When fetching Lineage groups, always uses domain_id param
8
+
3
9
  ## [4.59.3] 2023-01-12
4
10
 
5
11
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dd",
3
- "version": "4.59.8",
3
+ "version": "4.59.10",
4
4
  "description": "Truedat Web Data Dictionary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -87,9 +87,9 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "@apollo/client": "^3.7.1",
90
- "@truedat/auth": "4.59.8",
91
- "@truedat/core": "4.59.8",
92
- "@truedat/df": "4.59.8",
90
+ "@truedat/auth": "4.59.10",
91
+ "@truedat/core": "4.59.10",
92
+ "@truedat/df": "4.59.10",
93
93
  "lodash": "^4.17.21",
94
94
  "moment": "^2.29.4",
95
95
  "path-to-regexp": "^1.7.0",
@@ -114,5 +114,5 @@
114
114
  "react-dom": ">= 16.8.6 < 17",
115
115
  "semantic-ui-react": ">= 2.0.3 < 2.2"
116
116
  },
117
- "gitHead": "679895d762c466ab983d13bbdad90a58261da3b2"
117
+ "gitHead": "c455cc494dc625e750a0e1dd1ac5aec144cbd593"
118
118
  }
@@ -92,6 +92,7 @@ export const LineageForm = ({
92
92
  if (_.isEmpty(value)) {
93
93
  clearNodes();
94
94
  } else {
95
+ setDomainId(value);
95
96
  fetchNodes({ domain_id: value });
96
97
  }
97
98
  };
@@ -148,7 +149,9 @@ export const LineageForm = ({
148
149
  options={options}
149
150
  loading={loading}
150
151
  value={_.nth(level, selectedGroups) || null}
151
- onChange={(_e, { value: id }) => selectGroup({ id })}
152
+ onChange={(_e, { value: id }) =>
153
+ selectGroup({ id, domain_id: domainId })
154
+ }
152
155
  />
153
156
  ))(groupOptions)}
154
157
  {_.isEmpty(resourceOptions) ? null : (
@@ -50,7 +50,9 @@ describe("<LineageForm />", () => {
50
50
  userEvent.click(getByRole("option", { name: /grp1/i }));
51
51
 
52
52
  expect(selectGroup.mock.calls.length).toBe(1);
53
- expect(selectGroup.mock.calls[0]).toEqual([{ id: "grp1" }]);
53
+ expect(selectGroup.mock.calls[0]).toEqual([
54
+ { id: "grp1", domain_id: null },
55
+ ]);
54
56
  });
55
57
 
56
58
  it("selecting resources will call selectResources function", async () => {
@@ -10,11 +10,9 @@ export function* fetchNodesSaga({ payload }) {
10
10
  try {
11
11
  const { id, domain_id } = payload;
12
12
  yield put(fetchNodes.request(payload));
13
- const url = id
14
- ? toApiPath({ id })
15
- : domain_id
16
- ? API_NODES + `?domain_id=${domain_id}`
17
- : API_NODES;
13
+ const url =
14
+ (id ? toApiPath({ id }) : API_NODES) +
15
+ (domain_id ? `?domain_id=${domain_id}` : "");
18
16
  const { data } = yield call(apiJson, url, JSON_OPTS);
19
17
  yield put(fetchNodes.success(data));
20
18
  } catch (error) {