@truedat/dd 4.34.2 → 4.35.3

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,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.35.3] 2021-12-20
4
+
5
+ ### Fixed
6
+
7
+ - [TD-4369] 504 error on /api/data_structure_types call
8
+
9
+ ## [4.35.1] 2021-12-18
10
+
11
+ ### Added
12
+
13
+ - [TD-4388] Display polling lineage in its data catalog tab
14
+
15
+ ## [4.35.0] 2021-12-16
16
+
17
+ ### Added
18
+
19
+ - [TD-4387] Some lineage requests are blocking the browser
20
+
3
21
  ## [4.33.8] 2021-11-29
4
22
 
5
23
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dd",
3
- "version": "4.34.2",
3
+ "version": "4.35.3",
4
4
  "description": "Truedat Web Data Dictionary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -84,9 +84,9 @@
84
84
  ]
85
85
  },
86
86
  "dependencies": {
87
- "@truedat/auth": "4.34.2",
88
- "@truedat/core": "4.34.2",
89
- "@truedat/df": "4.34.2",
87
+ "@truedat/auth": "4.35.3",
88
+ "@truedat/core": "4.35.3",
89
+ "@truedat/df": "4.35.3",
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": "8b28a5faca902e9cab3e8b5ab2bc1f8626e3ec7b"
110
+ "gitHead": "10cfa24ea2c47fe56e640e16cecaa51f302aaad3"
111
111
  }
@@ -2,12 +2,11 @@ import _ from "lodash/fp";
2
2
  import React, { useEffect } from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import { connect } from "react-redux";
5
- import { createStructureGraph, fetchStructureGraph } from "../routines";
6
- import GraphRedirector from "./GraphRedirector";
5
+ import { createGraph, fetchStructureGraph } from "../routines";
7
6
  import LineageGraph from "./LineageGraph";
8
7
 
9
8
  export const StructureGraph = ({
10
- createStructureGraph,
9
+ createGraph,
11
10
  degree,
12
11
  fetchStructureGraph,
13
12
  graph,
@@ -16,23 +15,16 @@ export const StructureGraph = ({
16
15
  type,
17
16
  }) => {
18
17
  useEffect(() => {
19
- degree &&
20
- _.isEmpty(graph) &&
21
- createStructureGraph({ ids: [id], type: type });
18
+ degree && _.isEmpty(graph) && createGraph({ ids: [id], type: type });
22
19
  }, [type]);
23
20
  useEffect(() => {
24
21
  graphId && _.isEmpty(graph) && fetchStructureGraph({ id: graphId });
25
22
  }, [graphId]);
26
- return degree ? (
27
- <>
28
- <GraphRedirector />
29
- <LineageGraph height="50vh" graph={graph} />
30
- </>
31
- ) : null;
23
+ return degree ? <LineageGraph height="50vh" graph={graph} /> : null;
32
24
  };
33
25
 
34
26
  StructureGraph.propTypes = {
35
- createStructureGraph: PropTypes.func,
27
+ createGraph: PropTypes.func,
36
28
  fetchStructureGraph: PropTypes.func,
37
29
  degree: PropTypes.object,
38
30
  graph: PropTypes.object,
@@ -47,6 +39,6 @@ const mapStateToProps = ({ structure }) => ({
47
39
  });
48
40
 
49
41
  export default connect(mapStateToProps, {
50
- createStructureGraph,
42
+ createGraph,
51
43
  fetchStructureGraph,
52
44
  })(StructureGraph);
@@ -5,7 +5,7 @@ import { Grid } from "semantic-ui-react";
5
5
  import StructureGraph from "./StructureGraph";
6
6
  import LineageDownloadButton from "./LineageDownloadButton";
7
7
 
8
- export const StructureLineage = props => (
8
+ export const StructureLineage = (props) => (
9
9
  <>
10
10
  <Grid>
11
11
  <Grid.Row>
@@ -18,17 +18,14 @@ export const StructureLineage = props => (
18
18
  </>
19
19
  );
20
20
 
21
- const mapStateToProps = ({
22
- structureLineageId: graphId,
23
- structureLineageGraph: graph
24
- }) => ({
21
+ const mapStateToProps = ({ structureLineageId: graphId, graph: graph }) => ({
25
22
  graph,
26
23
  graphId,
27
- type: "lineage"
24
+ type: "lineage",
28
25
  });
29
26
 
30
27
  StructureLineage.propTypes = {
31
- graph: PropTypes.object
28
+ graph: PropTypes.object,
32
29
  };
33
30
 
34
31
  export default connect(mapStateToProps)(StructureLineage);
@@ -35,7 +35,7 @@ export const StructureSelector = ({
35
35
  return (
36
36
  <Segment>
37
37
  <StructuresLoader pageSize={pageSize} defaultFilters={defaultFilters} />
38
- <StructureTypesLoader />
38
+ <StructureTypesLoader liteRequest={true} />
39
39
  <StructureFiltersLoader defaultFilters={defaultFilters} />
40
40
  <StructuresSearch />
41
41
  <StructureSelectedFilters />
@@ -5,7 +5,9 @@ exports[`<StructureSelector /> matches the latest snapshot 1`] = `
5
5
  <Connect(StructuresLoader)
6
6
  pageSize={7}
7
7
  />
8
- <Connect(StructureTypesLoader) />
8
+ <Connect(StructureTypesLoader)
9
+ liteRequest={true}
10
+ />
9
11
  <Connect(FiltersLoader) />
10
12
  <Connect(StructuresSearch) />
11
13
  <injectIntl(Connect(SelectedFilters)) />
@@ -13,7 +13,7 @@ export const graphRedirect = (state = initialState, { type, payload }) => {
13
13
  case clearRedirect.TRIGGER:
14
14
  return initialState;
15
15
  case createGraph.SUCCESS:
16
- return linkTo.GRAPH(payload?.data);
16
+ return payload.data.id ? linkTo.GRAPH(payload.data) : initialState;
17
17
  default:
18
18
  return state;
19
19
  }