@truedat/dq 8.12.6 → 8.12.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/package.json +4 -4
- package/src/components/ExecutionGroupBreadcrumbs.js +1 -1
- package/src/components/ExecutionGroupLink.js +1 -1
- package/src/components/ExecutionGroups.js +1 -1
- package/src/components/ExecutionTemplateSelector.js +1 -1
- package/src/components/ImplementationActions.js +2 -1
- package/src/components/ImplementationCrumbs.js +1 -1
- package/src/components/ImplementationExecutionFilters.js +1 -1
- package/src/components/ImplementationExecutions.js +3 -1
- package/src/components/ImplementationFiltersLoader.js +1 -1
- package/src/components/ImplementationStructureDelete.js +1 -1
- package/src/components/ImplementationStructuresNew.js +1 -1
- package/src/components/Implementations.js +1 -1
- package/src/components/ImplementationsUploadButton.js +1 -1
- package/src/components/NewRuleImplementation.js +1 -1
- package/src/components/RemediationPlan.js +2 -2
- package/src/components/RuleActions.js +2 -1
- package/src/components/RuleFilters.js +1 -1
- package/src/components/RuleFiltersLoader.js +1 -1
- package/src/components/RuleForm.js +3 -5
- package/src/components/RuleImplementationHistory.js +1 -1
- package/src/components/RuleImplementationHistoryRow.js +1 -1
- package/src/components/RuleImplementationLoader.js +1 -1
- package/src/components/RuleImplementationResults.js +3 -2
- package/src/components/RuleLoader.js +1 -1
- package/src/components/RuleProperties.js +1 -1
- package/src/components/RuleResultDetails.js +1 -1
- package/src/components/RuleResultRow.js +2 -1
- package/src/components/RuleResultSegmentRow.js +1 -1
- package/src/components/RuleResultsRoutes.js +1 -1
- package/src/components/RuleResultsUpload.js +1 -1
- package/src/components/RuleSelectedFilters.js +1 -1
- package/src/components/RuleSelectionForm.js +1 -1
- package/src/components/RulesPagination.js +1 -1
- package/src/components/RulesUploadButton.js +1 -1
- package/src/components/__tests__/ConceptRulesLoader.spec.js +2 -1
- package/src/components/__tests__/ExecutionGroupLoader.spec.js +2 -1
- package/src/components/__tests__/ExecutionGroupMessage.spec.js +2 -1
- package/src/components/__tests__/ExecutionPopup.spec.js +1 -1
- package/src/components/__tests__/ExecutionWarning.spec.js +1 -1
- package/src/components/__tests__/ImplementationStructureDelete.spec.js +1 -1
- package/src/components/__tests__/ImplementationsUploadButton.spec.js +2 -1
- package/src/components/__tests__/InformationSummary.spec.js +1 -1
- package/src/components/__tests__/QualityEventError.spec.js +2 -1
- package/src/components/__tests__/RawContent.spec.js +1 -1
- package/src/components/__tests__/Rule.spec.js +2 -1
- package/src/components/__tests__/RuleEventDecorator.spec.js +1 -1
- package/src/components/__tests__/RuleEventRow.spec.js +1 -1
- package/src/components/__tests__/RuleEvents.spec.js +1 -1
- package/src/components/__tests__/RuleImplementationEventRow.spec.js +1 -1
- package/src/components/__tests__/RuleImplementationEvents.spec.js +1 -1
- package/src/components/__tests__/RuleImplementationLoader.spec.js +1 -1
- package/src/components/__tests__/RuleImplementationProperties.spec.js +2 -1
- package/src/components/__tests__/RuleImplementationsLoader.spec.js +2 -1
- package/src/components/__tests__/RuleImplementationsTable.spec.js +2 -1
- package/src/components/__tests__/RuleResultDecorator.spec.js +2 -1
- package/src/components/__tests__/RuleResultDetails.spec.js +2 -1
- package/src/components/__tests__/RuleResultRemediationLoader.spec.js +2 -1
- package/src/components/__tests__/RuleResultSegmentRow.spec.js +2 -1
- package/src/components/__tests__/RuleResultSegments.spec.js +2 -1
- package/src/components/__tests__/RuleResultSegmentsLoader.spec.js +2 -1
- package/src/components/__tests__/RuleSubscriptionLoader.spec.js +2 -1
- package/src/components/__tests__/RuleSummary.spec.js +1 -1
- package/src/components/__tests__/RulesLoader.spec.js +2 -1
- package/src/components/__tests__/RulesUploadButton.spec.js +1 -1
- package/src/components/__tests__/Subscription.spec.js +2 -1
- package/src/components/__tests__/TaxonomySummary.spec.js +1 -1
- package/src/components/ruleImplementationForm/DatasetForm.js +1 -1
- package/src/components/ruleImplementationForm/FiltersFormGroup.js +1 -1
- package/src/components/ruleImplementationForm/InformationForm.js +1 -1
- package/src/components/ruleImplementationForm/RuleImplementationBasicForm.js +1 -1
- package/src/components/ruleImplementationForm/RuleImplementationForm.js +1 -1
- package/src/components/ruleImplementationForm/RuleImplementationRawForm.js +2 -2
- package/src/components/ruleImplementationForm/__tests__/FiltersFormGroup.spec.js +12 -1
- package/src/components/ruleImplementationForm/__tests__/LimitsForm.spec.js +2 -1
- package/src/selectors/__tests__/getParsedEvents.spec.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.8",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"@testing-library/jest-dom": "^6.6.3",
|
|
60
60
|
"@testing-library/react": "^16.3.0",
|
|
61
61
|
"@testing-library/user-event": "^14.6.1",
|
|
62
|
-
"@truedat/test": "8.12.
|
|
62
|
+
"@truedat/test": "8.12.8",
|
|
63
63
|
"identity-obj-proxy": "^3.0.0",
|
|
64
64
|
"jest": "^29.7.0",
|
|
65
65
|
"redux-saga-test-plan": "^4.0.6"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@apollo/client": "^3.13.8",
|
|
69
|
-
"axios": "^1.
|
|
69
|
+
"axios": "^1.20.0",
|
|
70
70
|
"file-saver": "^2.0.5",
|
|
71
71
|
"graphql": "^16.11.0",
|
|
72
72
|
"is-hotkey": "^0.2.0",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
93
93
|
"swr": "^2.3.3"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "682b801555be3f898e0502fd70a48ea32110c327"
|
|
96
96
|
}
|
|
@@ -2,7 +2,7 @@ import PropTypes from "prop-types";
|
|
|
2
2
|
import { Breadcrumb } from "semantic-ui-react";
|
|
3
3
|
import { Link } from "react-router";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
|
-
import
|
|
5
|
+
import DateTime from "@truedat/core/components/DateTime";
|
|
6
6
|
import { EXECUTION_GROUPS } from "@truedat/core/routes";
|
|
7
7
|
|
|
8
8
|
export const ExecutionGroupBreadcrumbs = ({ timestamp }) => (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import { Link } from "react-router";
|
|
3
|
-
import
|
|
3
|
+
import DateTime from "@truedat/core/components/DateTime";
|
|
4
4
|
import { linkTo } from "@truedat/core/routes";
|
|
5
5
|
|
|
6
6
|
export const ExecutionGroupLink = ({ id, insertedAt }) => (
|
|
@@ -3,7 +3,7 @@ import queryString from "query-string";
|
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { useLocation } from "react-router";
|
|
5
5
|
import { Header, Segment } from "semantic-ui-react";
|
|
6
|
-
import
|
|
6
|
+
import CursorPagination from "@truedat/core/components/CursorPagination";
|
|
7
7
|
import { MY_EXECUTION_GROUPS_QUERY } from "../api/queries";
|
|
8
8
|
import ExecutionGroupsTable from "./ExecutionGroupsTable";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import { Icon } from "semantic-ui-react";
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import _ from "lodash/fp";
|
|
6
|
-
import
|
|
6
|
+
import TemplateSelector from "@truedat/core/components/TemplateSelector";
|
|
7
7
|
import { validateContent, flattenFields, isRequired } from "@truedat/df/utils";
|
|
8
8
|
|
|
9
9
|
const DynamicForm = lazy(() => import("@truedat/df/components/DynamicForm"));
|
|
@@ -4,7 +4,8 @@ import { Link, useNavigate } from "react-router";
|
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { connect } from "react-redux";
|
|
6
6
|
import { Button } from "semantic-ui-react";
|
|
7
|
-
import
|
|
7
|
+
import GroupActions from "@truedat/core/components/GroupActions";
|
|
8
|
+
import OptionModal from "@truedat/core/components/OptionModal";
|
|
8
9
|
import { linkTo, IMPLEMENTATIONS } from "@truedat/core/routes";
|
|
9
10
|
import {
|
|
10
11
|
createExecutionGroup,
|
|
@@ -6,7 +6,7 @@ import { Link } from "react-router";
|
|
|
6
6
|
import { useParams } from "react-router";
|
|
7
7
|
import { FormattedMessage } from "react-intl";
|
|
8
8
|
import { RULES, IMPLEMENTATIONS, linkTo } from "@truedat/core/routes";
|
|
9
|
-
import
|
|
9
|
+
import DateTime from "@truedat/core/components/DateTime";
|
|
10
10
|
|
|
11
11
|
export const ImplementationCrumbs = ({ ruleImplementation, ruleResult }) => {
|
|
12
12
|
const { rule_result_id } = useParams();
|
|
@@ -6,7 +6,7 @@ import { useIntl } from "react-intl";
|
|
|
6
6
|
import { useLocation, Link } from "react-router";
|
|
7
7
|
import { useParams } from "react-router";
|
|
8
8
|
import { Menu } from "semantic-ui-react";
|
|
9
|
-
import
|
|
9
|
+
import Loading from "@truedat/core/components/Loading";
|
|
10
10
|
import { IMPLEMENTATION_EXECUTION_FILTERS_QUERY } from "../api/queries";
|
|
11
11
|
|
|
12
12
|
export const ExecutionFilter = ({ field, values, header }) => {
|
|
@@ -6,7 +6,9 @@ import { FormattedMessage } from "react-intl";
|
|
|
6
6
|
import { useLocation } from "react-router";
|
|
7
7
|
import { useParams } from "react-router";
|
|
8
8
|
import { Grid, Segment, Table } from "semantic-ui-react";
|
|
9
|
-
import
|
|
9
|
+
import CursorPagination from "@truedat/core/components/CursorPagination";
|
|
10
|
+
import DateTime from "@truedat/core/components/DateTime";
|
|
11
|
+
import Loading from "@truedat/core/components/Loading";
|
|
10
12
|
import { IMPLEMENTATION_EXECUTIONS_QUERY } from "../api/queries";
|
|
11
13
|
import ImplementationExecutionFilters from "./ImplementationExecutionFilters";
|
|
12
14
|
|
|
@@ -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 {
|
|
6
6
|
clearImplementationFilters,
|
|
@@ -2,7 +2,7 @@ import PropTypes from "prop-types";
|
|
|
2
2
|
import { connect } from "react-redux";
|
|
3
3
|
import { Button, Icon } from "semantic-ui-react";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
|
-
import
|
|
5
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
6
6
|
import { deleteImplementationStructure } from "../routines";
|
|
7
7
|
|
|
8
8
|
export const ImplementationStructureDelete = ({
|
|
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Button, Dropdown, Grid, Header, Segment } from "semantic-ui-react";
|
|
7
|
-
import
|
|
7
|
+
import HistoryBackButton from "@truedat/core/components/HistoryBackButton";
|
|
8
8
|
import { linkTo } from "@truedat/core/routes";
|
|
9
9
|
import { createImplementationStructure } from "../routines";
|
|
10
10
|
|
|
@@ -6,7 +6,7 @@ import { useSelector } from "react-redux";
|
|
|
6
6
|
import PropTypes from "prop-types";
|
|
7
7
|
import { Segment } from "semantic-ui-react";
|
|
8
8
|
import { SearchContextProvider } from "@truedat/core/search/SearchContext";
|
|
9
|
-
import
|
|
9
|
+
import StructureFilterItem from "@truedat/core/components/StructureFilterItem";
|
|
10
10
|
import { getRiSubscopes } from "@truedat/core/selectors";
|
|
11
11
|
import {
|
|
12
12
|
IMPLEMENTATIONS,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useWebContext } from "@truedat/core/webContext";
|
|
2
2
|
import { Dropdown } from "semantic-ui-react";
|
|
3
3
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
4
|
-
import
|
|
4
|
+
import UploadModal from "@truedat/core/components/UploadModal";
|
|
5
5
|
import { linkTo } from "@truedat/core/routes";
|
|
6
6
|
import { useSearchContext } from "@truedat/core/search/SearchContext";
|
|
7
7
|
import { useImplementationsUpload } from "../hooks/useImplementations";
|
|
@@ -7,7 +7,7 @@ import { FormattedMessage } from "react-intl";
|
|
|
7
7
|
import { useLocation } from "react-router";
|
|
8
8
|
import { Divider, Loader, Header, Grid } from "semantic-ui-react";
|
|
9
9
|
import { linkTo } from "@truedat/core/routes";
|
|
10
|
-
import
|
|
10
|
+
import Loading from "@truedat/core/components/Loading";
|
|
11
11
|
import { useOperators } from "@truedat/core/hooks";
|
|
12
12
|
import { getFieldType } from "@truedat/core/services/fieldType";
|
|
13
13
|
import { useConcept } from "../hooks/useConcept";
|
|
@@ -6,8 +6,8 @@ import { useIntl } from "react-intl";
|
|
|
6
6
|
import { useParams } from "react-router";
|
|
7
7
|
import { Button, Grid, Container } from "semantic-ui-react";
|
|
8
8
|
import { FormattedMessage } from "react-intl";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import Loading from "@truedat/core/components/Loading";
|
|
10
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
11
11
|
import { deleteRemediation } from "../routines";
|
|
12
12
|
import NewRemediation from "./NewRemediation";
|
|
13
13
|
import RemediationForm from "./RemediationForm";
|
|
@@ -4,7 +4,8 @@ import { connect } from "react-redux";
|
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
5
|
import { Button, Icon } from "semantic-ui-react";
|
|
6
6
|
import { FormattedMessage } from "react-intl";
|
|
7
|
-
import
|
|
7
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
8
|
+
import GroupActions from "@truedat/core/components/GroupActions";
|
|
8
9
|
import { linkTo, RULES } from "@truedat/core/routes";
|
|
9
10
|
import { deleteRule } from "../routines";
|
|
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 { addRuleFilter, resetRuleFilters } from "../routines";
|
|
5
5
|
import { getRuleAvailableFilters } 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 { clearRuleFilters, fetchRuleFilters } from "../routines";
|
|
6
6
|
|
|
@@ -14,11 +14,9 @@ import {
|
|
|
14
14
|
Popup,
|
|
15
15
|
Icon,
|
|
16
16
|
} from "semantic-ui-react";
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
MarkdownEditor,
|
|
21
|
-
} from "@truedat/core/components";
|
|
17
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
18
|
+
import HistoryBackButton from "@truedat/core/components/HistoryBackButton";
|
|
19
|
+
import { MarkdownEditor } from "@truedat/core/components/Markdown";
|
|
22
20
|
|
|
23
21
|
const ConceptSelector = lazy(
|
|
24
22
|
() => import("@truedat/bg/concepts/relations/components/ConceptSelector"),
|
|
@@ -5,7 +5,7 @@ import PropTypes from "prop-types";
|
|
|
5
5
|
import { connect } from "react-redux";
|
|
6
6
|
import { Segment, Grid, Table } from "semantic-ui-react";
|
|
7
7
|
import { FormattedMessage } from "react-intl";
|
|
8
|
-
import
|
|
8
|
+
import Loading from "@truedat/core/components/Loading";
|
|
9
9
|
import { IMPLEMENTATION_VERSIONS_QUERY } from "../api/queries";
|
|
10
10
|
|
|
11
11
|
import RuleImplementationHistoryRow from "./RuleImplementationHistoryRow";
|
|
@@ -2,7 +2,7 @@ import PropTypes from "prop-types";
|
|
|
2
2
|
import { Link } from "react-router";
|
|
3
3
|
import { Table } from "semantic-ui-react";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
|
-
import
|
|
5
|
+
import DateTime from "@truedat/core/components/DateTime";
|
|
6
6
|
import { linkTo } from "@truedat/core/routes";
|
|
7
7
|
|
|
8
8
|
export const RuleImplementationHistoryRow = ({
|
|
@@ -2,7 +2,7 @@ import { useEffect } from "react";
|
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { useParams } from "react-router";
|
|
5
|
-
import
|
|
5
|
+
import Loading from "@truedat/core/components/Loading";
|
|
6
6
|
import { clearRuleImplementation, fetchRuleImplementation } from "../routines";
|
|
7
7
|
|
|
8
8
|
export const RuleImplementationLoader = ({
|
|
@@ -5,8 +5,9 @@ import PropTypes from "prop-types";
|
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Segment, Message, Divider } from "semantic-ui-react";
|
|
7
7
|
import { columnDecorator } from "@truedat/core/services";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import DateTime from "@truedat/core/components/DateTime";
|
|
9
|
+
import Loading from "@truedat/core/components/Loading";
|
|
10
|
+
import CursorPagination from "@truedat/core/components/CursorPagination";
|
|
10
11
|
import { useLocation } from "react-router";
|
|
11
12
|
import queryString from "query-string";
|
|
12
13
|
import { IMPLEMENTATION_RESULTS_CONNECTION_QUERY } from "../api/queries";
|
|
@@ -2,7 +2,7 @@ import { useEffect } from "react";
|
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { useParams } from "react-router";
|
|
5
|
-
import
|
|
5
|
+
import Loading from "@truedat/core/components/Loading";
|
|
6
6
|
import { clearRule, fetchRule } from "../routines";
|
|
7
7
|
|
|
8
8
|
export const RuleLoader = ({ clearRule, fetchRule, loading }) => {
|
|
@@ -4,7 +4,7 @@ import { FormattedMessage } from "react-intl";
|
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { Link } from "react-router";
|
|
6
6
|
import { List, Label } from "semantic-ui-react";
|
|
7
|
-
import { MarkdownReader } from "@truedat/core/components";
|
|
7
|
+
import { MarkdownReader } from "@truedat/core/components/MarkdownReader";
|
|
8
8
|
import { linkTo } from "@truedat/core/routes";
|
|
9
9
|
|
|
10
10
|
const getStatusColor = (active) =>
|
|
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { Table, Icon } from "semantic-ui-react";
|
|
6
|
-
import
|
|
6
|
+
import DateTime from "@truedat/core/components/DateTime";
|
|
7
7
|
import { selectColor } from "../functions/selectors";
|
|
8
8
|
import "../styles/ExecutionDetails.less";
|
|
9
9
|
|
|
@@ -4,7 +4,8 @@ import { connect } from "react-redux";
|
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { Link } from "react-router";
|
|
6
6
|
import { Button, Table, Icon, Label } from "semantic-ui-react";
|
|
7
|
-
import
|
|
7
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
8
|
+
import DateTime from "@truedat/core/components/DateTime";
|
|
8
9
|
import { useAuthorized } from "@truedat/core/hooks";
|
|
9
10
|
import { columnDecorator } from "@truedat/core/services";
|
|
10
11
|
import { linkTo } from "@truedat/core/routes";
|
|
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { Table, Icon } from "semantic-ui-react";
|
|
6
|
-
import
|
|
6
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
7
7
|
import { columnDecorator } from "@truedat/core/services";
|
|
8
8
|
import { selectColor } from "../functions/selectors";
|
|
9
9
|
import { deleteRuleResult } from "../routines";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Routes, Route, useParams } from "react-router";
|
|
2
2
|
import { Segment } from "semantic-ui-react";
|
|
3
3
|
import { useQuery } from "@apollo/client";
|
|
4
|
-
import
|
|
4
|
+
import Loading from "@truedat/core/components/Loading";
|
|
5
5
|
import {
|
|
6
6
|
IMPLEMENTATION_RESULT_DETAILS,
|
|
7
7
|
IMPLEMENTATION_RESULT_SEGMENTS_RESULTS,
|
|
@@ -2,7 +2,7 @@ import PropTypes from "prop-types";
|
|
|
2
2
|
import { connect } from "react-redux";
|
|
3
3
|
import { Dropdown } from "semantic-ui-react";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
|
-
import
|
|
5
|
+
import UploadModal from "@truedat/core/components/UploadModal";
|
|
6
6
|
import { uploadResults } from "../routines";
|
|
7
7
|
|
|
8
8
|
export const RuleResultsUpload = ({ uploadResults, loading }) => {
|
|
@@ -3,7 +3,7 @@ import { bindActionCreators, compose } from "redux";
|
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { injectIntl } from "react-intl";
|
|
5
5
|
import { makeOption } from "@truedat/core/services/i18n";
|
|
6
|
-
import
|
|
6
|
+
import SelectedFilters from "@truedat/core/components/SelectedFilters";
|
|
7
7
|
import {
|
|
8
8
|
applyUserSearchFilter,
|
|
9
9
|
deleteUserSearchFilter,
|
|
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { useForm } from "react-hook-form";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { Button, Form } from "semantic-ui-react";
|
|
6
|
-
import
|
|
6
|
+
import HistoryBackButton from "@truedat/core/components/HistoryBackButton";
|
|
7
7
|
import { RuleSelectorLoader } from "./RuleSelector";
|
|
8
8
|
|
|
9
9
|
export const RuleSelectionForm = ({ saving, onSubmit, ruleId }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { connect } from "react-redux";
|
|
2
2
|
import { bindActionCreators } from "redux";
|
|
3
|
-
import
|
|
3
|
+
import Pagination from "@truedat/core/components/Pagination";
|
|
4
4
|
import { selectRulePage } from "../routines";
|
|
5
5
|
|
|
6
6
|
const mapDispatchToProps = (dispatch) =>
|
|
@@ -2,7 +2,7 @@ import PropTypes from "prop-types";
|
|
|
2
2
|
import { connect } from "react-redux";
|
|
3
3
|
import { Button } from "semantic-ui-react";
|
|
4
4
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
5
|
-
import
|
|
5
|
+
import UploadModal from "@truedat/core/components/UploadModal";
|
|
6
6
|
import { API_RULES_UPLOAD } from "../api";
|
|
7
7
|
import { uploadRules } from "../routines";
|
|
8
8
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { ConceptRulesLoader } from "../ConceptRulesLoader";
|
|
3
4
|
|
|
4
5
|
describe("<ConceptRulesLoader />", () => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { ExecutionGroupLoader } from "../ExecutionGroupLoader";
|
|
3
4
|
|
|
4
5
|
jest.mock("react-router", () => ({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { ExecutionGroupMessage } from "../ExecutionGroupMessage";
|
|
3
4
|
|
|
4
5
|
describe("<ExecutionGroupMessage />", () => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { waitFor, fireEvent } from "@testing-library/react";
|
|
2
2
|
import userEvent from "@testing-library/user-event";
|
|
3
|
-
import { render
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
4
5
|
import { useSearchContext } from "@truedat/core/search/SearchContext";
|
|
5
6
|
|
|
6
7
|
import { useImplementationsUpload } from "../../hooks/useImplementations";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { QualityEventError } from "../QualityEventError";
|
|
3
4
|
|
|
4
5
|
describe("<QualityEventError />", () => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { RuleImplementationProperties } from "../RuleImplementationProperties";
|
|
3
4
|
|
|
4
5
|
jest.mock("@truedat/bg/hooks/useDomains");
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { RuleImplementationsLoader } from "../RuleImplementationsLoader";
|
|
3
4
|
|
|
4
5
|
afterEach(() => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { waitFor } from "@testing-library/react";
|
|
2
2
|
import userEvent from "@testing-library/user-event";
|
|
3
|
-
import { render
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
4
5
|
import { useSearchContext } from "@truedat/core/search/SearchContext";
|
|
5
6
|
import { RuleImplementationsTable } from "../RuleImplementationsTable";
|
|
6
7
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { RuleResultDecorator } from "../RuleResultDecorator";
|
|
3
4
|
|
|
4
5
|
describe("<RuleResultDecorator />", () => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import { render
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
3
4
|
import { RuleResultDetails } from "../RuleResultDetails";
|
|
4
5
|
|
|
5
6
|
jest.mock("react-router", () => ({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { RuleResultRemediationLoader } from "../RuleResultRemediationLoader";
|
|
3
4
|
|
|
4
5
|
jest.mock("react-router", () => ({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { RuleResultSegmentRow } from "../RuleResultSegmentRow";
|
|
3
4
|
|
|
4
5
|
const renderRow = (props) =>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import { render
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
3
4
|
import {
|
|
4
5
|
RuleResultSegments,
|
|
5
6
|
getCustomColumnsWithData,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { RuleResultSegmentsLoader } from "../RuleResultSegmentsLoader";
|
|
3
4
|
|
|
4
5
|
jest.mock("react-router", () => ({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { RuleSubscriptionLoader } from "../RuleSubscriptionLoader";
|
|
3
4
|
|
|
4
5
|
jest.mock("react-router", () => ({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { RulesLoader } from "../RulesLoader";
|
|
3
4
|
|
|
4
5
|
describe("<RulesLoader />", () => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import userEvent from "@testing-library/user-event";
|
|
2
2
|
import { waitFor } from "@testing-library/react";
|
|
3
|
-
import { render
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
4
5
|
import {
|
|
5
6
|
Subscription,
|
|
6
7
|
SubscriptionContent,
|
|
@@ -7,7 +7,7 @@ import { dropAt, replaceAt } from "@truedat/core/services/arrays";
|
|
|
7
7
|
import { Button } from "semantic-ui-react";
|
|
8
8
|
import { useQuery } from "@apollo/client";
|
|
9
9
|
import { REFERENCE_DATASETS_HEADERS_QUERY } from "@truedat/dd/api/queries";
|
|
10
|
-
import
|
|
10
|
+
import Loading from "@truedat/core/components/Loading";
|
|
11
11
|
import { lowerDeburrTrim } from "@truedat/core/services/sort";
|
|
12
12
|
import { datasetDefaultFiltersSelector } from "../../selectors";
|
|
13
13
|
import "../../styles/ruleImplementationForm/DatasetForm.less";
|
|
@@ -3,7 +3,7 @@ import { lazy } from "react";
|
|
|
3
3
|
import { Form, Dropdown } from "semantic-ui-react";
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
-
import
|
|
6
|
+
import OptionGroup from "@truedat/core/components/OptionGroup";
|
|
7
7
|
import { getStructureFieldOptionValue } from "@truedat/dd/selectors/getStructureFieldOptionValue";
|
|
8
8
|
import { getStructureFields } from "../../selectors/getStructureFields";
|
|
9
9
|
import FiltersField from "./FiltersField";
|
|
@@ -5,7 +5,7 @@ import { useIntl, FormattedMessage } from "react-intl";
|
|
|
5
5
|
import { useQuery } from "@apollo/client";
|
|
6
6
|
import { DOMAIN_QUERY } from "@truedat/core/api/queries";
|
|
7
7
|
import { Form, Icon, Popup } from "semantic-ui-react";
|
|
8
|
-
import
|
|
8
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
9
9
|
import LimitsForm from "./LimitsForm";
|
|
10
10
|
|
|
11
11
|
const SelectableDynamicForm = lazy(
|
|
@@ -6,7 +6,7 @@ import { useNavigate } from "react-router";
|
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { useQuery } from "@apollo/client";
|
|
8
8
|
import { Button, Form, Icon, Popup } from "semantic-ui-react";
|
|
9
|
-
import
|
|
9
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
10
10
|
import { DOMAIN_QUERY } from "@truedat/core/api/queries";
|
|
11
11
|
import LimitsForm from "./LimitsForm";
|
|
12
12
|
import { areLimitsValid } from "./limitsValidation";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
Step,
|
|
14
14
|
Segment,
|
|
15
15
|
} from "semantic-ui-react";
|
|
16
|
-
import
|
|
16
|
+
import Loading from "@truedat/core/components/Loading";
|
|
17
17
|
import PopulationForm from "./PopulationForm";
|
|
18
18
|
import DatasetForm from "./DatasetForm";
|
|
19
19
|
import ValidationsForm from "./ValidationsForm";
|
|
@@ -6,10 +6,10 @@ import { useLocation } from "react-router";
|
|
|
6
6
|
import { useNavigate } from "react-router";
|
|
7
7
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
8
8
|
import { gql, useQuery } from "@apollo/client";
|
|
9
|
-
import
|
|
9
|
+
import Loading from "@truedat/core/components/Loading";
|
|
10
10
|
import { Button, Form, Icon, Popup } from "semantic-ui-react";
|
|
11
11
|
import { accentInsensitivePathOrder } from "@truedat/core/services/sort";
|
|
12
|
-
import
|
|
12
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
13
13
|
import { DOMAIN_QUERY } from "@truedat/core/api/queries";
|
|
14
14
|
import LimitsForm from "./LimitsForm";
|
|
15
15
|
import { areLimitsValid } from "./limitsValidation";
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { createStore } from "redux";
|
|
2
2
|
import { Provider } from "react-redux";
|
|
3
|
-
import { render
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
4
5
|
import { FiltersFormGroup } from "../FiltersFormGroup";
|
|
5
6
|
|
|
7
|
+
beforeAll(() => {
|
|
8
|
+
jest.useFakeTimers();
|
|
9
|
+
jest.setSystemTime(new Date("2025-01-01"));
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
afterAll(() => {
|
|
13
|
+
jest.useRealTimers();
|
|
14
|
+
});
|
|
15
|
+
|
|
6
16
|
describe("<FiltersFormGroup />", () => {
|
|
7
17
|
const operator = {
|
|
8
18
|
group: "references",
|
|
@@ -46,6 +56,7 @@ describe("<FiltersFormGroup />", () => {
|
|
|
46
56
|
<Provider store={store}>
|
|
47
57
|
<FiltersFormGroup {...props} />
|
|
48
58
|
</Provider>,
|
|
59
|
+
{ fallback: <div>loading</div> },
|
|
49
60
|
);
|
|
50
61
|
await waitForLoad(rendered);
|
|
51
62
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { fireEvent } from "@testing-library/react";
|
|
2
|
-
import { render
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
3
4
|
import LimitsForm from "../LimitsForm";
|
|
4
5
|
|
|
5
6
|
describe("<LimitsForm />", () => {
|