@truedat/dq 4.46.12 → 4.46.13
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 +8 -0
- package/package.json +4 -4
- package/src/components/RuleImplementationProperties.js +6 -3
- package/src/components/__tests__/RuleImplementationProperties.spec.js +1 -12
- package/src/components/__tests__/__snapshots__/RuleImplementationProperties.spec.js.snap +11 -11
- package/src/selectors/getRuleImplementationColumns.js +2 -8
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "4.46.
|
|
3
|
+
"version": "4.46.13",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@apollo/client": "^3.6.4",
|
|
91
|
-
"@truedat/core": "4.46.
|
|
92
|
-
"@truedat/df": "4.46.
|
|
91
|
+
"@truedat/core": "4.46.13",
|
|
92
|
+
"@truedat/df": "4.46.13",
|
|
93
93
|
"axios": "^0.19.2",
|
|
94
94
|
"graphql": "^15.5.3",
|
|
95
95
|
"path-to-regexp": "^1.7.0",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"react-dom": ">= 16.8.6 < 17",
|
|
111
111
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "89cd539e47e64a3e4a6f8bc30ea4d3b66fb0b666"
|
|
114
114
|
}
|
|
@@ -27,9 +27,12 @@ export const RuleImplementationProperties = ({
|
|
|
27
27
|
<Grid.Row>
|
|
28
28
|
<Grid.Column>
|
|
29
29
|
<Label>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
{ruleImplementation.status ? (
|
|
31
|
+
<FormattedMessage
|
|
32
|
+
id={`ruleImplementation.status.${ruleImplementation.status}`}
|
|
33
|
+
defaultMessage={ruleImplementation.status}
|
|
34
|
+
/>
|
|
35
|
+
) : null}
|
|
33
36
|
</Label>
|
|
34
37
|
{ruleImplementation?.status == "published" ? (
|
|
35
38
|
<Label color={ruleImplementation.executable ? "olive" : "teal"}>
|
|
@@ -14,13 +14,8 @@ describe("<RuleImplementationProperties />", () => {
|
|
|
14
14
|
id: 10,
|
|
15
15
|
executable: true,
|
|
16
16
|
name: "NameRule2",
|
|
17
|
-
system: "SYS",
|
|
18
17
|
type: "integer_values_range",
|
|
19
|
-
|
|
20
|
-
external_id: "Microstrategy",
|
|
21
|
-
id: 1,
|
|
22
|
-
name: "Microstrategy",
|
|
23
|
-
},
|
|
18
|
+
status: "published",
|
|
24
19
|
system_params: {
|
|
25
20
|
table: { name: "aaaxxx" },
|
|
26
21
|
column: {
|
|
@@ -61,14 +56,8 @@ describe("<RuleImplementationProperties />", () => {
|
|
|
61
56
|
id: 10,
|
|
62
57
|
executable: true,
|
|
63
58
|
name: "NameRule2",
|
|
64
|
-
system: "SYS",
|
|
65
59
|
type: "integer_values_range",
|
|
66
60
|
status: "published",
|
|
67
|
-
system: {
|
|
68
|
-
external_id: "Microstrategy",
|
|
69
|
-
id: 1,
|
|
70
|
-
name: "Microstrategy",
|
|
71
|
-
},
|
|
72
61
|
system_params: {
|
|
73
62
|
table: { name: "aaaxxx" },
|
|
74
63
|
column: {
|
|
@@ -9,7 +9,15 @@ exports[`<RuleImplementationProperties /> matches the latest snapshot 1`] = `
|
|
|
9
9
|
<GridColumn>
|
|
10
10
|
<Label>
|
|
11
11
|
<MemoizedFormattedMessage
|
|
12
|
-
|
|
12
|
+
defaultMessage="published"
|
|
13
|
+
id="ruleImplementation.status.published"
|
|
14
|
+
/>
|
|
15
|
+
</Label>
|
|
16
|
+
<Label
|
|
17
|
+
color="olive"
|
|
18
|
+
>
|
|
19
|
+
<MemoizedFormattedMessage
|
|
20
|
+
id="ruleImplementation.props.executable.true"
|
|
13
21
|
/>
|
|
14
22
|
</Label>
|
|
15
23
|
</GridColumn>
|
|
@@ -27,11 +35,7 @@ exports[`<RuleImplementationProperties /> matches the latest snapshot 1`] = `
|
|
|
27
35
|
"minimum": 1,
|
|
28
36
|
"name": "NameRule2",
|
|
29
37
|
"result_type": "percentage",
|
|
30
|
-
"
|
|
31
|
-
"external_id": "Microstrategy",
|
|
32
|
-
"id": 1,
|
|
33
|
-
"name": "Microstrategy",
|
|
34
|
-
},
|
|
38
|
+
"status": "published",
|
|
35
39
|
"system_params": Object {
|
|
36
40
|
"column": Object {
|
|
37
41
|
"id": 2876,
|
|
@@ -74,11 +78,7 @@ exports[`<RuleImplementationProperties /> matches the latest snapshot 1`] = `
|
|
|
74
78
|
"minimum": 1,
|
|
75
79
|
"name": "NameRule2",
|
|
76
80
|
"result_type": "percentage",
|
|
77
|
-
"
|
|
78
|
-
"external_id": "Microstrategy",
|
|
79
|
-
"id": 1,
|
|
80
|
-
"name": "Microstrategy",
|
|
81
|
-
},
|
|
81
|
+
"status": "published",
|
|
82
82
|
"system_params": Object {
|
|
83
83
|
"column": Object {
|
|
84
84
|
"id": 2876,
|
|
@@ -8,7 +8,8 @@ import RuleResultDecorator from "../components/RuleResultDecorator";
|
|
|
8
8
|
import RuleImplementationLink from "../components/RuleImplementationLink";
|
|
9
9
|
import RuleLink from "../components/RuleLink";
|
|
10
10
|
|
|
11
|
-
const translateDecorator = (id) =>
|
|
11
|
+
const translateDecorator = (id) =>
|
|
12
|
+
id ? <FormattedMessage id={id} defaultMessage={id} /> : null;
|
|
12
13
|
|
|
13
14
|
const resultTypeDecorator = (result, result_type) =>
|
|
14
15
|
result_type === "errors_number" ? formatNumber(result) : `${result}%`;
|
|
@@ -28,13 +29,6 @@ export const defaultImplementationColumns = [
|
|
|
28
29
|
fieldDecorator: RuleLink,
|
|
29
30
|
width: 2,
|
|
30
31
|
},
|
|
31
|
-
{
|
|
32
|
-
name: "status",
|
|
33
|
-
fieldDecorator: (value) =>
|
|
34
|
-
translateDecorator(`ruleImplementation.status.${value}`),
|
|
35
|
-
sort: { name: "status" },
|
|
36
|
-
width: 2,
|
|
37
|
-
},
|
|
38
32
|
{
|
|
39
33
|
name: "business_concept",
|
|
40
34
|
fieldSelector: _.path("current_business_concept_version.name"),
|