@truedat/dd 4.59.1 → 4.59.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,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.59.3] 2023-01-12
4
+
5
+ ### Fixed
6
+
7
+ - [TD-5382] Show all pending roles on grant request summary
8
+
9
+ ## [4.59.2] 2023-01-11
10
+
11
+ ### Fixed
12
+
13
+ - [TD-5402] Can't save implementation when has a validation with data reference
14
+ as value
15
+
3
16
  ## [4.58.7] 2022-12-27
4
17
 
5
18
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dd",
3
- "version": "4.59.1",
3
+ "version": "4.59.3",
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.1",
91
- "@truedat/core": "4.59.1",
92
- "@truedat/df": "4.59.1",
90
+ "@truedat/auth": "4.59.3",
91
+ "@truedat/core": "4.59.3",
92
+ "@truedat/df": "4.59.3",
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": "547041c31d7d6859a5bc5ba9b353a1be7beca960"
117
+ "gitHead": "29b081a636066a47011d7a2cf95ca09cbc69f177"
118
118
  }
@@ -87,13 +87,13 @@ export const GrantRequestSummary = ({ grantRequest }) => {
87
87
  ))}
88
88
  </List>
89
89
 
90
- {grantRequest?.pending_roles?.length > 0 && (
90
+ {grantRequest?.all_pending_roles?.length > 0 && (
91
91
  <>
92
92
  <Header as="h3" dividing>
93
93
  {formatMessage({ id: "grantRequest.summary.pendingRoles" })}
94
94
  </Header>
95
95
 
96
- {grantRequest.pending_roles.map((role, i) => (
96
+ {grantRequest.all_pending_roles.map((role, i) => (
97
97
  <Label key={i}>{role}</Label>
98
98
  ))}
99
99
  </>
@@ -4,7 +4,7 @@ import { GrantRequestSummary } from "../GrantRequestSummary";
4
4
 
5
5
  describe("<GrantRequestSummary />", () => {
6
6
  const grantRequest = {
7
- pending_roles: ["pending role"],
7
+ all_pending_roles: ["pending role"],
8
8
  _embedded: {
9
9
  approvals: [
10
10
  {
@@ -23,10 +23,12 @@ const getFields = (parent, structuresFields) =>
23
23
  name,
24
24
  type: "reference_dataset_field",
25
25
  label: _.prop("name")(parent),
26
+ id: _.prop("id")(parent),
26
27
  parent_index: _.prop("alias.index")(parent),
27
28
  data_type_class: "string",
28
29
  }))
29
30
  )(parent);
31
+
30
32
  const getFieldsFromStructures = (structuresFields, parentStructures) =>
31
33
  _.flow(
32
34
  _.map((parent) => getFields(parent, structuresFields)),