@truedat/core 4.33.0 → 4.33.4

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
+ ## Unreleased
4
+
5
+ ### Added
6
+
7
+ - [TD-4262] Pending lineage tasks menu
8
+
3
9
  ## [4.30.3] 2021-10-07
4
10
 
5
11
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/core",
3
- "version": "4.33.0",
3
+ "version": "4.33.4",
4
4
  "description": "Truedat Web Core",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -32,7 +32,7 @@
32
32
  "@babel/plugin-transform-modules-commonjs": "^7.15.0",
33
33
  "@babel/preset-env": "^7.15.0",
34
34
  "@babel/preset-react": "^7.14.5",
35
- "@truedat/test": "4.33.0",
35
+ "@truedat/test": "4.33.4",
36
36
  "babel-jest": "^27.0.6",
37
37
  "babel-plugin-dynamic-import-node": "^2.3.3",
38
38
  "babel-plugin-lodash": "^3.3.4",
@@ -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": "b257cb534058698ce0509a9db1750cce1e9e81c3"
106
+ "gitHead": "08160df210692628d37599956bc78c587c019afc"
107
107
  }
@@ -1,9 +1,12 @@
1
1
  import React from "react";
2
2
  import { useAuthorized } from "../hooks";
3
- import { GRAPHS } from "../routes";
3
+ import { GRAPHS, LINEAGE_EVENTS } from "../routes";
4
4
  import Submenu from "./Submenu";
5
5
 
6
- const items = [{ name: "lineage", routes: [GRAPHS] }];
6
+ const items = [
7
+ { name: "lineage", routes: [GRAPHS] },
8
+ { name: "lineage_events", routes: [LINEAGE_EVENTS] },
9
+ ];
7
10
 
8
11
  export const LineageMenu = () => {
9
12
  const authorized = useAuthorized("lineage");
@@ -11,6 +11,12 @@ exports[`<LineageMenu /> matches the latest snapshot 1`] = `
11
11
  "/graphs",
12
12
  ],
13
13
  },
14
+ Object {
15
+ "name": "lineage_events",
16
+ "routes": Array [
17
+ "/lineage_events",
18
+ ],
19
+ },
14
20
  ]
15
21
  }
16
22
  name="lineage"
@@ -80,6 +80,7 @@ export default {
80
80
  "sidemenu.implementations": "Implementations",
81
81
  "sidemenu.jobs": "Jobs",
82
82
  "sidemenu.lineage": "Lineage Analysis",
83
+ "sidemenu.lineage_events": "My graphs",
83
84
  "sidemenu.grant_request_approvals": "Approve Grant Requests",
84
85
  "sidemenu.my_grant_requests": "My Grant Requests",
85
86
  "sidemenu.my_grants": "My Grants",
@@ -83,6 +83,7 @@ export default {
83
83
  "sidemenu.ingests": "Peticiones de datos",
84
84
  "sidemenu.jobs": "Jobs",
85
85
  "sidemenu.lineage": "Linaje",
86
+ "sidemenu.lineage_events": "Mis grafos",
86
87
  "sidemenu.my_grants": "Mis accesos",
87
88
  "sidemenu.grant_request_approvals": "Aprobar Peticiones de Accesos",
88
89
  "sidemenu.my_grant_requests": "Mis Peticiones de Accesos",
package/src/routes.js CHANGED
@@ -70,6 +70,7 @@ export const INGEST_RELATIONS_STRUCTURES_NEW =
70
70
  "/ingests/:id/relations/structures/new";
71
71
  export const JOB = "/jobs/:id";
72
72
  export const JOBS = "/jobs";
73
+ export const LINEAGE_EVENTS = "/lineage_events";
73
74
  export const LOGIN = "/login";
74
75
  export const MY_GRANT_REQUESTS = "/my_grant_requests";
75
76
  export const MY_GRANTS = "/my_grants";
@@ -218,6 +219,7 @@ const routes = {
218
219
  INGESTS,
219
220
  JOB,
220
221
  JOBS,
222
+ LINEAGE_EVENTS,
221
223
  LOGIN,
222
224
  MY_GRANT_REQUESTS,
223
225
  MY_GRANTS,
@@ -19,22 +19,34 @@ const authJsonOpts = token =>
19
19
  : JSON_OPTS;
20
20
 
21
21
  const apiJson = (url, opts) =>
22
- axios.get(url, opts).then(({ data, headers }) => ({ data, headers }));
22
+ axios
23
+ .get(url, opts)
24
+ .then(({ data, status, headers }) => ({ data, status, headers }));
23
25
 
24
26
  const apiJsonDelete = (url, opts) =>
25
- axios.delete(url, opts).then(({ data, headers }) => ({ data, headers }));
27
+ axios
28
+ .delete(url, opts)
29
+ .then(({ data, status, headers }) => ({ data, status, headers }));
26
30
 
27
31
  const apiJsonPatch = (url, data, opts) =>
28
- axios.patch(url, data, opts).then(({ data, headers }) => ({ data, headers }));
32
+ axios
33
+ .patch(url, data, opts)
34
+ .then(({ data, status, headers }) => ({ data, status, headers }));
29
35
 
30
36
  const apiJsonPost = (url, data, opts) =>
31
- axios.post(url, data, opts).then(({ data, headers }) => ({ data, headers }));
37
+ axios
38
+ .post(url, data, opts)
39
+ .then(({ data, status, headers }) => ({ data, status, headers }));
32
40
 
33
41
  const apiJsonPut = (url, data, opts) =>
34
- axios.put(url, data, opts).then(({ data, headers }) => ({ data, headers }));
42
+ axios
43
+ .put(url, data, opts)
44
+ .then(({ data, status, headers }) => ({ data, status, headers }));
35
45
 
36
46
  const apiJsonOptions = (url, opts) =>
37
- axios.options(url, opts).then(({ data, headers }) => ({ data, headers }));
47
+ axios
48
+ .options(url, opts)
49
+ .then(({ data, status, headers }) => ({ data, status, headers }));
38
50
 
39
51
  export {
40
52
  apiJson,