@truedat/qx 7.5.9 → 7.5.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/package.json +45 -64
- package/src/components/QxRoutes.js +38 -19
- package/src/components/__tests__/QxRoutes.spec.js +73 -0
- package/src/components/__tests__/__snapshots__/QxRoutes.spec.js.snap +60 -0
- package/src/components/common/ClauseViewer.js +6 -6
- package/src/components/common/DescriptionInput.js +0 -1
- package/src/components/common/ResourceSelector.js +2 -3
- package/src/components/common/TestFormWrapper.js +2 -13
- package/src/components/common/TypeSelector.js +0 -1
- package/src/components/common/__tests__/DescriptionInput.spec.js +12 -21
- package/src/components/common/__tests__/ResourceSelector.spec.js +42 -87
- package/src/components/common/__tests__/TypeSelector.spec.js +0 -1
- package/src/components/common/__tests__/__snapshots__/ResourceSelector.spec.js.snap +32 -22
- package/src/components/common/expressions/Clauses.js +5 -6
- package/src/components/common/expressions/Condition.js +8 -9
- package/src/components/common/expressions/ConstantSelector.js +2 -2
- package/src/components/common/expressions/Expression.js +2 -2
- package/src/components/common/expressions/FieldSelector.js +2 -2
- package/src/components/common/expressions/FunctionArgs.js +5 -6
- package/src/components/common/expressions/FunctionSelector.js +2 -2
- package/src/components/common/expressions/ParamSelector.js +2 -2
- package/src/components/common/expressions/ShapeSelector.js +7 -16
- package/src/components/common/expressions/__tests__/Clauses.spec.js +10 -9
- package/src/components/common/expressions/__tests__/Condition.spec.js +6 -26
- package/src/components/common/expressions/__tests__/ConstantSelector.spec.js +14 -30
- package/src/components/common/expressions/__tests__/Expression.spec.js +44 -51
- package/src/components/common/expressions/__tests__/FieldSelector.spec.js +2 -7
- package/src/components/common/expressions/__tests__/FunctionArgs.spec.js +18 -44
- package/src/components/common/expressions/__tests__/FunctionSelector.spec.js +19 -27
- package/src/components/common/expressions/__tests__/ParamSelector.spec.js +28 -58
- package/src/components/common/expressions/__tests__/ShapeSelector.spec.js +42 -43
- package/src/components/common/expressions/__tests__/__snapshots__/Condition.spec.js.snap +6 -6
- package/src/components/common/expressions/__tests__/__snapshots__/ConstantSelector.spec.js.snap +6 -7
- package/src/components/common/expressions/__tests__/__snapshots__/Expression.spec.js.snap +20 -20
- package/src/components/common/expressions/__tests__/__snapshots__/FunctionArgs.spec.js.snap +8 -9
- package/src/components/common/expressions/__tests__/__snapshots__/FunctionSelector.spec.js.snap +670 -8
- package/src/components/common/expressions/__tests__/__snapshots__/ParamSelector.spec.js.snap +5 -5
- package/src/components/common/expressions/__tests__/__snapshots__/ShapeSelector.spec.js.snap +9 -9
- package/src/components/common/expressions/__tests__/useWatchParams.spec.js +1 -4
- package/src/components/common/expressions/constantInputs/AnySelector.js +5 -6
- package/src/components/common/expressions/constantInputs/BooleanSelector.js +2 -2
- package/src/components/common/expressions/constantInputs/DefaultSelector.js +2 -2
- package/src/components/common/expressions/constantInputs/__tests__/AnySelector.spec.js +16 -37
- package/src/components/common/expressions/constantInputs/__tests__/BooleanSelector.spec.js +14 -17
- package/src/components/common/expressions/constantInputs/__tests__/DefaultSelector.spec.js +12 -27
- package/src/components/common/expressions/constantInputs/__tests__/__snapshots__/AnySelector.spec.js.snap +11 -11
- package/src/components/common/expressions/constantInputs/__tests__/__snapshots__/DefaultSelector.spec.js.snap +0 -1
- package/src/components/common/resourceSelectors/DataStructureSelector.js +2 -2
- package/src/components/common/resourceSelectors/DataViewSelector.js +2 -2
- package/src/components/common/resourceSelectors/ReferenceDatasetSelector.js +2 -2
- package/src/components/common/resourceSelectors/__tests__/DataStructureSelector.spec.js +5 -29
- package/src/components/common/resourceSelectors/__tests__/DataViewSelector.spec.js +23 -25
- package/src/components/common/resourceSelectors/__tests__/ReferenceDatasetSelector.spec.js +21 -32
- package/src/components/common/resourceSelectors/__tests__/__snapshots__/DataStructureSelector.spec.js.snap +3 -4
- package/src/components/common/resourceSelectors/__tests__/__snapshots__/DataViewSelector.spec.js.snap +1 -1
- package/src/components/common/resourceSelectors/__tests__/__snapshots__/ReferenceDatasetSelector.spec.js.snap +1 -1
- package/src/components/dataViews/DataViewEditor.js +5 -6
- package/src/components/dataViews/DataViewSelect.js +4 -5
- package/src/components/dataViews/DataViews.js +1 -2
- package/src/components/dataViews/Queryable.js +4 -4
- package/src/components/dataViews/Queryables.js +0 -1
- package/src/components/dataViews/__tests__/DataViewEditor.spec.js +36 -111
- package/src/components/dataViews/__tests__/DataViewSelect.spec.js +0 -1
- package/src/components/dataViews/__tests__/DataViews.spec.js +15 -16
- package/src/components/dataViews/__tests__/Queryable.spec.js +0 -1
- package/src/components/dataViews/__tests__/Queryables.spec.js +35 -74
- package/src/components/dataViews/__tests__/__snapshots__/DataViewEditor.spec.js.snap +61 -55
- package/src/components/dataViews/__tests__/__snapshots__/DataViews.spec.js.snap +5 -5
- package/src/components/dataViews/__tests__/__snapshots__/Queryables.spec.js.snap +59 -59
- package/src/components/dataViews/queryableProperties/From.js +4 -4
- package/src/components/dataViews/queryableProperties/GroupBy.js +6 -6
- package/src/components/dataViews/queryableProperties/Join.js +6 -6
- package/src/components/dataViews/queryableProperties/JoinTypeIcon.js +8 -9
- package/src/components/dataViews/queryableProperties/Select.js +4 -5
- package/src/components/dataViews/queryableProperties/SelectField.js +4 -4
- package/src/components/dataViews/queryableProperties/Where.js +4 -4
- package/src/components/dataViews/queryableProperties/__tests__/From.spec.js +0 -1
- package/src/components/dataViews/queryableProperties/__tests__/GroupBy.spec.js +16 -42
- package/src/components/dataViews/queryableProperties/__tests__/Join.spec.js +6 -29
- package/src/components/dataViews/queryableProperties/__tests__/JoinTypeIcon.spec.js +0 -1
- package/src/components/dataViews/queryableProperties/__tests__/Select.spec.js +26 -50
- package/src/components/dataViews/queryableProperties/__tests__/SelectField.spec.js +22 -42
- package/src/components/dataViews/queryableProperties/__tests__/Where.spec.js +6 -17
- package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/GroupBy.spec.js.snap +309 -9
- package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/Join.spec.js.snap +12 -12
- package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/Select.spec.js.snap +192 -18
- package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/SelectField.spec.js.snap +6 -8
- package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/Where.spec.js.snap +2 -2
- package/src/components/functions/FunctionEditor.js +3 -5
- package/src/components/functions/FunctionParams.js +2 -3
- package/src/components/functions/Functions.js +3 -4
- package/src/components/functions/__tests__/FunctionEditor.spec.js +61 -57
- package/src/components/functions/__tests__/FunctionParams.spec.js +50 -47
- package/src/components/functions/__tests__/Functions.spec.js +5 -12
- package/src/components/functions/__tests__/__snapshots__/FunctionParams.spec.js.snap +11 -11
- package/src/components/functions/__tests__/__snapshots__/Functions.spec.js.snap +4 -5
- package/src/components/qualityControls/ControlProperties.js +4 -4
- package/src/components/qualityControls/ControlPropertiesView.js +0 -1
- package/src/components/qualityControls/EditQualityControl.js +5 -5
- package/src/components/qualityControls/IconPopup.js +0 -1
- package/src/components/qualityControls/NewDraftQualityControl.js +8 -6
- package/src/components/qualityControls/NewQualityControl.js +5 -6
- package/src/components/qualityControls/QualityBadge.js +29 -30
- package/src/components/qualityControls/QualityControl.js +4 -7
- package/src/components/qualityControls/QualityControlActions.js +7 -7
- package/src/components/qualityControls/QualityControlCrumbs.js +1 -3
- package/src/components/qualityControls/QualityControlEditor.js +5 -11
- package/src/components/qualityControls/QualityControlHeader.js +4 -6
- package/src/components/qualityControls/QualityControlHistory.js +3 -3
- package/src/components/qualityControls/QualityControlManageDomain.js +2 -2
- package/src/components/qualityControls/QualityControlQueryModal.js +1 -1
- package/src/components/qualityControls/QualityControlRoutes.js +27 -54
- package/src/components/qualityControls/QualityControlRow.js +0 -2
- package/src/components/qualityControls/QualityControlScores.js +7 -5
- package/src/components/qualityControls/QualityControlTabs.js +2 -2
- package/src/components/qualityControls/QualityControls.js +10 -8
- package/src/components/qualityControls/QualityControlsLabelResults.js +0 -2
- package/src/components/qualityControls/QualityControlsPagination.js +0 -1
- package/src/components/qualityControls/QualityControlsTable.js +1 -2
- package/src/components/qualityControls/ScoreCriteria.js +4 -4
- package/src/components/qualityControls/ScoreCriteriaView.js +0 -1
- package/src/components/qualityControls/__tests__/ControlProperties.spec.js +10 -15
- package/src/components/qualityControls/__tests__/ControlPropertiesView.spec.js +0 -1
- package/src/components/qualityControls/__tests__/EditQualityControl.spec.js +28 -70
- package/src/components/qualityControls/__tests__/IconPopup.spec.js +10 -11
- package/src/components/qualityControls/__tests__/NewDraftQualityControl.spec.js +33 -70
- package/src/components/qualityControls/__tests__/NewQualityControl.spec.js +81 -113
- package/src/components/qualityControls/__tests__/QualityBadge.spec.js +50 -58
- package/src/components/qualityControls/__tests__/QualityControl.spec.js +19 -31
- package/src/components/qualityControls/__tests__/QualityControlActions.spec.js +49 -46
- package/src/components/qualityControls/__tests__/QualityControlCrumbs.spec.js +0 -1
- package/src/components/qualityControls/__tests__/QualityControlEditor.spec.js +68 -107
- package/src/components/qualityControls/__tests__/QualityControlHeader.spec.js +22 -25
- package/src/components/qualityControls/__tests__/QualityControlHistory.spec.js +6 -6
- package/src/components/qualityControls/__tests__/QualityControlManageDomain.spec.js +0 -1
- package/src/components/qualityControls/__tests__/QualityControlQueryModal.spec.js +12 -11
- package/src/components/qualityControls/__tests__/QualityControlRow.spec.js +4 -8
- package/src/components/qualityControls/__tests__/QualityControlScores.spec.js +23 -19
- package/src/components/qualityControls/__tests__/QualityControlTabs.spec.js +2 -3
- package/src/components/qualityControls/__tests__/QualityControls.spec.js +69 -53
- package/src/components/qualityControls/__tests__/QualityControlsLabelResults.spec.js +0 -1
- package/src/components/qualityControls/__tests__/QualityControlsPagination.spec.js +0 -1
- package/src/components/qualityControls/__tests__/QualityControlsTable.spec.js +2 -3
- package/src/components/qualityControls/__tests__/ScoreCriteria.spec.js +0 -1
- package/src/components/qualityControls/__tests__/ScoreCriteriaView.spec.js +0 -1
- package/src/components/qualityControls/__tests__/__fixtures__/qualityControlHelper.js +1 -1
- package/src/components/qualityControls/__tests__/__snapshots__/EditQualityControl.spec.js.snap +32 -34
- package/src/components/qualityControls/__tests__/__snapshots__/NewDraftQualityControl.spec.js.snap +31 -33
- package/src/components/qualityControls/__tests__/__snapshots__/NewQualityControl.spec.js.snap +17 -19
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControl.spec.js.snap +9 -15
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlActions.spec.js.snap +5 -4
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlCrumbs.spec.js.snap +1 -0
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlEditor.spec.js.snap +0 -3
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlHeader.spec.js.snap +16 -11
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlHistory.spec.js.snap +2 -0
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlRow.spec.js.snap +2 -1
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlScores.spec.js.snap +3 -0
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlTabs.spec.js.snap +3 -0
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControls.spec.js.snap +11 -21
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlsTable.spec.js.snap +2 -0
- package/src/components/qualityControls/controlProperties/Count.js +5 -5
- package/src/components/qualityControls/controlProperties/Ratio.js +6 -8
- package/src/components/qualityControls/controlProperties/__tests__/Count.spec.js +6 -11
- package/src/components/qualityControls/controlProperties/__tests__/Ratio.spec.js +9 -27
- package/src/components/qualityControls/controlProperties/__tests__/__snapshots__/Ratio.spec.js.snap +10 -10
- package/src/components/qualityControls/qualityByControlMode.js +14 -14
- package/src/components/qualityControls/qualityControlScoresColumns.js +1 -2
- package/src/components/qualityControls/scoreCriterias/Deviation.js +2 -2
- package/src/components/qualityControls/scoreCriterias/ErrorCount.js +3 -4
- package/src/components/qualityControls/scoreCriterias/Percentage.js +2 -2
- package/src/components/qualityControls/scoreCriterias/__tests__/Deviation.spec.js +0 -1
- package/src/components/qualityControls/scoreCriterias/__tests__/ErrorCount.spec.js +39 -43
- package/src/components/qualityControls/scoreCriterias/__tests__/Percentage.spec.js +23 -19
- package/src/components/qualityControls/scoreCriterias/__tests__/__snapshots__/ErrorCount.spec.js.snap +4 -7
- package/src/components/scores/MyScoreGroups.js +0 -1
- package/src/components/scores/QualityBar.js +24 -22
- package/src/components/scores/Score.js +4 -5
- package/src/components/scores/ScoreCrumbs.js +3 -5
- package/src/components/scores/ScoreDetails.js +2 -2
- package/src/components/scores/ScoreEvents.js +2 -2
- package/src/components/scores/ScoreGroup.js +5 -4
- package/src/components/scores/ScoreGroupBreadcrumbs.js +1 -2
- package/src/components/scores/ScoreGroupForm.js +2 -4
- package/src/components/scores/ScoreGroupLink.js +1 -2
- package/src/components/scores/ScoreGroupMessage.js +0 -1
- package/src/components/scores/ScoreGroupPopup.js +1 -1
- package/src/components/scores/ScoreGroupsRoutes.js +19 -0
- package/src/components/scores/ScoreGroupsTable.js +15 -48
- package/src/components/scores/ScoreRoutes.js +9 -24
- package/src/components/scores/ScoreStatusDecorator.js +1 -2
- package/src/components/scores/ScoreTabs.js +2 -2
- package/src/components/scores/__tests__/MyScoreGroups.spec.js +0 -1
- package/src/components/scores/__tests__/QualityBar.spec.js +19 -26
- package/src/components/scores/__tests__/Score.spec.js +2 -3
- package/src/components/scores/__tests__/ScoreCrumbs.spec.js +4 -5
- package/src/components/scores/__tests__/ScoreDetails.spec.js +4 -5
- package/src/components/scores/__tests__/ScoreEvents.spec.js +2 -3
- package/src/components/scores/__tests__/ScoreGroup.spec.js +15 -14
- package/src/components/scores/__tests__/ScoreGroupBreadcrumbs.spec.js +0 -1
- package/src/components/scores/__tests__/ScoreGroupForm.spec.js +18 -34
- package/src/components/scores/__tests__/ScoreGroupLink.spec.js +0 -1
- package/src/components/scores/__tests__/ScoreGroupMessage.spec.js +0 -1
- package/src/components/scores/__tests__/ScoreGroupPopup.spec.js +0 -2
- package/src/components/scores/__tests__/ScoreGroupsRoutes.spec.js +32 -0
- package/src/components/scores/__tests__/ScoreGroupsTable.spec.js +0 -1
- package/src/components/scores/__tests__/ScoreStatusDecorator.spec.js +0 -1
- package/src/components/scores/__tests__/ScoreTabs.spec.js +3 -4
- package/src/components/scores/__tests__/__snapshots__/MyScoreGroups.spec.js.snap +2 -0
- package/src/components/scores/__tests__/__snapshots__/Score.spec.js.snap +4 -0
- package/src/components/scores/__tests__/__snapshots__/ScoreCrumbs.spec.js.snap +2 -0
- package/src/components/scores/__tests__/__snapshots__/ScoreDetails.spec.js.snap +1 -0
- package/src/components/scores/__tests__/__snapshots__/ScoreGroup.spec.js.snap +39 -10
- package/src/components/scores/__tests__/__snapshots__/ScoreGroupBreadcrumbs.spec.js.snap +1 -0
- package/src/components/scores/__tests__/__snapshots__/ScoreGroupForm.spec.js.snap +10 -10
- package/src/components/scores/__tests__/__snapshots__/ScoreGroupLink.spec.js.snap +1 -0
- package/src/components/scores/__tests__/__snapshots__/ScoreGroupsRoutes.spec.js.snap +19 -0
- package/src/components/scores/__tests__/__snapshots__/ScoreGroupsTable.spec.js.snap +2 -0
- package/src/components/scores/__tests__/__snapshots__/ScoreStatusDecorator.spec.js.snap +5 -0
- package/src/components/scores/__tests__/__snapshots__/ScoreTabs.spec.js.snap +4 -0
- package/src/hooks/__tests__/useDataViews.spec.js +1 -1
- package/src/hooks/__tests__/useFunctions.spec.js +5 -5
- package/src/hooks/useDataViews.js +2 -2
- package/src/hooks/useExecutionGroups.js +1 -1
- package/src/hooks/useFunctions.js +4 -4
- package/src/hooks/useQualityControls.js +13 -7
- package/src/hooks/useScoreGroups.js +1 -1
- package/src/hooks/useScores.js +2 -2
- package/src/styles/scores.less +21 -21
- package/src/types.js +1 -4
|
@@ -4,13 +4,13 @@ exports[`<ScoreGroup /> matches the latest snapshot 1`] = `
|
|
|
4
4
|
<div>
|
|
5
5
|
<div
|
|
6
6
|
class="ui breadcrumb"
|
|
7
|
-
style="display: none;"
|
|
8
7
|
>
|
|
9
8
|
<a
|
|
10
9
|
class="section"
|
|
10
|
+
data-discover="true"
|
|
11
11
|
href="/myScoreGroups"
|
|
12
12
|
>
|
|
13
|
-
|
|
13
|
+
sidemenu.executions
|
|
14
14
|
</a>
|
|
15
15
|
<i
|
|
16
16
|
aria-hidden="true"
|
|
@@ -28,7 +28,6 @@ exports[`<ScoreGroup /> matches the latest snapshot 1`] = `
|
|
|
28
28
|
</div>
|
|
29
29
|
<div
|
|
30
30
|
class="ui message"
|
|
31
|
-
style="display: none;"
|
|
32
31
|
>
|
|
33
32
|
<div
|
|
34
33
|
class="content"
|
|
@@ -36,16 +35,45 @@ exports[`<ScoreGroup /> matches the latest snapshot 1`] = `
|
|
|
36
35
|
<div
|
|
37
36
|
class="header"
|
|
38
37
|
>
|
|
39
|
-
|
|
38
|
+
scores.pending.header
|
|
40
39
|
</div>
|
|
41
40
|
<p>
|
|
42
|
-
|
|
41
|
+
scores.pending.content
|
|
43
42
|
</p>
|
|
44
43
|
</div>
|
|
45
44
|
</div>
|
|
45
|
+
<div
|
|
46
|
+
class="ui horizontal divider"
|
|
47
|
+
>
|
|
48
|
+
<h3>
|
|
49
|
+
g1
|
|
50
|
+
</h3>
|
|
51
|
+
</div>
|
|
52
|
+
<div
|
|
53
|
+
class="ui big very relaxed list"
|
|
54
|
+
role="list"
|
|
55
|
+
>
|
|
56
|
+
<div
|
|
57
|
+
class="item"
|
|
58
|
+
role="listitem"
|
|
59
|
+
>
|
|
60
|
+
<div
|
|
61
|
+
class="header dynamic-field-header"
|
|
62
|
+
>
|
|
63
|
+
field1
|
|
64
|
+
</div>
|
|
65
|
+
<div
|
|
66
|
+
class="description"
|
|
67
|
+
>
|
|
68
|
+
<i
|
|
69
|
+
aria-hidden="true"
|
|
70
|
+
class="grey minus icon"
|
|
71
|
+
/>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
46
75
|
<table
|
|
47
76
|
class="ui table"
|
|
48
|
-
style="display: none;"
|
|
49
77
|
>
|
|
50
78
|
<thead
|
|
51
79
|
class=""
|
|
@@ -56,12 +84,12 @@ exports[`<ScoreGroup /> matches the latest snapshot 1`] = `
|
|
|
56
84
|
<th
|
|
57
85
|
class=""
|
|
58
86
|
>
|
|
59
|
-
|
|
87
|
+
score.props.status
|
|
60
88
|
</th>
|
|
61
89
|
<th
|
|
62
90
|
class=""
|
|
63
91
|
>
|
|
64
|
-
|
|
92
|
+
quality_control.props.name
|
|
65
93
|
</th>
|
|
66
94
|
</tr>
|
|
67
95
|
</thead>
|
|
@@ -75,19 +103,21 @@ exports[`<ScoreGroup /> matches the latest snapshot 1`] = `
|
|
|
75
103
|
class=""
|
|
76
104
|
>
|
|
77
105
|
<a
|
|
106
|
+
data-discover="true"
|
|
78
107
|
href="/scores/15"
|
|
79
108
|
>
|
|
80
109
|
<i
|
|
81
110
|
aria-hidden="true"
|
|
82
111
|
class="grey info circle large icon"
|
|
83
112
|
/>
|
|
84
|
-
|
|
113
|
+
score.status.PENDING
|
|
85
114
|
</a>
|
|
86
115
|
</td>
|
|
87
116
|
<td
|
|
88
117
|
class=""
|
|
89
118
|
>
|
|
90
119
|
<a
|
|
120
|
+
data-discover="true"
|
|
91
121
|
href="/qualityControls/8/version/1"
|
|
92
122
|
>
|
|
93
123
|
test
|
|
@@ -96,7 +126,6 @@ exports[`<ScoreGroup /> matches the latest snapshot 1`] = `
|
|
|
96
126
|
</tr>
|
|
97
127
|
</tbody>
|
|
98
128
|
</table>
|
|
99
|
-
lazy
|
|
100
129
|
</div>
|
|
101
130
|
`;
|
|
102
131
|
|
|
@@ -6,7 +6,7 @@ exports[`<ScoreGroupForm /> matches the latest snapshot 1`] = `
|
|
|
6
6
|
class="ui header"
|
|
7
7
|
style=""
|
|
8
8
|
>
|
|
9
|
-
|
|
9
|
+
quality_controls.actions.execution.confirmation.header
|
|
10
10
|
</h2>
|
|
11
11
|
<form
|
|
12
12
|
class="ui form"
|
|
@@ -15,7 +15,7 @@ exports[`<ScoreGroupForm /> matches the latest snapshot 1`] = `
|
|
|
15
15
|
<h3
|
|
16
16
|
class="ui header"
|
|
17
17
|
>
|
|
18
|
-
|
|
18
|
+
quality_controls.actions.execution.confirmation.legend
|
|
19
19
|
</h3>
|
|
20
20
|
<div
|
|
21
21
|
style="max-height: calc(100vh - 20rem); overflow-y: auto;"
|
|
@@ -53,7 +53,7 @@ exports[`<ScoreGroupForm /> matches the latest snapshot 1`] = `
|
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
|
55
55
|
<p>
|
|
56
|
-
|
|
56
|
+
quality_controls.actions.execution.confirmation.content
|
|
57
57
|
</p>
|
|
58
58
|
<div
|
|
59
59
|
class="actions"
|
|
@@ -61,12 +61,12 @@ exports[`<ScoreGroupForm /> matches the latest snapshot 1`] = `
|
|
|
61
61
|
<button
|
|
62
62
|
class="ui secondary button"
|
|
63
63
|
>
|
|
64
|
-
|
|
64
|
+
actions.cancel
|
|
65
65
|
</button>
|
|
66
66
|
<button
|
|
67
67
|
class="ui primary button"
|
|
68
68
|
>
|
|
69
|
-
|
|
69
|
+
actions.create
|
|
70
70
|
</button>
|
|
71
71
|
</div>
|
|
72
72
|
</form>
|
|
@@ -78,7 +78,7 @@ exports[`<ScoreGroupForm /> matches the latest snapshot for count 1 1`] = `
|
|
|
78
78
|
<h2
|
|
79
79
|
class="ui header"
|
|
80
80
|
>
|
|
81
|
-
|
|
81
|
+
quality_controls.actions.execution.confirmation.header
|
|
82
82
|
</h2>
|
|
83
83
|
<form
|
|
84
84
|
class="ui form"
|
|
@@ -86,7 +86,7 @@ exports[`<ScoreGroupForm /> matches the latest snapshot for count 1 1`] = `
|
|
|
86
86
|
<h3
|
|
87
87
|
class="ui header"
|
|
88
88
|
>
|
|
89
|
-
|
|
89
|
+
quality_controls.actions.execution.confirmation.legend
|
|
90
90
|
</h3>
|
|
91
91
|
<div
|
|
92
92
|
style="max-height: calc(100vh - 20rem); overflow-y: auto;"
|
|
@@ -124,7 +124,7 @@ exports[`<ScoreGroupForm /> matches the latest snapshot for count 1 1`] = `
|
|
|
124
124
|
</div>
|
|
125
125
|
</div>
|
|
126
126
|
<p>
|
|
127
|
-
|
|
127
|
+
quality_control.actions.execution.confirmation.content
|
|
128
128
|
</p>
|
|
129
129
|
<div
|
|
130
130
|
class="actions"
|
|
@@ -132,12 +132,12 @@ exports[`<ScoreGroupForm /> matches the latest snapshot for count 1 1`] = `
|
|
|
132
132
|
<button
|
|
133
133
|
class="ui secondary button"
|
|
134
134
|
>
|
|
135
|
-
|
|
135
|
+
actions.cancel
|
|
136
136
|
</button>
|
|
137
137
|
<button
|
|
138
138
|
class="ui primary button"
|
|
139
139
|
>
|
|
140
|
-
|
|
140
|
+
actions.create
|
|
141
141
|
</button>
|
|
142
142
|
</div>
|
|
143
143
|
</form>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`<ScoreGroupsRoutes /> renders correctly with default route 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
<div>
|
|
6
|
+
MyScoreGroups
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
exports[`<ScoreGroupsRoutes /> renders correctly with my score groups route 1`] = `
|
|
12
|
+
<div>
|
|
13
|
+
<div>
|
|
14
|
+
ScoreGroup
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
exports[`<ScoreGroupsRoutes /> renders correctly with score group detail route 1`] = `<div />`;
|
|
@@ -58,6 +58,7 @@ exports[`<ScoreGroupsTable /> matches the latest snapshot 1`] = `
|
|
|
58
58
|
class=""
|
|
59
59
|
>
|
|
60
60
|
<a
|
|
61
|
+
data-discover="true"
|
|
61
62
|
href="/scoreGroups/36"
|
|
62
63
|
>
|
|
63
64
|
<time
|
|
@@ -105,6 +106,7 @@ exports[`<ScoreGroupsTable /> matches the latest snapshot 1`] = `
|
|
|
105
106
|
class=""
|
|
106
107
|
>
|
|
107
108
|
<a
|
|
109
|
+
data-discover="true"
|
|
108
110
|
href="/scoreGroups/36"
|
|
109
111
|
>
|
|
110
112
|
<time
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
exports[`<ScoreStatusDecorator /> matches the latest snapshot for status FAILED 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<a
|
|
6
|
+
data-discover="true"
|
|
6
7
|
href="/scores/8"
|
|
7
8
|
>
|
|
8
9
|
<i
|
|
@@ -17,6 +18,7 @@ exports[`<ScoreStatusDecorator /> matches the latest snapshot for status FAILED
|
|
|
17
18
|
exports[`<ScoreStatusDecorator /> matches the latest snapshot for status PENDING 1`] = `
|
|
18
19
|
<div>
|
|
19
20
|
<a
|
|
21
|
+
data-discover="true"
|
|
20
22
|
href="/scores/8"
|
|
21
23
|
>
|
|
22
24
|
<i
|
|
@@ -31,6 +33,7 @@ exports[`<ScoreStatusDecorator /> matches the latest snapshot for status PENDING
|
|
|
31
33
|
exports[`<ScoreStatusDecorator /> matches the latest snapshot for status QUEUED 1`] = `
|
|
32
34
|
<div>
|
|
33
35
|
<a
|
|
36
|
+
data-discover="true"
|
|
34
37
|
href="/scores/8"
|
|
35
38
|
>
|
|
36
39
|
<i
|
|
@@ -45,6 +48,7 @@ exports[`<ScoreStatusDecorator /> matches the latest snapshot for status QUEUED
|
|
|
45
48
|
exports[`<ScoreStatusDecorator /> matches the latest snapshot for status STARTED 1`] = `
|
|
46
49
|
<div>
|
|
47
50
|
<a
|
|
51
|
+
data-discover="true"
|
|
48
52
|
href="/scores/8"
|
|
49
53
|
>
|
|
50
54
|
<i
|
|
@@ -59,6 +63,7 @@ exports[`<ScoreStatusDecorator /> matches the latest snapshot for status STARTED
|
|
|
59
63
|
exports[`<ScoreStatusDecorator /> matches the latest snapshot for status SUCCEEDED 1`] = `
|
|
60
64
|
<div>
|
|
61
65
|
<a
|
|
66
|
+
data-discover="true"
|
|
62
67
|
href="/scores/8"
|
|
63
68
|
>
|
|
64
69
|
<i
|
|
@@ -7,12 +7,14 @@ exports[`<ScoreTabs /> matches the latest snapshot for details 1`] = `
|
|
|
7
7
|
>
|
|
8
8
|
<a
|
|
9
9
|
class="active item"
|
|
10
|
+
data-discover="true"
|
|
10
11
|
href="/scores/15"
|
|
11
12
|
>
|
|
12
13
|
Details
|
|
13
14
|
</a>
|
|
14
15
|
<a
|
|
15
16
|
class="item"
|
|
17
|
+
data-discover="true"
|
|
16
18
|
href="/scores/15/events"
|
|
17
19
|
>
|
|
18
20
|
Events
|
|
@@ -28,12 +30,14 @@ exports[`<ScoreTabs /> matches the latest snapshot for events 1`] = `
|
|
|
28
30
|
>
|
|
29
31
|
<a
|
|
30
32
|
class="item"
|
|
33
|
+
data-discover="true"
|
|
31
34
|
href="/scores/15"
|
|
32
35
|
>
|
|
33
36
|
Details
|
|
34
37
|
</a>
|
|
35
38
|
<a
|
|
36
39
|
class="active item"
|
|
40
|
+
data-discover="true"
|
|
37
41
|
href="/scores/15/events"
|
|
38
42
|
>
|
|
39
43
|
Events
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import useSWR from "swr";
|
|
2
|
-
import { renderHook } from "@testing-library/react
|
|
2
|
+
import { renderHook } from "@testing-library/react";
|
|
3
3
|
import { apiJson } from "@truedat/core/services/api";
|
|
4
4
|
import { API_DATA_VIEWS } from "../../api";
|
|
5
5
|
import { useDataViews } from "../useDataViews";
|
|
@@ -2,7 +2,7 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import { compile } from "path-to-regexp";
|
|
3
3
|
import useSWR from "swr";
|
|
4
4
|
import useSWRMutations from "swr/mutation";
|
|
5
|
-
import { renderHook } from "@testing-library/react
|
|
5
|
+
import { renderHook } from "@testing-library/react";
|
|
6
6
|
import {
|
|
7
7
|
apiJson,
|
|
8
8
|
apiJsonPost,
|
|
@@ -63,7 +63,7 @@ describe("useFunctions", () => {
|
|
|
63
63
|
expect(apiJsonPost).toHaveBeenCalledWith(url, arg);
|
|
64
64
|
});
|
|
65
65
|
it("useFunctionUpdate calls useSWRMutations with correct api route", () => {
|
|
66
|
-
const id = 8;
|
|
66
|
+
const id = "8";
|
|
67
67
|
renderHook(() => useFunctionUpdate({ id }));
|
|
68
68
|
const [url, func] = _.last(useSWRMutations.mock.calls);
|
|
69
69
|
const arg = { some: "arg" };
|
|
@@ -76,12 +76,12 @@ describe("useFunctions", () => {
|
|
|
76
76
|
renderHook(() => useFunctionUpdate());
|
|
77
77
|
const [url, func] = _.last(useSWRMutations.mock.calls);
|
|
78
78
|
const arg = { some: "arg" };
|
|
79
|
-
expect(url).toBe(compile(API_FUNCTION)({ id: 0 }));
|
|
79
|
+
expect(url).toBe(compile(API_FUNCTION)({ id: "0" }));
|
|
80
80
|
func(url, { arg });
|
|
81
81
|
expect(apiJsonPatch).toHaveBeenCalledWith(url, arg);
|
|
82
82
|
});
|
|
83
83
|
it("useFunctionDelete calls useSWRMutations with correct api route", () => {
|
|
84
|
-
const id = 8;
|
|
84
|
+
const id = "8";
|
|
85
85
|
renderHook(() => useFunctionDelete({ id }));
|
|
86
86
|
const [url, func] = _.last(useSWRMutations.mock.calls);
|
|
87
87
|
const arg = { some: "arg" };
|
|
@@ -94,7 +94,7 @@ describe("useFunctions", () => {
|
|
|
94
94
|
renderHook(() => useFunctionDelete());
|
|
95
95
|
const [url, func] = _.last(useSWRMutations.mock.calls);
|
|
96
96
|
const arg = { some: "arg" };
|
|
97
|
-
expect(url).toBe(compile(API_FUNCTION)({ id: 0 }));
|
|
97
|
+
expect(url).toBe(compile(API_FUNCTION)({ id: "0" }));
|
|
98
98
|
func(url, { arg });
|
|
99
99
|
expect(apiJsonDelete).toHaveBeenCalledWith(url, arg);
|
|
100
100
|
});
|
|
@@ -22,12 +22,12 @@ export const useDataViewCreate = () => {
|
|
|
22
22
|
|
|
23
23
|
export const useDataViewUpdate = (dataView) => {
|
|
24
24
|
const id = dataView?.id || 0;
|
|
25
|
-
const url = compile(API_DATA_VIEW)({ id });
|
|
25
|
+
const url = compile(API_DATA_VIEW)({ id: `${id}` });
|
|
26
26
|
return useSWRMutations(url, (url, { arg }) => apiJsonPatch(url, arg));
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export const useDataViewDelete = (dataView) => {
|
|
30
30
|
const id = dataView?.id || 0;
|
|
31
|
-
const url = compile(API_DATA_VIEW)({ id });
|
|
31
|
+
const url = compile(API_DATA_VIEW)({ id: `${id}` });
|
|
32
32
|
return useSWRMutations(url, (url, { arg }) => apiJsonDelete(url, arg));
|
|
33
33
|
};
|
|
@@ -22,7 +22,7 @@ export const useExecutionGroupsIndex = () => {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export const useExecutionGroupsShow = (id) => {
|
|
25
|
-
const url = compile(API_QUALITY_CONTROL_EXECUTION_GROUP)({ id });
|
|
25
|
+
const url = compile(API_QUALITY_CONTROL_EXECUTION_GROUP)({ id: `${id}` });
|
|
26
26
|
const { data, error, mutate } = useSWR(url, apiJson);
|
|
27
27
|
return { data: data?.data, error, loading: !error && !data, mutate };
|
|
28
28
|
};
|
|
@@ -21,13 +21,13 @@ export const useFunctionCreate = () => {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export const useFunctionUpdate = (func) => {
|
|
24
|
-
const id = func?.id || 0;
|
|
25
|
-
const url = compile(API_FUNCTION)({ id });
|
|
24
|
+
const id = func?.id || "0";
|
|
25
|
+
const url = compile(API_FUNCTION)({ id: `${id}` });
|
|
26
26
|
return useSWRMutations(url, (url, { arg }) => apiJsonPatch(url, arg));
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export const useFunctionDelete = (func) => {
|
|
30
|
-
const id = func?.id || 0;
|
|
31
|
-
const url = compile(API_FUNCTION)({ id });
|
|
30
|
+
const id = func?.id || "0";
|
|
31
|
+
const url = compile(API_FUNCTION)({ id: `${id}` });
|
|
32
32
|
return useSWRMutations(url, (url, { arg }) => apiJsonDelete(url, arg));
|
|
33
33
|
};
|
|
@@ -19,7 +19,10 @@ import {
|
|
|
19
19
|
} from "../api";
|
|
20
20
|
|
|
21
21
|
export const useQualityControl = (id, version) => {
|
|
22
|
-
const url = compile(API_QUALITY_CONTROL_VERSION)({
|
|
22
|
+
const url = compile(API_QUALITY_CONTROL_VERSION)({
|
|
23
|
+
id: `${id}`,
|
|
24
|
+
version: `${version}`,
|
|
25
|
+
});
|
|
23
26
|
const { data, error, mutate } = useSWR(url, apiJson);
|
|
24
27
|
return { data: data?.data, error, loading: !error && !data, mutate };
|
|
25
28
|
};
|
|
@@ -31,29 +34,32 @@ export const useQualityControlCreate = () => {
|
|
|
31
34
|
};
|
|
32
35
|
|
|
33
36
|
export const useQualityControlCreateDraft = (id) => {
|
|
34
|
-
const url = compile(API_QUALITY_CONTROL_DRAFT)({ id });
|
|
37
|
+
const url = compile(API_QUALITY_CONTROL_DRAFT)({ id: `${id}` });
|
|
35
38
|
return useSWRMutations(url, (url, { arg }) => apiJsonPost(url, arg));
|
|
36
39
|
};
|
|
37
40
|
|
|
38
41
|
export const useQualityControlUpdateDraft = (id) => {
|
|
39
|
-
const url = compile(API_QUALITY_CONTROL_DRAFT)({ id });
|
|
42
|
+
const url = compile(API_QUALITY_CONTROL_DRAFT)({ id: `${id}` });
|
|
40
43
|
return useSWRMutations(url, (url, { arg }) => apiJsonPatch(url, arg));
|
|
41
44
|
};
|
|
42
45
|
|
|
43
46
|
export const useQualityControlUpdateStatus = (id) => {
|
|
44
|
-
const url = compile(API_QUALITY_CONTROL_STATUS)({ id });
|
|
47
|
+
const url = compile(API_QUALITY_CONTROL_STATUS)({ id: `${id}` });
|
|
45
48
|
return useSWRMutations(url, (url, { arg }) => apiJsonPatch(url, arg));
|
|
46
49
|
};
|
|
47
50
|
|
|
48
51
|
export const useQualityControlUpdateMain = (id) => {
|
|
49
|
-
const url = compile(API_QUALITY_CONTROL_MAIN)({ id });
|
|
52
|
+
const url = compile(API_QUALITY_CONTROL_MAIN)({ id: `${id}` });
|
|
50
53
|
return useSWRMutations(url, (url, { arg }) => apiJsonPatch(url, arg));
|
|
51
54
|
};
|
|
52
55
|
|
|
53
56
|
export const useQualityControlDelete = (qualityControl) => {
|
|
54
57
|
const id = qualityControl?.id || 0;
|
|
55
58
|
const version = qualityControl?.version || 0;
|
|
56
|
-
const url = compile(API_QUALITY_CONTROL_VERSION)({
|
|
59
|
+
const url = compile(API_QUALITY_CONTROL_VERSION)({
|
|
60
|
+
id: `${id}`,
|
|
61
|
+
version: `${version}`,
|
|
62
|
+
});
|
|
57
63
|
return useSWRMutations(url, (url, { arg }) => apiJsonDelete(url, arg), {
|
|
58
64
|
revalidate: false,
|
|
59
65
|
});
|
|
@@ -71,7 +77,7 @@ export const useQualityControlsFilters = () => {
|
|
|
71
77
|
);
|
|
72
78
|
};
|
|
73
79
|
export const useQualityControlQueries = (id) => {
|
|
74
|
-
const url = compile(API_QUALITY_CONTROL_QUERIES)({ id });
|
|
80
|
+
const url = compile(API_QUALITY_CONTROL_QUERIES)({ id: `${id}` });
|
|
75
81
|
const { data, error, mutate } = useSWR(url, apiJson);
|
|
76
82
|
return { data: data?.data, error, loading: !error && !data, mutate };
|
|
77
83
|
};
|
|
@@ -16,7 +16,7 @@ export const useScoreGroupCreate = () => {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export const useScoreGroupShow = (id) => {
|
|
19
|
-
const url = compile(API_SCORE_GROUP)({ id });
|
|
19
|
+
const url = compile(API_SCORE_GROUP)({ id: `${id}` });
|
|
20
20
|
const { data, error, mutate } = useSWR(url, apiJson);
|
|
21
21
|
return { data: data?.data, error, loading: !error && !data, mutate };
|
|
22
22
|
};
|
package/src/hooks/useScores.js
CHANGED
|
@@ -5,13 +5,13 @@ import { apiJson, apiJsonDelete } from "@truedat/core/services/api";
|
|
|
5
5
|
import { API_SCORE, API_QUALITY_CONTROL_SCORES } from "../api";
|
|
6
6
|
|
|
7
7
|
export const useQualityControlScores = (id) => {
|
|
8
|
-
const url = compile(API_QUALITY_CONTROL_SCORES)({ id });
|
|
8
|
+
const url = compile(API_QUALITY_CONTROL_SCORES)({ id: `${id}` });
|
|
9
9
|
const { data, error, mutate } = useSWR(url, apiJson);
|
|
10
10
|
return { data: data?.data, error, loading: !error && !data, mutate };
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const useScoreShow = (id) => {
|
|
14
|
-
const url = compile(API_SCORE)({ id });
|
|
14
|
+
const url = compile(API_SCORE)({ id: `${id}` });
|
|
15
15
|
const { data, error, mutate } = useSWR(url, apiJson);
|
|
16
16
|
return { data: data?.data?.data, error, loading: !error && !data, mutate };
|
|
17
17
|
};
|
package/src/styles/scores.less
CHANGED
|
@@ -40,24 +40,24 @@
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.quality-bar {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
43
|
+
// .quality-bar {
|
|
44
|
+
// @import "~semantic-ui-less/definitions/globals/site";
|
|
45
|
+
// .over-goal-color {
|
|
46
|
+
// background-color: @overGoalRuleColor;
|
|
47
|
+
// }
|
|
48
|
+
// .under-goal-color {
|
|
49
|
+
// background-color: @underGoalRuleColor;
|
|
50
|
+
// }
|
|
51
|
+
// .under-minimum-color {
|
|
52
|
+
// background-color: @underMinimumRuleColor;
|
|
53
|
+
// }
|
|
54
|
+
// .not-executed-color {
|
|
55
|
+
// background-color: @notExecutedRuleColor;
|
|
56
|
+
// }
|
|
57
|
+
// .failed-color {
|
|
58
|
+
// background-color: @failedRuleColor;
|
|
59
|
+
// }
|
|
60
|
+
// .empty-dataset-color {
|
|
61
|
+
// background-color: @emptyDataColor;
|
|
62
|
+
// }
|
|
63
|
+
// }
|
package/src/types.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import { Label } from "semantic-ui-react";
|
|
4
3
|
|
|
5
4
|
export const types = [
|
|
@@ -40,7 +39,5 @@ export const typeToColor = (value) => {
|
|
|
40
39
|
};
|
|
41
40
|
|
|
42
41
|
export const typeLabel = (value) => (
|
|
43
|
-
<Label size="tiny" circular color={typeToColor(value)} width="100px">
|
|
44
|
-
{value[0]}
|
|
45
|
-
</Label>
|
|
42
|
+
<Label size="tiny" circular color={typeToColor(value)} width="100px">{value[0]}</Label>
|
|
46
43
|
);
|