@truedat/dq 8.7.0 → 8.7.1

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 (238) hide show
  1. package/package.json +3 -3
  2. package/src/components/ConceptRules.js +2 -3
  3. package/src/components/ConditionCell.js +9 -9
  4. package/src/components/ExecutionForm.js +1 -1
  5. package/src/components/ExecutionGroup.js +2 -2
  6. package/src/components/ExecutionGroupContent.js +4 -4
  7. package/src/components/ImplementationExecutionFilters.js +1 -1
  8. package/src/components/ImplementationFiltersLoader.js +2 -2
  9. package/src/components/ImplementationResultBar.js +1 -1
  10. package/src/components/ImplementationSearchResults.js +7 -7
  11. package/src/components/ImplementationStructureDelete.js +1 -1
  12. package/src/components/ImplementationStructuresNew.js +6 -3
  13. package/src/components/ImplementationSummary.js +2 -2
  14. package/src/components/Implementations.js +18 -11
  15. package/src/components/ImplementationsHeader.js +16 -21
  16. package/src/components/ImplementationsRoutes.js +7 -7
  17. package/src/components/MoveImplementation.js +1 -1
  18. package/src/components/NewBasicRuleImplementation.js +1 -1
  19. package/src/components/NewRuleImplementation.js +44 -44
  20. package/src/components/QualityEventError.js +11 -7
  21. package/src/components/RawContent.js +1 -1
  22. package/src/components/RemediationForm.js +1 -1
  23. package/src/components/RemediationPlan.js +2 -2
  24. package/src/components/Rule.js +1 -1
  25. package/src/components/RuleActions.js +1 -1
  26. package/src/components/RuleEventDecorator.js +1 -1
  27. package/src/components/RuleEventRow.js +1 -1
  28. package/src/components/RuleFilters.js +1 -1
  29. package/src/components/RuleFiltersLoader.js +1 -1
  30. package/src/components/RuleFormImplementations.js +1 -1
  31. package/src/components/RuleImplementationEventRow.js +1 -1
  32. package/src/components/RuleImplementationHistory.js +1 -1
  33. package/src/components/RuleImplementationProperties.js +2 -2
  34. package/src/components/RuleImplementationResults.js +2 -2
  35. package/src/components/RuleImplementationTabs.js +5 -5
  36. package/src/components/RuleImplementationsDownload.js +4 -4
  37. package/src/components/RuleImplementationsDownloadXlsx.js +6 -6
  38. package/src/components/RuleImplementationsLoader.js +1 -2
  39. package/src/components/RuleImplementationsTable.js +1 -1
  40. package/src/components/RuleResultDecorator.js +3 -3
  41. package/src/components/RuleResultDetails.js +1 -1
  42. package/src/components/RuleResultRemediationLoader.js +1 -1
  43. package/src/components/RuleResultSegments.js +3 -3
  44. package/src/components/RuleResultsTable.js +7 -7
  45. package/src/components/RuleRoutes.js +3 -3
  46. package/src/components/RuleSelectedFilters.js +3 -3
  47. package/src/components/RuleSelector.js +1 -1
  48. package/src/components/RuleSummary.js +3 -3
  49. package/src/components/Rules.js +4 -4
  50. package/src/components/RulesLoader.js +2 -2
  51. package/src/components/RulesRoutes.js +1 -1
  52. package/src/components/SimpleRuleImplementationsTable.js +1 -1
  53. package/src/components/Subscription.js +1 -1
  54. package/src/components/TaxonomySummary.js +1 -1
  55. package/src/components/__tests__/ConceptRules.spec.js +2 -2
  56. package/src/components/__tests__/ExecutionGroup.spec.js +3 -3
  57. package/src/components/__tests__/ExecutionGroupContent.spec.js +1 -1
  58. package/src/components/__tests__/ExecutionGroups.spec.js +1 -1
  59. package/src/components/__tests__/ExecutionGroupsTable.spec.js +1 -1
  60. package/src/components/__tests__/ImplementationExecutionFilters.spec.js +1 -1
  61. package/src/components/__tests__/ImplementationExecutions.spec.js +1 -1
  62. package/src/components/__tests__/ImplementationResultBar.spec.js +6 -6
  63. package/src/components/__tests__/ImplementationSearchResults.spec.js +3 -3
  64. package/src/components/__tests__/ImplementationStructureDelete.spec.js +1 -1
  65. package/src/components/__tests__/ImplementationStructureLink.spec.js +1 -1
  66. package/src/components/__tests__/ImplementationStructureLinksActions.spec.js +31 -27
  67. package/src/components/__tests__/ImplementationStructures.spec.js +6 -6
  68. package/src/components/__tests__/ImplementationStructuresNew.spec.js +2 -2
  69. package/src/components/__tests__/ImplementationSummary.spec.js +2 -2
  70. package/src/components/__tests__/Implementations.spec.js +1 -1
  71. package/src/components/__tests__/ImplementationsRoutes.spec.js +1 -1
  72. package/src/components/__tests__/ImplementationsUploadButton.spec.js +8 -8
  73. package/src/components/__tests__/MoveImplementation.spec.js +5 -5
  74. package/src/components/__tests__/NewBasicRuleImplementation.spec.js +4 -4
  75. package/src/components/__tests__/NewRuleImplementation.spec.js +14 -14
  76. package/src/components/__tests__/QualityRoutes.spec.js +1 -1
  77. package/src/components/__tests__/RemediationForm.spec.js +9 -3
  78. package/src/components/__tests__/RemediationPlan.spec.js +2 -2
  79. package/src/components/__tests__/RuleActions.spec.js +1 -1
  80. package/src/components/__tests__/RuleForm.spec.js +2 -2
  81. package/src/components/__tests__/RuleFormImplementations.spec.js +3 -3
  82. package/src/components/__tests__/RuleImplementation.spec.js +2 -2
  83. package/src/components/__tests__/RuleImplementationProperties.spec.js +3 -3
  84. package/src/components/__tests__/RuleImplementationResults.spec.js +2 -2
  85. package/src/components/__tests__/RuleImplementationsActions.spec.js +4 -4
  86. package/src/components/__tests__/RuleImplementationsLoader.spec.js +1 -1
  87. package/src/components/__tests__/RuleImplementationsOptions.spec.js +1 -1
  88. package/src/components/__tests__/RuleImplementationsTable.spec.js +3 -3
  89. package/src/components/__tests__/RuleResultDecorator.spec.js +15 -6
  90. package/src/components/__tests__/RuleResultDetails.spec.js +1 -1
  91. package/src/components/__tests__/RuleResultRemediations.spec.js +1 -1
  92. package/src/components/__tests__/RuleResultRoutes.spec.js +4 -4
  93. package/src/components/__tests__/RuleResultRow.spec.js +13 -13
  94. package/src/components/__tests__/RuleResultSegments.spec.js +1 -1
  95. package/src/components/__tests__/RuleRoutes.spec.js +1 -1
  96. package/src/components/__tests__/RuleRow.spec.js +4 -4
  97. package/src/components/__tests__/RuleSelectionForm.spec.js +5 -5
  98. package/src/components/__tests__/RuleSummary.spec.js +3 -3
  99. package/src/components/__tests__/Rules.spec.js +1 -1
  100. package/src/components/__tests__/RulesActions.spec.js +1 -1
  101. package/src/components/__tests__/RulesRoutes.spec.js +1 -1
  102. package/src/components/__tests__/Subscription.spec.js +11 -11
  103. package/src/components/ruleImplementationForm/DatasetForm.js +7 -7
  104. package/src/components/ruleImplementationForm/FieldModifier.js +5 -5
  105. package/src/components/ruleImplementationForm/FieldsGrid.js +2 -2
  106. package/src/components/ruleImplementationForm/FieldsGroup.js +1 -1
  107. package/src/components/ruleImplementationForm/FiltersField.js +4 -4
  108. package/src/components/ruleImplementationForm/FiltersFormGroup.js +3 -3
  109. package/src/components/ruleImplementationForm/FiltersGrid.js +3 -3
  110. package/src/components/ruleImplementationForm/FiltersGroup.js +2 -2
  111. package/src/components/ruleImplementationForm/InformationForm.js +1 -1
  112. package/src/components/ruleImplementationForm/RuleImplementationBasicForm.js +3 -3
  113. package/src/components/ruleImplementationForm/RuleImplementationForm.js +15 -11
  114. package/src/components/ruleImplementationForm/RuleImplementationRawForm.js +5 -5
  115. package/src/components/ruleImplementationForm/__tests__/FiltersFormGroup.spec.js +1 -1
  116. package/src/components/ruleImplementationForm/__tests__/FiltersGroup.spec.js +1 -1
  117. package/src/components/ruleImplementationForm/__tests__/InformationForm.spec.js +2 -2
  118. package/src/components/ruleImplementationForm/__tests__/LimitsForm.spec.js +12 -12
  119. package/src/components/ruleImplementationForm/__tests__/RuleImplementationBasicForm.spec.js +13 -13
  120. package/src/components/ruleImplementationForm/__tests__/RuleImplementationForm.spec.js +2 -2
  121. package/src/components/ruleImplementationForm/__tests__/RuleImplementationRawForm.spec.js +25 -25
  122. package/src/components/ruleImplementationForm/__tests__/ValueConditions.spec.js +1 -1
  123. package/src/components/ruleImplementationForm/operators.js +7 -7
  124. package/src/hooks/__tests__/useImplementations.spec.js +0 -1
  125. package/src/hooks/useImplementations.js +5 -5
  126. package/src/messages/en.js +0 -1
  127. package/src/messages/es.js +0 -1
  128. package/src/messages/index.js +1 -1
  129. package/src/reducers/__tests__/conceptRules.spec.js +3 -3
  130. package/src/reducers/__tests__/conceptRulesActions.spec.js +6 -6
  131. package/src/reducers/__tests__/implementationActions.spec.js +2 -2
  132. package/src/reducers/__tests__/implementationLinks.spec.js +4 -4
  133. package/src/reducers/__tests__/implementationsActions.spec.js +2 -2
  134. package/src/reducers/__tests__/previousRuleImplementationQuery.spec.js +6 -6
  135. package/src/reducers/__tests__/remediation.spec.js +7 -7
  136. package/src/reducers/__tests__/remediationActions.spec.js +3 -3
  137. package/src/reducers/__tests__/remediationLoading.spec.js +6 -6
  138. package/src/reducers/__tests__/resultsUploading.spec.js +2 -2
  139. package/src/reducers/__tests__/rule.spec.js +1 -1
  140. package/src/reducers/__tests__/ruleActiveFilters.spec.js +8 -8
  141. package/src/reducers/__tests__/ruleCount.spec.js +3 -3
  142. package/src/reducers/__tests__/ruleFiltersLoading.spec.js +2 -2
  143. package/src/reducers/__tests__/ruleImplementation.spec.js +2 -2
  144. package/src/reducers/__tests__/ruleImplementationActiveFilters.spec.js +11 -11
  145. package/src/reducers/__tests__/ruleImplementationCount.spec.js +5 -5
  146. package/src/reducers/__tests__/ruleImplementationCreating.spec.js +5 -5
  147. package/src/reducers/__tests__/ruleImplementationFilters.spec.js +4 -4
  148. package/src/reducers/__tests__/ruleImplementationLoading.spec.js +5 -3
  149. package/src/reducers/__tests__/ruleImplementationQuery.spec.js +7 -7
  150. package/src/reducers/__tests__/ruleImplementationRedirect.spec.js +13 -13
  151. package/src/reducers/__tests__/ruleImplementationSaving.spec.js +4 -2
  152. package/src/reducers/__tests__/ruleImplementationSelectedFilter.spec.js +7 -7
  153. package/src/reducers/__tests__/ruleImplementations.spec.js +4 -4
  154. package/src/reducers/__tests__/ruleImplementationsDownloading.spec.js +4 -4
  155. package/src/reducers/__tests__/ruleImplementationsLoading.spec.js +5 -5
  156. package/src/reducers/__tests__/ruleImplementationsPageSize.spec.js +4 -4
  157. package/src/reducers/__tests__/ruleQuery.spec.js +6 -6
  158. package/src/reducers/__tests__/ruleRedirect.spec.js +10 -10
  159. package/src/reducers/__tests__/rules.spec.js +2 -2
  160. package/src/reducers/__tests__/segmentResult.spec.js +3 -3
  161. package/src/reducers/__tests__/uploadImplementationsFile.spec.js +2 -2
  162. package/src/reducers/__tests__/uploadRulesFile.spec.js +2 -2
  163. package/src/reducers/conceptRulesActions.js +2 -2
  164. package/src/reducers/dqMessage.js +2 -2
  165. package/src/reducers/implementationsActions.js +1 -1
  166. package/src/reducers/previousRuleImplementationQuery.js +2 -2
  167. package/src/reducers/ruleFilters.js +1 -1
  168. package/src/reducers/ruleImplementationActiveFilters.js +1 -1
  169. package/src/reducers/ruleImplementationCount.js +1 -1
  170. package/src/reducers/ruleImplementationFilters.js +2 -2
  171. package/src/reducers/ruleImplementationRaw.js +1 -1
  172. package/src/reducers/ruleImplementationRedirect.js +3 -3
  173. package/src/reducers/ruleImplementationSelectedFilter.js +1 -1
  174. package/src/reducers/ruleImplementationsLoading.js +1 -1
  175. package/src/reducers/ruleImplementationsPageSize.js +1 -1
  176. package/src/reducers/ruleSelectedFilter.js +1 -1
  177. package/src/reducers/uploadingImplementationsFile.js +1 -1
  178. package/src/routines.js +23 -23
  179. package/src/sagas/__tests__/createExecutionGroup.spec.js +1 -1
  180. package/src/sagas/__tests__/createImplementationStructure.spec.js +1 -1
  181. package/src/sagas/__tests__/createRuleImplementation.spec.js +1 -1
  182. package/src/sagas/__tests__/deleteImplementationStructure.spec.js +1 -1
  183. package/src/sagas/__tests__/deleteRule.spec.js +1 -3
  184. package/src/sagas/__tests__/downloadRuleImplementations.spec.js +1 -1
  185. package/src/sagas/__tests__/fetchConceptRules.spec.js +1 -1
  186. package/src/sagas/__tests__/fetchRule.spec.js +1 -3
  187. package/src/sagas/__tests__/fetchRuleFilters.spec.js +5 -5
  188. package/src/sagas/__tests__/fetchRuleImplementation.spec.js +1 -1
  189. package/src/sagas/__tests__/fetchRuleImplementations.spec.js +1 -1
  190. package/src/sagas/__tests__/fetchRules.spec.js +4 -6
  191. package/src/sagas/__tests__/searchRuleImplementations.spec.js +3 -3
  192. package/src/sagas/__tests__/updateRule.spec.js +1 -3
  193. package/src/sagas/__tests__/updateRuleImplementation.spec.js +1 -1
  194. package/src/sagas/__tests__/uploadImplementations.spec.js +2 -2
  195. package/src/sagas/createExecutionGroup.js +1 -1
  196. package/src/sagas/createImplementationStructure.js +1 -1
  197. package/src/sagas/createRuleImplementation.js +2 -2
  198. package/src/sagas/deleteImplementationStructure.js +1 -1
  199. package/src/sagas/downloadRuleImplementations.js +1 -1
  200. package/src/sagas/downloadRuleImplementationsXlsx.js +1 -1
  201. package/src/sagas/fetchRuleImplementation.js +1 -1
  202. package/src/sagas/fetchRuleImplementationFilters.js +1 -1
  203. package/src/sagas/fetchRuleImplementations.js +2 -2
  204. package/src/sagas/searchRuleImplementations.js +2 -2
  205. package/src/sagas/updateRuleImplementation.js +1 -1
  206. package/src/sagas/uploadImplementations.js +1 -1
  207. package/src/sagas/uploadResults.js +1 -1
  208. package/src/sagas/uploadRules.js +1 -1
  209. package/src/selectors/__tests__/executionGroupsColumnsSelector.spec.js +2 -2
  210. package/src/selectors/__tests__/getImplementationStructureLinksColumns.spec.js +1 -1
  211. package/src/selectors/__tests__/getRuleImplementationSelectedFilterValues.spec.js +1 -1
  212. package/src/selectors/__tests__/ruleColumnsSelector.spec.js +1 -1
  213. package/src/selectors/datasetDefaultFiltersSelector.js +1 -1
  214. package/src/selectors/executionGroupsColumnsSelector.js +1 -1
  215. package/src/selectors/getExecutionGroupColumns.js +1 -1
  216. package/src/selectors/getExecutionQuery.js +1 -1
  217. package/src/selectors/getImplementationStructureLinksColumns.js +10 -10
  218. package/src/selectors/getImplementationStructures.js +10 -8
  219. package/src/selectors/getImplementationsExecution.js +1 -1
  220. package/src/selectors/getLinkedImplementationsToRulesColumns.js +1 -1
  221. package/src/selectors/getRuleAvailableFilters.js +2 -2
  222. package/src/selectors/getRuleFilterTypes.js +1 -1
  223. package/src/selectors/getRuleImplementationAvailableFilters.js +3 -3
  224. package/src/selectors/getRuleImplementationColumns.js +1 -1
  225. package/src/selectors/getRuleImplementationFilterTypes.js +1 -1
  226. package/src/selectors/getRuleImplementationForm.js +11 -11
  227. package/src/selectors/getRuleImplementationSelectedFilterActiveValues.js +2 -2
  228. package/src/selectors/getRuleImplementationSelectedFilterValues.js +2 -2
  229. package/src/selectors/getRuleImplementationSelectedFilters.js +1 -1
  230. package/src/selectors/getRuleSelectedFilterActiveValues.js +1 -1
  231. package/src/selectors/getRuleSelectedFilterValues.js +2 -2
  232. package/src/selectors/getRuleSelectedFilters.js +1 -1
  233. package/src/selectors/getSegmentResultsColumns.js +1 -1
  234. package/src/selectors/getStructureFields.js +3 -3
  235. package/src/selectors/ruleColumnsSelector.js +3 -3
  236. package/src/selectors/ruleResultsColumnsSelector.js +1 -1
  237. package/src/services/__tests__/encodeRawContent.spec.js +1 -1
  238. package/src/services/encodeRawContent.js +1 -1
@@ -4,7 +4,7 @@ const defaultPageSize = 20;
4
4
 
5
5
  const ruleImplementationsPageSize = (
6
6
  state = defaultPageSize,
7
- { type, payload }
7
+ { type, payload },
8
8
  ) => {
9
9
  switch (type) {
10
10
  case searchRuleImplementations.TRIGGER:
@@ -3,7 +3,7 @@ import {
3
3
  closeRuleFilter,
4
4
  openRuleFilter,
5
5
  removeRuleFilter,
6
- resetRuleFilters
6
+ resetRuleFilters,
7
7
  } from "../routines";
8
8
 
9
9
  /** @type {string} */
@@ -4,7 +4,7 @@ const initialState = false;
4
4
 
5
5
  export const uploadingImplementationsFile = (
6
6
  state = initialState,
7
- { type }
7
+ { type },
8
8
  ) => {
9
9
  switch (type) {
10
10
  case uploadImplementations.TRIGGER:
package/src/routines.js CHANGED
@@ -1,114 +1,114 @@
1
1
  import { createRoutine } from "redux-saga-routines";
2
2
 
3
3
  export const addImplementationFilter = createRoutine(
4
- "ADD_IMPLEMENTATION_FILTER"
4
+ "ADD_IMPLEMENTATION_FILTER",
5
5
  );
6
6
  export const addRuleFilter = createRoutine("ADD_RULE_FILTER");
7
7
  export const clearConceptRules = createRoutine("CLEAR_CONCEPT_RULES");
8
8
  export const clearExecutionGroup = createRoutine("CLEAR_EXECUTION_GROUP");
9
9
  export const clearImplementationDefaultFilters = createRoutine(
10
- "CLEAR_IMPLEMENTATION_DEFAULT_FILTRERS"
10
+ "CLEAR_IMPLEMENTATION_DEFAULT_FILTRERS",
11
11
  );
12
12
  export const clearImplementationFilters = createRoutine(
13
- "CLEAR_IMPLEMENTATION_FILTERS"
13
+ "CLEAR_IMPLEMENTATION_FILTERS",
14
14
  );
15
15
  export const clearRemediation = createRoutine("CLEAR_REMEDIATION");
16
16
  export const clearRule = createRoutine("CLEAR_RULE");
17
17
  export const clearRuleFilters = createRoutine("CLEAR_RULE_FILTERS");
18
18
  export const clearRuleImplementation = createRoutine(
19
- "CLEAR_RULE_IMPLEMENTATION"
19
+ "CLEAR_RULE_IMPLEMENTATION",
20
20
  );
21
21
  export const clearRuleImplementations = createRoutine(
22
- "CLEAR_RULE_IMPLEMENTATIONS"
22
+ "CLEAR_RULE_IMPLEMENTATIONS",
23
23
  );
24
24
  export const clearRules = createRoutine("CLEAR_RULES");
25
25
  export const clearSegmentResults = createRoutine("CLEAR_SEGMENT_RESULTS");
26
26
  export const clearStructure = createRoutine("CLEAR_STRUCTURE");
27
27
  export const closeImplementationFilter = createRoutine(
28
- "CLOSE_IMPLEMENTATION_FILTER"
28
+ "CLOSE_IMPLEMENTATION_FILTER",
29
29
  );
30
30
  export const closeRuleFilter = createRoutine("CLOSE_RULE_FILTER");
31
31
  export const createExecutionGroup = createRoutine("CREATE_EXECUTION_GROUP");
32
32
  export const createImplementationStructure = createRoutine(
33
- "CREATE_IMPLEMENTATION_STRUCTURE"
33
+ "CREATE_IMPLEMENTATION_STRUCTURE",
34
34
  );
35
35
  export const createRemediation = createRoutine("CREATE_REMEDIATION");
36
36
  export const createRule = createRoutine("CREATE_RULE");
37
37
  export const createRuleImplementation = createRoutine(
38
- "CREATE_RULE_IMPLEMENTATION"
38
+ "CREATE_RULE_IMPLEMENTATION",
39
39
  );
40
40
  export const deleteImplementationStructure = createRoutine(
41
- "DELETE_IMPLEMENTATION_STRUCTURE"
41
+ "DELETE_IMPLEMENTATION_STRUCTURE",
42
42
  );
43
43
  export const deleteRemediation = createRoutine("DELETE_REMEDIATION");
44
44
  export const deleteRule = createRoutine("DELETE_RULE");
45
45
  export const deleteRuleResult = createRoutine("DELETE_RULE_RESULT");
46
46
  export const deprecateImplementation = createRoutine("CREATE_IMPLEMENTATION");
47
47
  export const downloadImplementations = createRoutine(
48
- "DOWNLOAD_IMPLEMENTATIONS"
48
+ "DOWNLOAD_IMPLEMENTATIONS",
49
49
  );
50
50
  export const downloadImplementationsXlsx = createRoutine(
51
- "DOWNLOAD_IMPLEMENTATIONS_XLSX"
51
+ "DOWNLOAD_IMPLEMENTATIONS_XLSX",
52
52
  );
53
53
  export const fetchConceptRules = createRoutine("FETCH_CONCEPT_RULES");
54
54
  export const fetchExecutionGroup = createRoutine("FETCH_EXECUTION_GROUP");
55
55
  export const fetchImplementationFilters = createRoutine(
56
- "FETCH_IMPLEMENTATION_FILTERS"
56
+ "FETCH_IMPLEMENTATION_FILTERS",
57
57
  );
58
58
  export const fetchRemediation = createRoutine("FETCH_REMEDIATION");
59
59
  export const fetchRule = createRoutine("FETCH_RULE");
60
60
  export const fetchRuleFilters = createRoutine("FETCH_RULE_FILTERS");
61
61
  export const fetchRuleImplementation = createRoutine(
62
- "FETCH_RULE_IMPLEMENTATION"
62
+ "FETCH_RULE_IMPLEMENTATION",
63
63
  );
64
64
  export const fetchRuleImplementations = createRoutine(
65
- "FETCH_RULE_IMPLEMENTATIONS"
65
+ "FETCH_RULE_IMPLEMENTATIONS",
66
66
  );
67
67
  export const fetchRuleImplementationV2 = createRoutine(
68
- "FETCH_RULE_IMPLEMENTATION_V2"
68
+ "FETCH_RULE_IMPLEMENTATION_V2",
69
69
  );
70
70
  export const fetchRules = createRoutine("FETCH_RULES");
71
71
  export const fetchSegmentResults = createRoutine("FETCH_SEGMENT_RESULTS");
72
72
  export const openImplementationFilter = createRoutine(
73
- "OPEN_IMPLEMENTATION_FILTER"
73
+ "OPEN_IMPLEMENTATION_FILTER",
74
74
  );
75
75
  export const openRuleFilter = createRoutine("OPEN_RULE_FILTER");
76
76
  export const publishImplementation = createRoutine("PUBLISH_IMPLEMENTATION");
77
77
  export const restoreImplementation = createRoutine("RESTORE_IMPLEMENTATION");
78
78
  export const rejectImplementation = createRoutine("REJECT_IMPLEMENTATION");
79
79
  export const removeImplementationFilter = createRoutine(
80
- "REMOVE_IMPLEMENTATION_FILTERS"
80
+ "REMOVE_IMPLEMENTATION_FILTERS",
81
81
  );
82
82
  export const removeRuleFilter = createRoutine("REMOVE_RULE_FILTER");
83
83
  export const resetImplementationFilters = createRoutine(
84
- "RESET_IMPLEMENTATION_FILTERS"
84
+ "RESET_IMPLEMENTATION_FILTERS",
85
85
  );
86
86
  export const resetRuleFilters = createRoutine("RESET_RULE_FILTERS");
87
87
  export const searchImplementations = createRoutine("SEARCH_IMPLEMENTATIONS");
88
88
  export const searchRuleImplementations = createRoutine(
89
- "SEARCH_RULE_IMPLEMENTATIONS"
89
+ "SEARCH_RULE_IMPLEMENTATIONS",
90
90
  );
91
91
  export const searchRules = createRoutine("SEARCH_RULES");
92
92
  export const selectImplementationPage = createRoutine(
93
- "SELECT_IMPLEMENTATION_PAGE"
93
+ "SELECT_IMPLEMENTATION_PAGE",
94
94
  );
95
95
  export const selectRulePage = createRoutine("SELECT_RULE_PAGE");
96
96
  export const setImplementationDefaultFilters = createRoutine(
97
- "SET_IMPLEMENTATION_DEFAULT_FILTRERS"
97
+ "SET_IMPLEMENTATION_DEFAULT_FILTRERS",
98
98
  );
99
99
  export const deleteImplementation = createRoutine("DELETE_IMPLEMENTATION");
100
100
 
101
101
  export const sortRules = createRoutine("SORT_RULES");
102
102
  export const submitImplementation = createRoutine("SUBMIT_IMPLEMENTATION");
103
103
  export const toggleImplementationFilterValue = createRoutine(
104
- "TOGGLE_IMPLEMENTATION_FILTER_VALUE"
104
+ "TOGGLE_IMPLEMENTATION_FILTER_VALUE",
105
105
  );
106
106
  export const toggleRuleFilterValue = createRoutine("TOGGLE_RULE_FILTER_VALUE");
107
107
  export const updateDeletionQuery = createRoutine("UPDATE_DELETION_QUERY");
108
108
  export const updateRemediation = createRoutine("UPDATE_REMEDIATION");
109
109
  export const updateRule = createRoutine("UPDATE_RULE");
110
110
  export const updateRuleImplementation = createRoutine(
111
- "UPDATE_RULE_IMPLEMENTATION"
111
+ "UPDATE_RULE_IMPLEMENTATION",
112
112
  );
113
113
  export const uploadImplementations = createRoutine("UPLOAD_IMPLEMENTATIONS");
114
114
  export const uploadResults = createRoutine("UPLOAD_RESULTS");
@@ -2,7 +2,7 @@ import { testSaga } from "redux-saga-test-plan";
2
2
  import { apiJsonPost, JSON_OPTS } from "@truedat/core/services/api";
3
3
  import {
4
4
  createExecutionGroupRequestSaga,
5
- createExecutionGroupSaga
5
+ createExecutionGroupSaga,
6
6
  } from "../createExecutionGroup";
7
7
  import { createExecutionGroup } from "../../routines";
8
8
  import { API_EXECUTION_GROUPS } from "../../api";
@@ -15,7 +15,7 @@ describe("sagas: createImplementationStructureRequestSaga", () => {
15
15
  .next()
16
16
  .takeLatest(
17
17
  createImplementationStructure.TRIGGER,
18
- createImplementationStructureSaga
18
+ createImplementationStructureSaga,
19
19
  )
20
20
  .finish()
21
21
  .isDone();
@@ -16,7 +16,7 @@ describe("sagas: createRuleImplementationRequestSaga", () => {
16
16
  .next()
17
17
  .takeLatest(
18
18
  createRuleImplementation.TRIGGER,
19
- createRuleImplementationSaga
19
+ createRuleImplementationSaga,
20
20
  )
21
21
  .finish()
22
22
  .isDone();
@@ -18,7 +18,7 @@ describe("sagas: deleteImplementationStructureRequestSaga", () => {
18
18
  .next()
19
19
  .takeLatest(
20
20
  deleteImplementationStructure.TRIGGER,
21
- deleteImplementationStructureSaga
21
+ deleteImplementationStructureSaga,
22
22
  )
23
23
  .finish()
24
24
  .isDone();
@@ -18,9 +18,7 @@ describe("sagas: deleteRuleRequestSaga", () => {
18
18
 
19
19
  it("should throw exception if an unhandled action is received", () => {
20
20
  expect(() => {
21
- testSaga(deleteRuleRequestSaga)
22
- .next()
23
- .takeLatest("FOO", deleteRule);
21
+ testSaga(deleteRuleRequestSaga).next().takeLatest("FOO", deleteRule);
24
22
  }).toThrow();
25
23
  });
26
24
  });
@@ -16,7 +16,7 @@ describe("sagas: downloadRuleImplementationsRequestSaga", () => {
16
16
  .next()
17
17
  .takeLatest(
18
18
  downloadImplementations.TRIGGER,
19
- downloadRuleImplementationsSaga
19
+ downloadRuleImplementationsSaga,
20
20
  )
21
21
  .finish()
22
22
  .isDone();
@@ -1,7 +1,7 @@
1
1
  import { testSaga } from "redux-saga-test-plan";
2
2
  import {
3
3
  fetchConceptRulesRequestSaga,
4
- fetchConceptRulesSaga
4
+ fetchConceptRulesSaga,
5
5
  } from "../fetchConceptRules";
6
6
  import { fetchConceptRules } from "../../routines";
7
7
 
@@ -18,9 +18,7 @@ describe("sagas: fetchRuleRequestSaga", () => {
18
18
 
19
19
  it("should throw exception if an unhandled action is received", () => {
20
20
  expect(() => {
21
- testSaga(fetchRuleRequestSaga)
22
- .next()
23
- .takeLatest("FOO", fetchRuleSaga);
21
+ testSaga(fetchRuleRequestSaga).next().takeLatest("FOO", fetchRuleSaga);
24
22
  }).toThrow();
25
23
  });
26
24
  });
@@ -2,7 +2,7 @@ import { testSaga } from "redux-saga-test-plan";
2
2
  import { apiJsonPost, JSON_OPTS } from "@truedat/core/services/api";
3
3
  import {
4
4
  fetchRuleFiltersRequestSaga,
5
- fetchRuleFiltersSaga
5
+ fetchRuleFiltersSaga,
6
6
  } from "../fetchRuleFilters";
7
7
  import { fetchRuleFilters } from "../../routines";
8
8
  import { API_RULE_FILTERS_SEARCH } from "../../api";
@@ -30,11 +30,11 @@ describe("sagas: fetchRuleFiltersRequestSaga", () => {
30
30
  describe("sagas: fetchRuleFiltersSaga", () => {
31
31
  const payload = {
32
32
  filters: {
33
- test: "value"
34
- }
33
+ test: "value",
34
+ },
35
35
  };
36
36
  const data = {
37
- test2: [1, 2, 3]
37
+ test2: [1, 2, 3],
38
38
  };
39
39
 
40
40
  it("should put a success action when a response is returned", () => {
@@ -75,7 +75,7 @@ describe("sagas: fetchRuleFiltersSaga", () => {
75
75
  it("should put a failure action when the call returns an error", () => {
76
76
  const response = {
77
77
  status: 400,
78
- data: "message"
78
+ data: "message",
79
79
  };
80
80
  const error = { response };
81
81
 
@@ -15,7 +15,7 @@ describe("sagas: fetchRuleImplementationRequestSaga", () => {
15
15
  .next()
16
16
  .takeLatest(
17
17
  fetchRuleImplementation.TRIGGER,
18
- fetchRuleImplementationSaga
18
+ fetchRuleImplementationSaga,
19
19
  )
20
20
  .finish()
21
21
  .isDone();
@@ -15,7 +15,7 @@ describe("sagas: fetchRuleImplementationsRequestSaga", () => {
15
15
  .next()
16
16
  .takeLatest(
17
17
  fetchRuleImplementations.TRIGGER,
18
- fetchRuleImplementationsSaga
18
+ fetchRuleImplementationsSaga,
19
19
  )
20
20
  .finish()
21
21
  .isDone();
@@ -17,9 +17,7 @@ describe("sagas: fetchRulesRequestSaga", () => {
17
17
 
18
18
  it("should throw exception if an unhandled action is received", () => {
19
19
  expect(() => {
20
- testSaga(fetchRulesRequestSaga)
21
- .next()
22
- .takeLatest("FOO", fetchRulesSaga);
20
+ testSaga(fetchRulesRequestSaga).next().takeLatest("FOO", fetchRulesSaga);
23
21
  }).toThrow();
24
22
  });
25
23
  });
@@ -29,11 +27,11 @@ describe("sagas: fetchRulesSaga", () => {
29
27
  const data = {
30
28
  collection: [
31
29
  { id: 1, name: "Rule 1", description: "desc1" },
32
- { id: 2, name: "Rule 2", description: "desc2" }
33
- ]
30
+ { id: 2, name: "Rule 2", description: "desc2" },
31
+ ],
34
32
  };
35
33
  const headers = {
36
- "x-total-count": "123"
34
+ "x-total-count": "123",
37
35
  };
38
36
 
39
37
  it("should put a success action when a response is returned", () => {
@@ -2,7 +2,7 @@ import { testSaga } from "redux-saga-test-plan";
2
2
  import { apiJsonPost, JSON_OPTS } from "@truedat/core/services/api";
3
3
  import {
4
4
  searchRuleImplementationsRequestSaga,
5
- searchRuleImplementationsSaga
5
+ searchRuleImplementationsSaga,
6
6
  } from "../searchRuleImplementations";
7
7
  import { searchRuleImplementations } from "../../routines";
8
8
  import { API_RULE_IMPLEMENTATIONS_SEARCH } from "../../api";
@@ -14,7 +14,7 @@ describe("sagas: searchRuleImplementationsRequestSaga", () => {
14
14
  .next()
15
15
  .takeLatest(
16
16
  searchRuleImplementations.TRIGGER,
17
- searchRuleImplementationsSaga
17
+ searchRuleImplementationsSaga,
18
18
  )
19
19
  .finish()
20
20
  .isDone();
@@ -36,7 +36,7 @@ describe("sagas: searchRuleImplementationsSaga", () => {
36
36
  const body = payload;
37
37
  const data = [{ id: 1 }, { id: 2 }];
38
38
  const headers = {
39
- "x-total-count": "123"
39
+ "x-total-count": "123",
40
40
  };
41
41
 
42
42
  it("should put a success action when a response is returned", () => {
@@ -18,9 +18,7 @@ describe("sagas: updateRuleRequestSaga", () => {
18
18
 
19
19
  it("should throw exception if an unhandled action is received", () => {
20
20
  expect(() => {
21
- testSaga(updateRuleRequestSaga)
22
- .next()
23
- .takeLatest("FOO", updateRuleSaga);
21
+ testSaga(updateRuleRequestSaga).next().takeLatest("FOO", updateRuleSaga);
24
22
  }).toThrow();
25
23
  });
26
24
  });
@@ -18,7 +18,7 @@ describe("sagas: updateRuleImplementationRequestSaga", () => {
18
18
  .next()
19
19
  .takeLatest(
20
20
  updateRuleImplementation.TRIGGER,
21
- updateRuleImplementationSaga
21
+ updateRuleImplementationSaga,
22
22
  )
23
23
  .finish()
24
24
  .isDone();
@@ -43,7 +43,7 @@ describe("sagas: uploadImplementationsSaga", () => {
43
43
  apiJsonPost,
44
44
  API_RULE_IMPLEMENTATIONS_UPLOAD,
45
45
  body,
46
- UPLOAD_JSON_OPTS
46
+ UPLOAD_JSON_OPTS,
47
47
  )
48
48
  .next({ data })
49
49
  .put(uploadImplementations.success(data))
@@ -67,7 +67,7 @@ describe("sagas: uploadImplementationsSaga", () => {
67
67
  apiJsonPost,
68
68
  API_RULE_IMPLEMENTATIONS_UPLOAD,
69
69
  body,
70
- UPLOAD_JSON_OPTS
70
+ UPLOAD_JSON_OPTS,
71
71
  )
72
72
  .throw(error)
73
73
  .put(uploadImplementations.failure(message))
@@ -11,7 +11,7 @@ export function* createExecutionGroupSaga({ payload }) {
11
11
  apiJsonPost,
12
12
  API_EXECUTION_GROUPS,
13
13
  body,
14
- JSON_OPTS
14
+ JSON_OPTS,
15
15
  );
16
16
  yield put(createExecutionGroup.success(data));
17
17
  } catch (error) {
@@ -29,6 +29,6 @@ export function* createImplementationStructureSaga({ payload }) {
29
29
  export function* createImplementationStructureRequestSaga() {
30
30
  yield takeLatest(
31
31
  createImplementationStructure.TRIGGER,
32
- createImplementationStructureSaga
32
+ createImplementationStructureSaga,
33
33
  );
34
34
  }
@@ -41,7 +41,7 @@ export function* createRuleImplementationSaga({ payload }) {
41
41
  data,
42
42
  message: "ruleImplementation.linkConcept.failed",
43
43
  implementation_id: relation.source_id,
44
- })
44
+ }),
45
45
  );
46
46
  } else {
47
47
  yield put(createRuleImplementation.failure({ status, data }));
@@ -57,6 +57,6 @@ export function* createRuleImplementationSaga({ payload }) {
57
57
  export function* createRuleImplementationRequestSaga() {
58
58
  yield takeLatest(
59
59
  createRuleImplementation.TRIGGER,
60
- createRuleImplementationSaga
60
+ createRuleImplementationSaga,
61
61
  );
62
62
  }
@@ -32,6 +32,6 @@ export function* deleteImplementationStructureSaga({ payload }) {
32
32
  export function* deleteImplementationStructureRequestSaga() {
33
33
  yield takeLatest(
34
34
  deleteImplementationStructure.TRIGGER,
35
- deleteImplementationStructureSaga
35
+ deleteImplementationStructureSaga,
36
36
  );
37
37
  }
@@ -47,6 +47,6 @@ export function* downloadRuleImplementationsSaga({ payload }) {
47
47
  export function* downloadRuleImplementationsRequestSaga() {
48
48
  yield takeLatest(
49
49
  downloadImplementations.TRIGGER,
50
- downloadRuleImplementationsSaga
50
+ downloadRuleImplementationsSaga,
51
51
  );
52
52
  }
@@ -47,6 +47,6 @@ export function* downloadRuleImplementationsXlsxSaga({ payload }) {
47
47
  export function* downloadRuleImplementationsXlsxRequestSaga() {
48
48
  yield takeLatest(
49
49
  downloadImplementationsXlsx.TRIGGER,
50
- downloadRuleImplementationsXlsxSaga
50
+ downloadRuleImplementationsXlsxSaga,
51
51
  );
52
52
  }
@@ -28,6 +28,6 @@ export function* fetchRuleImplementationSaga({ payload }) {
28
28
  export function* fetchRuleImplementationRequestSaga() {
29
29
  yield takeLatest(
30
30
  fetchRuleImplementation.TRIGGER,
31
- fetchRuleImplementationSaga
31
+ fetchRuleImplementationSaga,
32
32
  );
33
33
  }
@@ -27,6 +27,6 @@ export function* fetchRuleImplementationFiltersSaga(payload) {
27
27
  export function* fetchRuleImplementationFiltersRequestSaga() {
28
28
  yield takeLatest(
29
29
  fetchImplementationFilters.TRIGGER,
30
- fetchRuleImplementationFiltersSaga
30
+ fetchRuleImplementationFiltersSaga,
31
31
  );
32
32
  }
@@ -25,7 +25,7 @@ export function* fetchRuleImplementationsSaga({ payload }) {
25
25
  apiJsonPost,
26
26
  url,
27
27
  fetchPayload(deleted, filters),
28
- JSON_OPTS
28
+ JSON_OPTS,
29
29
  );
30
30
  yield put(fetchRuleImplementations.success(data));
31
31
  } catch (error) {
@@ -43,6 +43,6 @@ export function* fetchRuleImplementationsSaga({ payload }) {
43
43
  export function* fetchRuleImplementationsRequestSaga() {
44
44
  yield takeLatest(
45
45
  fetchRuleImplementations.TRIGGER,
46
- fetchRuleImplementationsSaga
46
+ fetchRuleImplementationsSaga,
47
47
  );
48
48
  }
@@ -11,7 +11,7 @@ export function* searchRuleImplementationsSaga({ payload: body }) {
11
11
  apiJsonPost,
12
12
  API_RULE_IMPLEMENTATIONS_SEARCH,
13
13
  body,
14
- JSON_OPTS
14
+ JSON_OPTS,
15
15
  );
16
16
  yield put(searchRuleImplementations.success({ data, headers }));
17
17
  } catch (error) {
@@ -29,6 +29,6 @@ export function* searchRuleImplementationsSaga({ payload: body }) {
29
29
  export function* searchRuleImplementationsRequestSaga() {
30
30
  yield takeLatest(
31
31
  searchRuleImplementations.TRIGGER,
32
- searchRuleImplementationsSaga
32
+ searchRuleImplementationsSaga,
33
33
  );
34
34
  }
@@ -32,6 +32,6 @@ export function* updateRuleImplementationSaga({ payload }) {
32
32
  export function* updateRuleImplementationRequestSaga() {
33
33
  yield takeLatest(
34
34
  updateRuleImplementation.TRIGGER,
35
- updateRuleImplementationSaga
35
+ updateRuleImplementationSaga,
36
36
  );
37
37
  }
@@ -12,7 +12,7 @@ export function* uploadImplementationsSaga({ payload }) {
12
12
  apiJsonPost,
13
13
  API_RULE_IMPLEMENTATIONS_UPLOAD,
14
14
  body,
15
- UPLOAD_JSON_OPTS
15
+ UPLOAD_JSON_OPTS,
16
16
  );
17
17
  yield put(uploadImplementations.success(data));
18
18
  } catch (error) {
@@ -11,7 +11,7 @@ export function* uploadResultsSaga({ payload }) {
11
11
  apiJsonPost,
12
12
  API_RULE_RESULTS,
13
13
  body,
14
- UPLOAD_JSON_OPTS
14
+ UPLOAD_JSON_OPTS,
15
15
  );
16
16
 
17
17
  yield put(uploadResults.success(data));
@@ -12,7 +12,7 @@ export function* uploadRulesSaga({ payload }) {
12
12
  apiJsonPost,
13
13
  API_RULES_UPLOAD,
14
14
  body,
15
- UPLOAD_JSON_OPTS
15
+ UPLOAD_JSON_OPTS,
16
16
  );
17
17
  yield put(uploadRules.success(data));
18
18
  } catch (error) {
@@ -6,14 +6,14 @@ import {
6
6
  describe("selectors: executionGroupsColumnsSelector", () => {
7
7
  it("returns defaultExecutionGroupsColumns if executionGroupsColumns is not defined", () => {
8
8
  expect(executionGroupsColumnsSelector({})).toBe(
9
- defaultExecutionGroupsColumns
9
+ defaultExecutionGroupsColumns,
10
10
  );
11
11
  });
12
12
 
13
13
  it("returns executionGroupsColumns is defined", () => {
14
14
  const executionGroupsColumns = { foo: "foo" };
15
15
  expect(executionGroupsColumnsSelector({ executionGroupsColumns })).toBe(
16
- executionGroupsColumns
16
+ executionGroupsColumns,
17
17
  );
18
18
  });
19
19
  });
@@ -46,7 +46,7 @@ describe("selectors: getImplementationStructureLinksColumns", () => {
46
46
  it("should return all links", () => {
47
47
  const links = _.flow(
48
48
  getImplementationStructureLinksColumns,
49
- _.map(_.last)
49
+ _.map(_.last),
50
50
  )(state);
51
51
  expect(links).toEqual([
52
52
  ["undefined", [bar]],
@@ -11,7 +11,7 @@ describe("selectors: getRuleImplementationSelectedFilterValues", () => {
11
11
 
12
12
  it("should return the values of the currently selected ruleImplementation filters", () => {
13
13
  expect(getRuleImplementationSelectedFilterValues(state)).toEqual(
14
- foo.values
14
+ foo.values,
15
15
  );
16
16
  });
17
17
  });
@@ -5,7 +5,7 @@ describe("selectors: ruleColumnsSelector", () => {
5
5
  const rulesColumns = [{ name: "test" }];
6
6
  const res = ruleColumnsSelector(
7
7
  { rulesColumns: rulesColumns },
8
- { locale: "es" }
8
+ { locale: "es" },
9
9
  );
10
10
  expect(res).toHaveLength(1);
11
11
  expect(res).toEqual(rulesColumns);
@@ -4,5 +4,5 @@ export const defaultFilters = { "class.raw": ["table"] };
4
4
 
5
5
  export const datasetDefaultFiltersSelector = _.propOr(
6
6
  defaultFilters,
7
- "datasetDefaultFilters"
7
+ "datasetDefaultFilters",
8
8
  );
@@ -37,5 +37,5 @@ export const defaultExecutionGroupsColumns = [
37
37
 
38
38
  export const executionGroupsColumnsSelector = createSelector(
39
39
  _.prop("executionGroupsColumns"),
40
- _.defaultTo(defaultExecutionGroupsColumns)
40
+ _.defaultTo(defaultExecutionGroupsColumns),
41
41
  );
@@ -46,5 +46,5 @@ const getColumns = (state) => state.executionGroupColumns;
46
46
 
47
47
  export const getExecutionGroupColumns = createSelector(
48
48
  [getColumns],
49
- _.defaultTo(defaultExecutionGroupColumns)
49
+ _.defaultTo(defaultExecutionGroupColumns),
50
50
  );
@@ -15,5 +15,5 @@ export const getExecutionQuery = createSelector(
15
15
  return query
16
16
  ? { filters: filtersWithDefaults, query }
17
17
  : { filters: filtersWithDefaults };
18
- }
18
+ },
19
19
  );