@truedat/dq 7.11.2 → 7.11.4
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "7.11.
|
|
3
|
+
"version": "7.11.4",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
87
87
|
"swr": "^2.3.3"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "6e614a856e1b8cb0a8beaa3b4f20c851f5b93f4f"
|
|
90
90
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
|
+
import { useDispatch } from "react-redux";
|
|
3
4
|
import { Button, Checkbox } from "semantic-ui-react";
|
|
4
5
|
import { Link } from "react-router";
|
|
5
6
|
import { useIntl } from "react-intl";
|
|
@@ -8,11 +9,7 @@ import {
|
|
|
8
9
|
IMPLEMENTATION_NEW_RAW,
|
|
9
10
|
} from "@truedat/core/routes";
|
|
10
11
|
import { useSearchContext } from "@truedat/core/search/SearchContext";
|
|
11
|
-
import {
|
|
12
|
-
addImplementationFilter,
|
|
13
|
-
toggleImplementationFilterValue,
|
|
14
|
-
removeImplementationFilter,
|
|
15
|
-
} from "../routines";
|
|
12
|
+
import { createExecutionGroup } from "../routines";
|
|
16
13
|
import ExecutionPopup from "./ExecutionPopup";
|
|
17
14
|
import RuleImplementationsOptions from "./RuleImplementationsOptions";
|
|
18
15
|
|
|
@@ -22,11 +19,15 @@ export const RuleImplementationsActions = ({
|
|
|
22
19
|
setMode,
|
|
23
20
|
}) => {
|
|
24
21
|
const { formatMessage } = useIntl();
|
|
22
|
+
const dispatch = useDispatch();
|
|
23
|
+
|
|
25
24
|
const {
|
|
26
25
|
searchData,
|
|
27
26
|
count: ruleImplementationCount,
|
|
28
27
|
loading: ruleImplementationsLoading,
|
|
29
28
|
filterParams: implementationQuery,
|
|
29
|
+
toggleHiddenFilterValue,
|
|
30
|
+
removeHiddenFilter,
|
|
30
31
|
} = useSearchContext();
|
|
31
32
|
|
|
32
33
|
const actions = searchData?._actions;
|
|
@@ -34,15 +35,14 @@ export const RuleImplementationsActions = ({
|
|
|
34
35
|
const canExecute = !!actions?.execute;
|
|
35
36
|
|
|
36
37
|
const showExecutableInfo = () => {
|
|
37
|
-
|
|
38
|
-
toggleImplementationFilterValue({
|
|
38
|
+
toggleHiddenFilterValue({
|
|
39
39
|
filter: "executable",
|
|
40
|
-
value: true,
|
|
40
|
+
value: [true],
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
const hideExecutableInfo = () => {
|
|
45
|
-
|
|
45
|
+
removeHiddenFilter({ filter: "executable" });
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
const handleChange = (checked) => {
|
|
@@ -54,7 +54,7 @@ export const RuleImplementationsActions = ({
|
|
|
54
54
|
const query = _.isEmpty(selectedImplementations)
|
|
55
55
|
? _.omit(["sort", "page", "size"])(implementationQuery)
|
|
56
56
|
: { filters: { id: selectedImplementations } };
|
|
57
|
-
createExecutionGroup({ ...query, df_content });
|
|
57
|
+
dispatch(createExecutionGroup({ ...query, df_content }));
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
return (
|
|
@@ -14,7 +14,7 @@ describe("reducers: ruleImplementationRedirect", () => {
|
|
|
14
14
|
expect(ruleImplementationRedirect(undefined, {})).toBe(initialState);
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
it("should be true after receiving the
|
|
17
|
+
it("should be true after receiving the clearRedirect.TRIGGER action", () => {
|
|
18
18
|
expect(
|
|
19
19
|
ruleImplementationRedirect(fooState, { type: clearRedirect.TRIGGER })
|
|
20
20
|
).toBe(initialState);
|