@truedat/core 4.33.3 → 4.33.8

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.3",
3
+ "version": "4.33.8",
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.3",
35
+ "@truedat/test": "4.33.8",
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": "4423c4077cf22e7d21d2679670287ed3d86ec8d7"
106
+ "gitHead": "14e8164b15d17c5d25ebd0296b6a9899b32dff1d"
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",
@@ -97,5 +98,5 @@ export default {
97
98
  "sidemenu.taxonomy": "Taxonomy",
98
99
  "sidemenu.templates": "Templates",
99
100
  "sidemenu.users": "Users",
100
- "sidemenu.members": "Members"
101
+ "sidemenu.members": "Members",
101
102
  };
@@ -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",
@@ -100,5 +101,5 @@ export default {
100
101
  "sidemenu.taxonomy": "Dominios",
101
102
  "sidemenu.templates": "Plantillas",
102
103
  "sidemenu.users": "Usuarios",
103
- "sidemenu.members": "Miembros"
104
+ "sidemenu.members": "Miembros",
104
105
  };
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,
@@ -2,39 +2,51 @@ import axios from "./axios";
2
2
 
3
3
  const JSON_HEADERS = {
4
4
  Accept: "application/json",
5
- "Content-Type": "application/json"
5
+ "Content-Type": "application/json",
6
6
  };
7
7
 
8
8
  const JSON_OPTS = {
9
- headers: JSON_HEADERS
9
+ headers: JSON_HEADERS,
10
10
  };
11
11
 
12
12
  const UPLOAD_JSON_OPTS = {
13
- headers: { "Content-Type": "multipart/form-data" }
13
+ headers: { "Content-Type": "multipart/form-data" },
14
14
  };
15
15
 
16
- const authJsonOpts = token =>
16
+ const authJsonOpts = (token) =>
17
17
  token
18
18
  ? { headers: { ...JSON_HEADERS, authorization: `Bearer ${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,
@@ -47,5 +59,5 @@ export {
47
59
  axios,
48
60
  JSON_HEADERS,
49
61
  JSON_OPTS,
50
- UPLOAD_JSON_OPTS
62
+ UPLOAD_JSON_OPTS,
51
63
  };