@truedat/dq 4.40.8 → 4.40.11
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
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "4.40.
|
|
3
|
+
"version": "4.40.11",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@babel/plugin-transform-modules-commonjs": "^7.15.0",
|
|
32
32
|
"@babel/preset-env": "^7.15.0",
|
|
33
33
|
"@babel/preset-react": "^7.14.5",
|
|
34
|
-
"@truedat/test": "4.40.
|
|
34
|
+
"@truedat/test": "4.40.11",
|
|
35
35
|
"babel-jest": "^27.0.6",
|
|
36
36
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
37
37
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@apollo/client": "^3.4.10",
|
|
85
|
-
"@truedat/core": "4.40.
|
|
86
|
-
"@truedat/df": "4.40.
|
|
85
|
+
"@truedat/core": "4.40.11",
|
|
86
|
+
"@truedat/df": "4.40.11",
|
|
87
87
|
"axios": "^0.19.2",
|
|
88
88
|
"graphql": "^15.5.3",
|
|
89
89
|
"path-to-regexp": "^1.7.0",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"react-dom": ">= 16.8.6 < 17",
|
|
104
104
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "cbfbd0cc3556ce0009a8d60e0d68dec36d2dce53"
|
|
107
107
|
}
|
|
@@ -155,13 +155,8 @@ ExecutionDetails.propTypes = {
|
|
|
155
155
|
ruleResultId: PropTypes.number,
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
const mapStateToProps = ({
|
|
158
|
+
const mapStateToProps = ({ ruleImplementation }) => ({
|
|
159
159
|
ruleImplementation,
|
|
160
|
-
templatesLoading,
|
|
161
|
-
templates,
|
|
162
|
-
}) => ({
|
|
163
|
-
templatesLoaded: !templatesLoading && !_.isEmpty(templates),
|
|
164
|
-
ruleImplementation: ruleImplementation,
|
|
165
160
|
});
|
|
166
161
|
|
|
167
162
|
export default connect(mapStateToProps)(ExecutionDetails);
|
|
@@ -11,6 +11,7 @@ export const NewRemediation = ({
|
|
|
11
11
|
manageRemediations,
|
|
12
12
|
onSaveRemediation,
|
|
13
13
|
templates,
|
|
14
|
+
latestResultId,
|
|
14
15
|
}) => {
|
|
15
16
|
const { formatMessage } = useIntl();
|
|
16
17
|
const [isEdit, setIsEdit] = useState(false);
|
|
@@ -37,7 +38,7 @@ export const NewRemediation = ({
|
|
|
37
38
|
</Header.Content>
|
|
38
39
|
</Header>
|
|
39
40
|
<Segment>
|
|
40
|
-
<RemediationForm onSave={onSave} />
|
|
41
|
+
<RemediationForm onSave={onSave} latestResultId={latestResultId} />
|
|
41
42
|
</Segment>
|
|
42
43
|
</>
|
|
43
44
|
)}
|
|
@@ -49,6 +50,7 @@ NewRemediation.propTypes = {
|
|
|
49
50
|
onSaveRemediation: PropTypes.func,
|
|
50
51
|
manageRemediations: PropTypes.bool,
|
|
51
52
|
templates: PropTypes.array,
|
|
53
|
+
latestResultId: PropTypes.number,
|
|
52
54
|
};
|
|
53
55
|
|
|
54
56
|
const mapStateToProps = ({ templates, remediationActions }) => ({
|
|
@@ -62,70 +62,77 @@ export const RemediationPlan = ({
|
|
|
62
62
|
return !ruleResultId ? null : remediationLoading ? (
|
|
63
63
|
<Loading />
|
|
64
64
|
) : _.isEmpty(remediation) && manageRemediations ? (
|
|
65
|
-
<NewRemediation
|
|
65
|
+
<NewRemediation
|
|
66
|
+
onSaveRemediation={onSave}
|
|
67
|
+
latestResultId={latestResultId}
|
|
68
|
+
/>
|
|
66
69
|
) : (
|
|
67
70
|
<>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
{!_.isEmpty(remediation) ? (
|
|
72
|
+
<>
|
|
73
|
+
<Header as="h2">
|
|
74
|
+
<Icon circular name="rain" />
|
|
75
|
+
<Header.Content>
|
|
76
|
+
<FormattedMessage
|
|
77
|
+
id={!isEdit ? "remediation" : "remediation.actions.edit"}
|
|
78
|
+
/>
|
|
79
|
+
</Header.Content>
|
|
80
|
+
</Header>
|
|
76
81
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
<Segment className={className}>
|
|
83
|
+
{manageRemediations ? (
|
|
84
|
+
<div className="ui actions remediation">
|
|
85
|
+
<ConfirmModal
|
|
86
|
+
icon="trash"
|
|
87
|
+
trigger={<Button secondary icon="trash" basic color="red" />}
|
|
88
|
+
header={
|
|
89
|
+
<FormattedMessage id="remediation.actions.delete.confirmation.header" />
|
|
90
|
+
}
|
|
91
|
+
content={
|
|
92
|
+
<FormattedMessage
|
|
93
|
+
id="remediation.actions.delete.confirmation.content"
|
|
94
|
+
values={{ ruleResultId: <b>{ruleResultId}</b> }}
|
|
95
|
+
/>
|
|
96
|
+
}
|
|
97
|
+
onConfirm={() =>
|
|
98
|
+
deleteRemediation({
|
|
99
|
+
implementation_id: implementationId,
|
|
100
|
+
rule_result_id: ruleResultId,
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
/>
|
|
104
|
+
<Button
|
|
105
|
+
className="button-edit-remediation"
|
|
106
|
+
primary
|
|
107
|
+
onClick={() => setIsEdit(!isEdit)}
|
|
108
|
+
content={formatMessage({
|
|
109
|
+
id: !isEdit ? "actions.edit" : "actions.cancel",
|
|
110
|
+
})}
|
|
90
111
|
/>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
deleteRemediation({
|
|
94
|
-
implementation_id: implementationId,
|
|
95
|
-
rule_result_id: ruleResultId,
|
|
96
|
-
})
|
|
97
|
-
}
|
|
98
|
-
/>
|
|
99
|
-
<Button
|
|
100
|
-
className="button-edit-remediation"
|
|
101
|
-
primary
|
|
102
|
-
onClick={() => setIsEdit(!isEdit)}
|
|
103
|
-
content={formatMessage({
|
|
104
|
-
id: !isEdit ? "actions.edit" : "actions.cancel",
|
|
105
|
-
})}
|
|
106
|
-
/>
|
|
107
|
-
</div>
|
|
108
|
-
) : null}
|
|
112
|
+
</div>
|
|
113
|
+
) : null}
|
|
109
114
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
<Grid>
|
|
116
|
+
<Grid.Column width={8}>
|
|
117
|
+
{!isEdit && remediation?.df_name ? (
|
|
118
|
+
<DynamicFormViewer
|
|
119
|
+
template={_.find(_.propEq("name", remediation.df_name))(
|
|
120
|
+
templates
|
|
121
|
+
)}
|
|
122
|
+
content={remediation.df_content}
|
|
123
|
+
/>
|
|
124
|
+
) : (
|
|
125
|
+
<RemediationForm
|
|
126
|
+
onSave={onSave}
|
|
127
|
+
remediation={remediation}
|
|
128
|
+
latestResultId={latestResultId}
|
|
129
|
+
/>
|
|
116
130
|
)}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
remediation={remediation}
|
|
123
|
-
latestResultId={latestResultId}
|
|
124
|
-
/>
|
|
125
|
-
)}
|
|
126
|
-
</Grid.Column>
|
|
127
|
-
</Grid>
|
|
128
|
-
</Segment>
|
|
131
|
+
</Grid.Column>
|
|
132
|
+
</Grid>
|
|
133
|
+
</Segment>
|
|
134
|
+
</>
|
|
135
|
+
) : null}
|
|
129
136
|
</>
|
|
130
137
|
);
|
|
131
138
|
};
|
|
@@ -125,45 +125,6 @@ exports[`<ExecutionDetails> matches the latest snapshot 1`] = `
|
|
|
125
125
|
</tr>
|
|
126
126
|
</tbody>
|
|
127
127
|
</table>
|
|
128
|
-
<h2
|
|
129
|
-
class="ui header"
|
|
130
|
-
style="display: none;"
|
|
131
|
-
>
|
|
132
|
-
<i
|
|
133
|
-
aria-hidden="true"
|
|
134
|
-
class="rain circular icon"
|
|
135
|
-
/>
|
|
136
|
-
<div
|
|
137
|
-
class="content"
|
|
138
|
-
>
|
|
139
|
-
Remediation plan
|
|
140
|
-
</div>
|
|
141
|
-
</h2>
|
|
142
|
-
<div
|
|
143
|
-
class="ui segment execution-details-remediation"
|
|
144
|
-
style="display: none;"
|
|
145
|
-
>
|
|
146
|
-
<div
|
|
147
|
-
class="ui grid"
|
|
148
|
-
>
|
|
149
|
-
<div
|
|
150
|
-
class="eight wide column"
|
|
151
|
-
>
|
|
152
|
-
<form
|
|
153
|
-
aria-label="remediation-form"
|
|
154
|
-
class="ui form"
|
|
155
|
-
>
|
|
156
|
-
<button
|
|
157
|
-
class="ui primary disabled button"
|
|
158
|
-
disabled=""
|
|
159
|
-
tabindex="-1"
|
|
160
|
-
>
|
|
161
|
-
create
|
|
162
|
-
</button>
|
|
163
|
-
</form>
|
|
164
|
-
</div>
|
|
165
|
-
</div>
|
|
166
|
-
</div>
|
|
167
128
|
</div>
|
|
168
129
|
`;
|
|
169
130
|
|
|
@@ -258,42 +219,5 @@ exports[`<ExecutionDetails> without details 1`] = `
|
|
|
258
219
|
</tr>
|
|
259
220
|
</tbody>
|
|
260
221
|
</table>
|
|
261
|
-
<h2
|
|
262
|
-
class="ui header"
|
|
263
|
-
>
|
|
264
|
-
<i
|
|
265
|
-
aria-hidden="true"
|
|
266
|
-
class="rain circular icon"
|
|
267
|
-
/>
|
|
268
|
-
<div
|
|
269
|
-
class="content"
|
|
270
|
-
>
|
|
271
|
-
Remediation plan
|
|
272
|
-
</div>
|
|
273
|
-
</h2>
|
|
274
|
-
<div
|
|
275
|
-
class="ui segment execution-details-remediation"
|
|
276
|
-
>
|
|
277
|
-
<div
|
|
278
|
-
class="ui grid"
|
|
279
|
-
>
|
|
280
|
-
<div
|
|
281
|
-
class="eight wide column"
|
|
282
|
-
>
|
|
283
|
-
<form
|
|
284
|
-
aria-label="remediation-form"
|
|
285
|
-
class="ui form"
|
|
286
|
-
>
|
|
287
|
-
<button
|
|
288
|
-
class="ui primary disabled button"
|
|
289
|
-
disabled=""
|
|
290
|
-
tabindex="-1"
|
|
291
|
-
>
|
|
292
|
-
create
|
|
293
|
-
</button>
|
|
294
|
-
</form>
|
|
295
|
-
</div>
|
|
296
|
-
</div>
|
|
297
|
-
</div>
|
|
298
222
|
</div>
|
|
299
223
|
`;
|