@truedat/dd 8.12.5 → 8.12.7
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 +3 -3
- package/src/api/__tests__/queries.spec.js +17 -8
- package/src/api/queries.js +1 -1
- package/src/components/CatalogCustomViewCards.js +2 -2
- package/src/components/CatalogViewConfigs.js +1 -1
- package/src/components/EditDomainForm.js +1 -1
- package/src/components/GrantApprovalRuleDeleteButton.js +1 -1
- package/src/components/GrantApprovalRuleForm.js +2 -1
- package/src/components/GrantFilters.js +1 -1
- package/src/components/GrantFiltersLoader.js +1 -1
- package/src/components/GrantRemovalDirectButton.js +1 -1
- package/src/components/GrantRequest.js +1 -1
- package/src/components/GrantRequestCancel.js +1 -1
- package/src/components/GrantsPagination.js +1 -1
- package/src/components/LineageForm.js +1 -1
- package/src/components/LineageGraph.js +95 -3801
- package/src/components/PendingStructureNotesPagination.js +1 -1
- package/src/components/ReferenceDatasetActions.js +2 -1
- package/src/components/ReferenceDatasetFieldSelector.js +1 -1
- package/src/components/ReferenceDatasetForm.js +2 -1
- package/src/components/ReferenceDatasetRoutes.js +1 -1
- package/src/components/ReferenceDatasets.js +1 -1
- package/src/components/ReferenceDatasetsTable.js +1 -1
- package/src/components/StructureDeleteButton.js +1 -1
- package/src/components/StructureFields.js +1 -1
- package/src/components/StructureFieldsDropdown.js +1 -1
- package/src/components/StructureGrantCart.js +1 -1
- package/src/components/StructureGrantCartCheckout.js +1 -1
- package/src/components/StructureGrantCartUserSelector.js +1 -1
- package/src/components/StructureGrantDropdown.js +1 -1
- package/src/components/StructureGrantSummaryButton.js +1 -1
- package/src/components/StructureNav.js +1 -1
- package/src/components/StructureNoteActions.js +2 -1
- package/src/components/StructureNotesEdit.js +1 -1
- package/src/components/StructureStructureForm.js +1 -1
- package/src/components/StructureStructureLinks.js +2 -2
- package/src/components/StructureTabPane.js +1 -1
- package/src/components/StructureTags.js +1 -1
- package/src/components/StructureTypeForm.js +1 -1
- package/src/components/StructuresBulkUpdate.js +3 -5
- package/src/components/StructuresDomainsUploadOption.js +1 -1
- package/src/components/StructuresPagination.js +1 -1
- package/src/components/StructuresUploadOption.js +1 -1
- package/src/components/SystemCards.js +1 -1
- package/src/components/SystemForm.js +1 -1
- package/src/components/Tag.js +1 -1
- package/src/components/TagCards.js +2 -1
- package/src/components/TagForm.js +2 -1
- package/src/components/__tests__/GrantApprovalRuleConditions.spec.js +1 -1
- package/src/components/__tests__/GrantRemovalDirectButton.spec.js +2 -1
- package/src/components/__tests__/GrantRequestApprovalForm.spec.js +2 -1
- package/src/components/__tests__/GrantRequestBulkActions.spec.js +2 -1
- package/src/components/__tests__/GrantRequestBulkApprovalForm.spec.js +2 -4
- package/src/components/__tests__/GrantRequestBulkApprovalPopup.spec.js +1 -1
- package/src/components/__tests__/GrantRequestBulkRoleSelector.spec.js +2 -2
- package/src/components/__tests__/GrantRequestLoader.spec.js +1 -1
- package/src/components/__tests__/GrantRequestRow.spec.js +1 -1
- package/src/components/__tests__/GrantRequestSummary.spec.js +1 -1
- package/src/components/__tests__/GrantRequestsDownloadButton.spec.js +2 -1
- package/src/components/__tests__/GrantRequestsLabelResults.spec.js +1 -1
- package/src/components/__tests__/GrantRequestsLoader.spec.js +1 -1
- package/src/components/__tests__/ImplementationStructuresLoader.spec.js +1 -1
- package/src/components/__tests__/LineageDownloadButton.spec.js +2 -1
- package/src/components/__tests__/LineageGraph.spec.js +1 -1
- package/src/components/__tests__/LineageGraphLayout.spec.js +1 -1
- package/src/components/__tests__/LineageGroup.spec.js +2 -1
- package/src/components/__tests__/LineageHierarchy.spec.js +1 -1
- package/src/components/__tests__/LineageResource.spec.js +2 -1
- package/src/components/__tests__/LineageResourceNode.spec.js +1 -1
- package/src/components/__tests__/PendingStructureNotesLabelResults.spec.js +2 -1
- package/src/components/__tests__/PendingStructureNotesPagination.spec.js +1 -1
- package/src/components/__tests__/ProfileExecution.spec.js +2 -1
- package/src/components/__tests__/ProfileExecutionLoader.spec.js +2 -1
- package/src/components/__tests__/ProfileGroupLoader.spec.js +2 -1
- package/src/components/__tests__/ProfileGroupMessage.spec.js +2 -1
- package/src/components/__tests__/ReferenceDatasetTable.spec.js +1 -1
- package/src/components/__tests__/StructureDeleteButton.spec.js +1 -1
- package/src/components/__tests__/StructureEvents.spec.js +11 -1
- package/src/components/__tests__/StructureGrantRequestButton.spec.js +3 -3
- package/src/components/__tests__/StructureItemRoot.spec.js +2 -1
- package/src/components/__tests__/StructureLoader.spec.js +1 -1
- package/src/components/__tests__/StructureProfileButton.spec.js +3 -2
- package/src/components/__tests__/StructureRelationRow.spec.js +3 -3
- package/src/components/__tests__/StructureRelations.spec.js +2 -1
- package/src/components/__tests__/StructureRoles.spec.js +2 -1
- package/src/components/__tests__/StructureRow.spec.js +2 -1
- package/src/components/__tests__/StructureSelectorInputField.spec.js +2 -1
- package/src/components/__tests__/StructureTagForm.spec.js +2 -1
- package/src/components/__tests__/StructureTypeLoader.spec.js +2 -1
- package/src/components/__tests__/StructureTypesLoader.spec.js +2 -1
- package/src/components/__tests__/StructuresDownloadOption.spec.js +1 -1
- package/src/components/__tests__/StructuresEditableDownloadOption.spec.js +1 -1
- package/src/components/__tests__/StructuresLabelResults.spec.js +1 -1
- package/src/components/__tests__/StructuresLoader.spec.js +2 -1
- package/src/components/__tests__/StructuresUploadOption.spec.js +1 -1
- package/src/components/__tests__/SystemEditButton.spec.js +2 -1
- package/src/components/__tests__/SystemLoader.spec.js +2 -1
- package/src/components/__tests__/UserSearchFiltersLoader.spec.js +2 -1
- package/src/selectors/__tests__/getGrantRequestsSearchColumns.spec.js +1 -1
- package/src/styles/LineageGraph.less +3 -0
- package/src/utils/__tests__/lineageTopology.spec.js +1 -1
- package/src/utils/lineageGraph.js +3827 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.7",
|
|
4
4
|
"description": "Truedat Web Data Dictionary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@testing-library/jest-dom": "^6.6.3",
|
|
55
55
|
"@testing-library/react": "^16.3.0",
|
|
56
56
|
"@testing-library/user-event": "^14.6.1",
|
|
57
|
-
"@truedat/test": "8.12.
|
|
57
|
+
"@truedat/test": "8.12.7",
|
|
58
58
|
"identity-obj-proxy": "^3.0.0",
|
|
59
59
|
"jest": "^29.7.0",
|
|
60
60
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"svg-pan-zoom": "^3.6.2",
|
|
91
91
|
"swr": "^2.3.3"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "dae06fd2f915163d5f1e7e3f26c414c8ee9bf055"
|
|
94
94
|
}
|
|
@@ -24,18 +24,27 @@ const linksField = (field) =>
|
|
|
24
24
|
(s) => s.kind === "Field" && s.name.value === "links",
|
|
25
25
|
);
|
|
26
26
|
|
|
27
|
-
const
|
|
27
|
+
const expectResourceType = (field, value) => {
|
|
28
|
+
const resourceType = linksField(field).arguments.find(
|
|
29
|
+
(argument) => argument.name.value === "resource_type",
|
|
30
|
+
);
|
|
31
|
+
expect(resourceType.value.value).toBe(value);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const expectRelationLinks = (document, childrenResourceType) => {
|
|
28
35
|
const parents = fieldAtPath(document, PARENT_PATH);
|
|
29
36
|
const children = fieldAtPath(document, CHILD_PATH);
|
|
30
37
|
|
|
31
38
|
expect(selectionNames(parents)).toEqual(expect.arrayContaining(["links"]));
|
|
32
39
|
expect(selectionNames(children)).toEqual(expect.arrayContaining(["links"]));
|
|
33
40
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
expectResourceType(parents, "business_concept");
|
|
42
|
+
|
|
43
|
+
if (childrenResourceType) {
|
|
44
|
+
expectResourceType(children, childrenResourceType);
|
|
45
|
+
} else {
|
|
46
|
+
expect(linksField(children).arguments).toEqual([]);
|
|
47
|
+
}
|
|
39
48
|
};
|
|
40
49
|
|
|
41
50
|
describe("LEGACY_DATA_STRUCTURE_VERSION_QUERY", () => {
|
|
@@ -46,10 +55,10 @@ describe("LEGACY_DATA_STRUCTURE_VERSION_QUERY", () => {
|
|
|
46
55
|
|
|
47
56
|
describe("buildDSVQuery", () => {
|
|
48
57
|
it("requests concept links on parent and child structure relations", () => {
|
|
49
|
-
expectRelationLinks(buildDSVQuery(false));
|
|
58
|
+
expectRelationLinks(buildDSVQuery(false), "business_concept");
|
|
50
59
|
});
|
|
51
60
|
|
|
52
61
|
it("requests concept links on parent and child structure relations when loading metadata", () => {
|
|
53
|
-
expectRelationLinks(buildDSVQuery(true));
|
|
62
|
+
expectRelationLinks(buildDSVQuery(true), "business_concept");
|
|
54
63
|
});
|
|
55
64
|
});
|
package/src/api/queries.js
CHANGED
|
@@ -5,10 +5,10 @@ import { useParams } from "react-router";
|
|
|
5
5
|
import { Card, Label } from "semantic-ui-react";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { FormattedNumber, FormattedMessage } from "react-intl";
|
|
8
|
-
import
|
|
8
|
+
import CardGroupsAccordion from "@truedat/core/components/CardGroupsAccordion";
|
|
9
9
|
import { linkTo } from "@truedat/core/routes";
|
|
10
10
|
import { useSearchContext } from "@truedat/core/search/SearchContext";
|
|
11
|
-
import
|
|
11
|
+
import Loading from "@truedat/core/components/Loading";
|
|
12
12
|
|
|
13
13
|
const moveMissingBucketToTheEnd = (buckets) =>
|
|
14
14
|
_.sortBy(({ key }) => (key === "_missing" || key === "" ? 1 : 0))(buckets);
|
|
@@ -6,7 +6,7 @@ import { Link } from "react-router";
|
|
|
6
6
|
import { BUCKET_VIEW_CONFIG_NEW, linkTo } from "@truedat/core/routes";
|
|
7
7
|
import { useQuery } from "@apollo/client";
|
|
8
8
|
import { Button, Segment, Table } from "semantic-ui-react";
|
|
9
|
-
import
|
|
9
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
10
10
|
import { connect } from "react-redux";
|
|
11
11
|
import { CATALOG_VIEW_CONFIGS_QUERY } from "@truedat/core/api/queries";
|
|
12
12
|
import { deleteCatalogViewConfig as deleteCatalogViewConfigRoutine } from "../routines";
|
|
@@ -4,7 +4,7 @@ import { Button, Checkbox, Form, Header, Icon } from "semantic-ui-react";
|
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { connect } from "react-redux";
|
|
7
|
-
import
|
|
7
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
8
8
|
import { updateStructure } from "../routines";
|
|
9
9
|
|
|
10
10
|
export const EditDomainForm = ({
|
|
@@ -2,7 +2,7 @@ import PropTypes from "prop-types";
|
|
|
2
2
|
import { connect } from "react-redux";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { Button } from "semantic-ui-react";
|
|
5
|
-
import
|
|
5
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
6
6
|
import { deleteGrantApprovalRule } from "../routines";
|
|
7
7
|
|
|
8
8
|
export const GrantApprovalRuleDeleteButton = ({
|
|
@@ -4,7 +4,8 @@ import { useForm, useWatch, Controller } from "react-hook-form";
|
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { useQuery } from "@apollo/client";
|
|
6
6
|
import { Button, Form, Segment, Label } from "semantic-ui-react";
|
|
7
|
-
import
|
|
7
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
8
|
+
import HistoryBackButton from "@truedat/core/components/HistoryBackButton";
|
|
8
9
|
import { CURRENT_ROLES } from "@truedat/core/api/queries";
|
|
9
10
|
import GrantApprovalRuleConditions from "./GrantApprovalRuleConditions";
|
|
10
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { connect } from "react-redux";
|
|
2
2
|
import { bindActionCreators } from "redux";
|
|
3
|
-
import
|
|
3
|
+
import AvailableFilters from "@truedat/core/components/AvailableFilters";
|
|
4
4
|
import { addGrantFilter, resetGrantFilters } from "../routines";
|
|
5
5
|
import { getGrantAvailableFilters } from "../selectors";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { connect } from "react-redux";
|
|
2
2
|
import { bindActionCreators } from "redux";
|
|
3
|
-
import
|
|
3
|
+
import FiltersLoader from "@truedat/core/components/FiltersLoader";
|
|
4
4
|
import { makeActiveFiltersSelector } from "@truedat/core/selectors";
|
|
5
5
|
import { clearGrantFilters, fetchGrantFilters } from "../routines";
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
|
-
import
|
|
5
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
6
6
|
import { Button } from "semantic-ui-react";
|
|
7
7
|
|
|
8
8
|
export const GrantRemovalDirectButton = ({
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
Table,
|
|
16
16
|
} from "semantic-ui-react";
|
|
17
17
|
import GenericCrumbs from "@truedat/core/components/GenericCrumbs";
|
|
18
|
-
import { getGrantRequestTemplate } from "../selectors";
|
|
18
|
+
import { getGrantRequestTemplate } from "../selectors/getGrantRequestTemplate";
|
|
19
19
|
import { GrantRequestHeader } from "./GrantRequestHeader";
|
|
20
20
|
import GrantRequestSummary from "./GrantRequestSummary";
|
|
21
21
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import { connect } from "react-redux";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import
|
|
4
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
5
5
|
import { createGrantRequestStatus } from "../routines";
|
|
6
6
|
|
|
7
7
|
export const GrantRequestCancel = ({
|
|
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
6
|
import { Accordion, Form, Icon, Header, Button } from "semantic-ui-react";
|
|
7
|
-
import
|
|
7
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
8
8
|
import { DOMAINS_QUERY } from "@truedat/core/api/queries";
|
|
9
9
|
import {
|
|
10
10
|
clearNodes,
|