@truedat/bg 6.16.1 → 6.16.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/package.json +4 -4
- package/src/concepts/components/ConceptHeader.js +1 -7
- package/src/concepts/components/__tests__/__snapshots__/ConceptHeader.spec.js.snap +0 -2
- package/src/concepts/relations/components/ConceptImplementationLinks.js +5 -1
- package/src/concepts/relations/components/ConceptStructureLinks.js +0 -1
- package/src/concepts/relations/selectors/__tests__/getConceptLinks.spec.js +1 -1
- package/src/concepts/relations/selectors/getConceptLinks.js +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/bg",
|
|
3
|
-
"version": "6.16.
|
|
3
|
+
"version": "6.16.3",
|
|
4
4
|
"description": "Truedat Web Business Glossary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"@truedat/core": "6.15.2",
|
|
90
|
-
"@truedat/df": "6.
|
|
91
|
-
"@truedat/lm": "6.
|
|
90
|
+
"@truedat/df": "6.15.2",
|
|
91
|
+
"@truedat/lm": "6.16.3",
|
|
92
92
|
"decode-uri-component": "^0.2.2",
|
|
93
93
|
"file-saver": "^2.0.5",
|
|
94
94
|
"moment": "^2.29.4",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"react-dom": ">= 16.8.6 < 17",
|
|
112
112
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "9ac7bd2ddab3f16be28269b3203e568c269cbd0e"
|
|
115
115
|
}
|
|
@@ -51,13 +51,7 @@ export const ConceptHeader = ({
|
|
|
51
51
|
<Grid>
|
|
52
52
|
<Grid.Row>
|
|
53
53
|
<Grid.Column textAlign="right">
|
|
54
|
-
<ShareLinkPopup
|
|
55
|
-
url={shareUrl}
|
|
56
|
-
title={shareTitle}
|
|
57
|
-
name={name}
|
|
58
|
-
icon="concepts"
|
|
59
|
-
popupType="concepts"
|
|
60
|
-
/>
|
|
54
|
+
<ShareLinkPopup url={shareUrl} title={shareTitle} name={name} />
|
|
61
55
|
{share && <SharedToDomainsPopup />}
|
|
62
56
|
<ConceptSubscription />
|
|
63
57
|
{!_.isEmpty(setConfidentialConcept) && (
|
|
@@ -34,9 +34,7 @@ exports[`<ConceptHeader /> matches the latest snapshot 1`] = `
|
|
|
34
34
|
textAlign="right"
|
|
35
35
|
>
|
|
36
36
|
<Connect(ShareLinkPopup)
|
|
37
|
-
icon="concepts"
|
|
38
37
|
name="Concept1"
|
|
39
|
-
popupType="concepts"
|
|
40
38
|
title="concepts.share.title"
|
|
41
39
|
url="http://localhost/concepts/42/versions/current"
|
|
42
40
|
/>
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
IMPLEMENTATION_NEW,
|
|
12
12
|
IMPLEMENTATION_NEW_RAW,
|
|
13
13
|
} from "@truedat/core/routes";
|
|
14
|
+
import { getBusinessConceptsLinksToImplementationsColumns } from "@truedat/dq/selectors";
|
|
14
15
|
import { getConceptImplementationLinks } from "../selectors";
|
|
15
16
|
|
|
16
17
|
const RuleImplementationsTable = React.lazy(() =>
|
|
@@ -18,6 +19,7 @@ const RuleImplementationsTable = React.lazy(() =>
|
|
|
18
19
|
);
|
|
19
20
|
|
|
20
21
|
export const ConceptImplementationLinks = ({
|
|
22
|
+
columns,
|
|
21
23
|
groups,
|
|
22
24
|
createImplementation,
|
|
23
25
|
createLinkImplementation,
|
|
@@ -75,7 +77,7 @@ export const ConceptImplementationLinks = ({
|
|
|
75
77
|
</Header>
|
|
76
78
|
<RuleImplementationsTable
|
|
77
79
|
ruleImplementations={implementations}
|
|
78
|
-
|
|
80
|
+
columns={columns}
|
|
79
81
|
/>
|
|
80
82
|
</Segment>
|
|
81
83
|
)
|
|
@@ -86,6 +88,7 @@ export const ConceptImplementationLinks = ({
|
|
|
86
88
|
};
|
|
87
89
|
|
|
88
90
|
ConceptImplementationLinks.propTypes = {
|
|
91
|
+
columns: PropTypes.array,
|
|
89
92
|
groups: PropTypes.array,
|
|
90
93
|
createImplementation: PropTypes.object,
|
|
91
94
|
createLinkImplementation: PropTypes.object,
|
|
@@ -94,6 +97,7 @@ ConceptImplementationLinks.propTypes = {
|
|
|
94
97
|
};
|
|
95
98
|
|
|
96
99
|
const mapStateToProps = (state) => ({
|
|
100
|
+
columns: getBusinessConceptsLinksToImplementationsColumns(state),
|
|
97
101
|
groups: getConceptImplementationLinks(state),
|
|
98
102
|
createImplementation: _.prop("create_implementation")(
|
|
99
103
|
state.conceptPermissions
|
|
@@ -10,7 +10,6 @@ const LinksPane = React.lazy(() => import("@truedat/lm/components/LinksPane"));
|
|
|
10
10
|
|
|
11
11
|
export const ConceptStructureLinksPane = ({ groups, visible }) => {
|
|
12
12
|
const LinksActions = visible ? <ConceptLinksActions /> : null;
|
|
13
|
-
|
|
14
13
|
return (
|
|
15
14
|
<Segment attached="bottom">
|
|
16
15
|
<LinksPane
|
|
@@ -133,6 +133,6 @@ describe("selectors: getConceptLinks", () => {
|
|
|
133
133
|
});
|
|
134
134
|
it("should return the keys of the concept filters which are not currently active", () => {
|
|
135
135
|
const columns = _.flow(getConceptLinks, _.map(_.first))(state);
|
|
136
|
-
expect(_.map(_.size)(columns)).toEqual([
|
|
136
|
+
expect(_.map(_.size)(columns)).toEqual([9, 9]);
|
|
137
137
|
});
|
|
138
138
|
});
|
|
@@ -6,6 +6,7 @@ import { Icon, Label } from "semantic-ui-react";
|
|
|
6
6
|
import { createSelector } from "reselect";
|
|
7
7
|
import { accentInsensitivePathOrder } from "@truedat/core/services/sort";
|
|
8
8
|
import { linkTo } from "@truedat/core/routes";
|
|
9
|
+
import { getBusinessConceptsLinksToStructuresColumns } from "@truedat/dd/selectors";
|
|
9
10
|
import Moment from "react-moment";
|
|
10
11
|
import ConceptLinkActions from "../components/ConceptLinkActions";
|
|
11
12
|
|
|
@@ -30,7 +31,7 @@ const dateDecorator = (date) => (
|
|
|
30
31
|
);
|
|
31
32
|
|
|
32
33
|
const getLinks = ({ conceptLinks }) => conceptLinks;
|
|
33
|
-
|
|
34
|
+
|
|
34
35
|
const getStructureTypes = ({ structureTypes }) => structureTypes;
|
|
35
36
|
|
|
36
37
|
const mapColumn = (column) =>
|
|
@@ -92,6 +93,7 @@ const orderedLinks = (links) =>
|
|
|
92
93
|
_.filter(_.propEq("resource_type", "data_structure")),
|
|
93
94
|
_.sortBy(accentInsensitivePathOrder("name"))
|
|
94
95
|
)(links);
|
|
96
|
+
|
|
95
97
|
const conceptLinks = (links, columns) =>
|
|
96
98
|
_.flow(
|
|
97
99
|
orderedLinks,
|
|
@@ -101,6 +103,7 @@ const conceptLinks = (links, columns) =>
|
|
|
101
103
|
_.sortBy(([k]) => k),
|
|
102
104
|
_.map((pair) => withHeaders(pair, columns))
|
|
103
105
|
)(links);
|
|
106
|
+
|
|
104
107
|
const conceptDeletedLinks = (links, columns) => {
|
|
105
108
|
const deleted = _.flow(
|
|
106
109
|
orderedLinks,
|
|
@@ -108,8 +111,9 @@ const conceptDeletedLinks = (links, columns) => {
|
|
|
108
111
|
)(links);
|
|
109
112
|
return _.isEmpty(deleted) ? [] : [withHeaders(["deleted", deleted], columns)];
|
|
110
113
|
};
|
|
114
|
+
|
|
111
115
|
export const getConceptLinks = createSelector(
|
|
112
|
-
[getLinks,
|
|
116
|
+
[getLinks, getBusinessConceptsLinksToStructuresColumns, getStructureTypes],
|
|
113
117
|
(links, columns, structureTypes) => {
|
|
114
118
|
const linksWithDataStructureType = _.map((link) =>
|
|
115
119
|
add_structure_type(link, structureTypes)
|