@truedat/dq 4.33.8 → 4.34.2

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/package.json +5 -5
  3. package/src/api.js +5 -1
  4. package/src/components/ConditionSummary.js +23 -21
  5. package/src/components/ExecutionDetails.js +11 -14
  6. package/src/components/ExecutionForm.js +116 -0
  7. package/src/components/ExecutionGroup.js +24 -15
  8. package/src/components/ExecutionPopup.js +58 -0
  9. package/src/components/ImplementationResultBar.js +80 -0
  10. package/src/components/ImplementationSummary.js +33 -72
  11. package/src/components/ImplementationsRoutes.js +15 -5
  12. package/src/components/ImplementationsUploadButton.js +63 -0
  13. package/src/components/InformationSummary.js +68 -0
  14. package/src/components/NewRuleImplementation.js +12 -0
  15. package/src/components/RuleForm.js +0 -178
  16. package/src/components/RuleImplementation.js +10 -6
  17. package/src/components/RuleImplementationProperties.js +31 -64
  18. package/src/components/RuleImplementationResults.js +87 -53
  19. package/src/components/RuleImplementationsActions.js +18 -48
  20. package/src/components/RuleProperties.js +1 -10
  21. package/src/components/RuleResultDecorator.js +43 -26
  22. package/src/components/RuleResultRow.js +4 -1
  23. package/src/components/RuleRoutes.js +0 -13
  24. package/src/components/RuleSummary.js +15 -2
  25. package/src/components/RulesActions.js +17 -10
  26. package/src/components/RulesUploadButton.js +58 -0
  27. package/src/components/__tests__/ExecutionForm.spec.js +25 -0
  28. package/src/components/__tests__/ExecutionGroup.spec.js +11 -7
  29. package/src/components/__tests__/ExecutionPopup.spec.js +20 -0
  30. package/src/components/__tests__/ImplementationResultBar.spec.js +98 -0
  31. package/src/components/__tests__/ImplementationSummary.spec.js +9 -26
  32. package/src/components/__tests__/InformationSummary.spec.js +35 -0
  33. package/src/components/__tests__/NewRuleImplementation.spec.js +1 -1
  34. package/src/components/__tests__/RuleForm.spec.js +0 -191
  35. package/src/components/__tests__/RuleImplementation.spec.js +1 -0
  36. package/src/components/__tests__/RuleImplementationProperties.spec.js +23 -33
  37. package/src/components/__tests__/RuleImplementationsActions.spec.js +10 -32
  38. package/src/components/__tests__/RuleProperties.spec.js +7 -9
  39. package/src/components/__tests__/RuleResultDecorator.spec.js +17 -11
  40. package/src/components/__tests__/RuleResultRow.spec.js +25 -46
  41. package/src/components/__tests__/RuleRow.spec.js +0 -4
  42. package/src/components/__tests__/RuleSummary.spec.js +6 -6
  43. package/src/components/__tests__/Rules.spec.js +15 -39
  44. package/src/components/__tests__/__snapshots__/ConditionSummary.spec.js.snap +55 -51
  45. package/src/components/__tests__/__snapshots__/ExecutionForm.spec.js.snap +33 -0
  46. package/src/components/__tests__/__snapshots__/ExecutionGroup.spec.js.snap +5 -4
  47. package/src/components/__tests__/__snapshots__/ExecutionPopup.spec.js.snap +11 -0
  48. package/src/components/__tests__/__snapshots__/ImplementationResultBar.spec.js.snap +141 -0
  49. package/src/components/__tests__/__snapshots__/ImplementationSummary.spec.js.snap +194 -457
  50. package/src/components/__tests__/__snapshots__/InformationSummary.spec.js.snap +185 -0
  51. package/src/components/__tests__/__snapshots__/NewRuleImplementation.spec.js.snap +6 -0
  52. package/src/components/__tests__/__snapshots__/RuleForm.spec.js.snap +0 -148
  53. package/src/components/__tests__/__snapshots__/RuleImplementation.spec.js.snap +20 -0
  54. package/src/components/__tests__/__snapshots__/RuleImplementationProperties.spec.js.snap +43 -49
  55. package/src/components/__tests__/__snapshots__/RuleImplementationResults.spec.js.snap +63 -61
  56. package/src/components/__tests__/__snapshots__/RuleImplementationsActions.spec.js.snap +5 -49
  57. package/src/components/__tests__/__snapshots__/RuleProperties.spec.js.snap +0 -1
  58. package/src/components/__tests__/__snapshots__/RuleRow.spec.js.snap +0 -28
  59. package/src/components/__tests__/__snapshots__/Rules.spec.js.snap +0 -101
  60. package/src/components/ruleImplementationForm/InformationForm.js +5 -5
  61. package/src/components/ruleImplementationForm/LimitsForm.js +142 -0
  62. package/src/components/ruleImplementationForm/RuleImplementationForm.js +14 -4
  63. package/src/components/ruleImplementationForm/RuleImplementationRawForm.js +16 -6
  64. package/src/components/ruleImplementationForm/__tests__/LimitsForm.spec.js +186 -0
  65. package/src/components/ruleImplementationForm/__tests__/RuleImplementationRawForm.spec.js +42 -35
  66. package/src/components/ruleImplementationForm/__tests__/__snapshots__/LimitsForm.spec.js.snap +1104 -0
  67. package/src/components/ruleImplementationForm/__tests__/__snapshots__/RuleImplementationForm.spec.js.snap +4 -1
  68. package/src/components/ruleImplementationForm/__tests__/__snapshots__/RuleImplementationRawForm.spec.js.snap +12 -1
  69. package/src/components/ruleImplementationForm/limitsValidation.js +72 -0
  70. package/src/messages/en.js +145 -71
  71. package/src/messages/es.js +270 -180
  72. package/src/reducers/__tests__/rule.spec.js +2 -4
  73. package/src/reducers/__tests__/ruleImplementation.spec.js +2 -0
  74. package/src/reducers/__tests__/ruleImplementations.spec.js +12 -8
  75. package/src/reducers/dqMessage.js +100 -1
  76. package/src/reducers/index.js +4 -0
  77. package/src/reducers/rule.js +0 -3
  78. package/src/reducers/ruleImplementation.js +3 -0
  79. package/src/reducers/ruleImplementationRedirect.js +6 -1
  80. package/src/reducers/ruleImplementations.js +3 -0
  81. package/src/reducers/ruleRedirect.js +5 -0
  82. package/src/reducers/uploadImplementationsFile.js +28 -0
  83. package/src/reducers/uploadRulesFile.js +25 -0
  84. package/src/routines.js +2 -0
  85. package/src/sagas/index.js +6 -0
  86. package/src/sagas/uploadImplementations.js +28 -0
  87. package/src/sagas/uploadRules.js +28 -0
  88. package/src/selectors/getRuleImplementationColumns.js +38 -3
  89. package/src/selectors/ruleColumnsSelector.js +0 -31
  90. package/src/styles/ruleSummary.less +17 -10
@@ -15,71 +15,75 @@ exports[`<ConditionSummary /> matches the latest snapshot 1`] = `
15
15
  filters
16
16
  </div>
17
17
  </h3>
18
- <table
19
- class="ui very basic table"
18
+ <div
19
+ class="ui segment"
20
20
  >
21
- <thead
22
- class=""
21
+ <table
22
+ class="ui very basic table"
23
23
  >
24
- <tr
24
+ <thead
25
25
  class=""
26
26
  >
27
- <th
27
+ <tr
28
28
  class=""
29
29
  >
30
- field
31
- </th>
32
- <th
33
- class=""
34
- >
35
- operator
36
- </th>
37
- <th
38
- class=""
39
- >
40
- values
41
- </th>
42
- </tr>
43
- </thead>
44
- <tbody
45
- class=""
46
- >
47
- <tr
30
+ <th
31
+ class=""
32
+ >
33
+ field
34
+ </th>
35
+ <th
36
+ class=""
37
+ >
38
+ operator
39
+ </th>
40
+ <th
41
+ class=""
42
+ >
43
+ values
44
+ </th>
45
+ </tr>
46
+ </thead>
47
+ <tbody
48
48
  class=""
49
49
  >
50
- <td
51
- class="five wide"
50
+ <tr
51
+ class=""
52
52
  >
53
- <a
54
- href="/structures/2598"
53
+ <td
54
+ class="five wide"
55
+ >
56
+ <a
57
+ href="/structures/2598"
58
+ >
59
+ <span
60
+ class="highlighted"
61
+ >
62
+ "Mes"
63
+ </span>
64
+ </a>
65
+ </td>
66
+ <td
67
+ class="five wide"
55
68
  >
56
69
  <span
57
70
  class="highlighted"
58
71
  >
59
- "Mes"
72
+ "in_list"
60
73
  </span>
61
- </a>
62
- </td>
63
- <td
64
- class="five wide"
65
- >
66
- <span
67
- class="highlighted"
68
- >
69
- "in_list"
70
- </span>
71
- </td>
72
- <td
73
- class="five wide"
74
- >
75
- <span
76
- class="highlighted"
74
+ </td>
75
+ <td
76
+ class="five wide"
77
77
  >
78
- "4, 5, 6"
79
- </span>
80
- </td>
81
- </tr>
82
- </tbody>
83
- </table>
78
+ <span
79
+ class="highlighted"
80
+ >
81
+ "4, 5, 6"
82
+ </span>
83
+ </td>
84
+ </tr>
85
+ </tbody>
86
+ </table>
87
+ </div>
84
88
  </div>
85
89
  `;
@@ -0,0 +1,33 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ExecutionForm /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <h2
6
+ class="ui header"
7
+ >
8
+ header
9
+ </h2>
10
+ <form
11
+ class="ui form"
12
+ style="display: none;"
13
+ >
14
+ <p>
15
+ content
16
+ </p>
17
+ <div
18
+ class="actions"
19
+ >
20
+ <button
21
+ class="ui secondary button"
22
+ >
23
+ cancel
24
+ </button>
25
+ <button
26
+ class="ui primary button"
27
+ >
28
+ create
29
+ </button>
30
+ </div>
31
+ </form>
32
+ </div>
33
+ `;
@@ -4,7 +4,8 @@ exports[`<ExecutionGroup /> matches the latest snapshot 1`] = `
4
4
  <Fragment>
5
5
  <ExecutionGroupMessage
6
6
  count={1}
7
- pending={0}
7
+ error={1}
8
+ pending={-1}
8
9
  />
9
10
  <Table
10
11
  as="table"
@@ -64,8 +65,11 @@ exports[`<ExecutionGroup /> matches the latest snapshot 1`] = `
64
65
  Object {
65
66
  "_embedded": Object {
66
67
  "implementation": Object {
68
+ "goal": 20,
67
69
  "id": 1,
68
70
  "implementation_key": "foo",
71
+ "minimum": 10,
72
+ "result_type": "percentage",
69
73
  "rule_id": 1,
70
74
  },
71
75
  "quality_events": Array [
@@ -89,11 +93,8 @@ exports[`<ExecutionGroup /> matches the latest snapshot 1`] = `
89
93
  "result_type": "percentage",
90
94
  },
91
95
  "rule": Object {
92
- "goal": 20,
93
96
  "id": 1,
94
- "minimum": 10,
95
97
  "name": "rule_name",
96
- "result_type": "percentage",
97
98
  },
98
99
  },
99
100
  "id": 1,
@@ -0,0 +1,11 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ExecutionPopup /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <button
6
+ class="ui secondary button"
7
+ >
8
+ do_execution
9
+ </button>
10
+ </div>
11
+ `;
@@ -0,0 +1,141 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ImplementationResultBar /> render failed implementation 1`] = `
4
+ <div>
5
+ <div
6
+ class="rule-summary-wrapper"
7
+ >
8
+ <a
9
+ as="div"
10
+ class="rule-summary pointer"
11
+ href="/rules/8/implementations/1/results"
12
+ >
13
+ <span
14
+ class="failed-color"
15
+ style="width: 100%;"
16
+ >
17
+ <span
18
+ class="value"
19
+ >
20
+ Latest execution failed
21
+ </span>
22
+ </span>
23
+ </a>
24
+ </div>
25
+ </div>
26
+ `;
27
+
28
+ exports[`<ImplementationResultBar /> render not executed implementation 1`] = `
29
+ <div>
30
+ <div
31
+ class="rule-summary-wrapper"
32
+ >
33
+ <a
34
+ as="div"
35
+ class="rule-summary pointer"
36
+ href="/rules/8/implementations/1/results"
37
+ >
38
+ <span
39
+ class="not-executed-color"
40
+ style="width: 100%;"
41
+ >
42
+ <span
43
+ class="value"
44
+ >
45
+ No information about quality
46
+ </span>
47
+ </span>
48
+ </a>
49
+ </div>
50
+ </div>
51
+ `;
52
+
53
+ exports[`<ImplementationResultBar /> render overGoal implementation 1`] = `
54
+ <div>
55
+ <div
56
+ class="rule-summary-wrapper"
57
+ >
58
+ <a
59
+ as="div"
60
+ class="rule-summary pointer"
61
+ href="/rules/8/implementations/1/results"
62
+ >
63
+ <span
64
+ class="over-goal-color"
65
+ style="width: 100%;"
66
+ >
67
+ <span
68
+ class="value"
69
+ >
70
+ 99.99% at
71
+ <time
72
+ datetime="1626652880000"
73
+ >
74
+ 2021-07-19 00:01
75
+ </time>
76
+ </span>
77
+ </span>
78
+ </a>
79
+ </div>
80
+ </div>
81
+ `;
82
+
83
+ exports[`<ImplementationResultBar /> render underGoal implementation 1`] = `
84
+ <div>
85
+ <div
86
+ class="rule-summary-wrapper"
87
+ >
88
+ <a
89
+ as="div"
90
+ class="rule-summary pointer"
91
+ href="/rules/8/implementations/1/results"
92
+ >
93
+ <span
94
+ class="under-goal-color"
95
+ style="width: 100%;"
96
+ >
97
+ <span
98
+ class="value"
99
+ >
100
+ 70% at
101
+ <time
102
+ datetime="1626652880000"
103
+ >
104
+ 2021-07-19 00:01
105
+ </time>
106
+ </span>
107
+ </span>
108
+ </a>
109
+ </div>
110
+ </div>
111
+ `;
112
+
113
+ exports[`<ImplementationResultBar /> render underMinimum implementation 1`] = `
114
+ <div>
115
+ <div
116
+ class="rule-summary-wrapper"
117
+ >
118
+ <a
119
+ as="div"
120
+ class="rule-summary pointer"
121
+ href="/rules/8/implementations/1/results"
122
+ >
123
+ <span
124
+ class="under-minimum-color"
125
+ style="width: 100%;"
126
+ >
127
+ <span
128
+ class="value"
129
+ >
130
+ 40% at
131
+ <time
132
+ datetime="1626652880000"
133
+ >
134
+ 2021-07-19 00:01
135
+ </time>
136
+ </span>
137
+ </span>
138
+ </a>
139
+ </div>
140
+ </div>
141
+ `;