@truedat/dq 8.6.7 → 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
@@ -97,7 +97,7 @@ const getAction = (state) =>
97
97
 
98
98
  const getColumns = (state) =>
99
99
  _.defaultTo(defaultImplementationStructureLinksColumns)(
100
- state.implementationStructureLinksColumns
100
+ state.implementationStructureLinksColumns,
101
101
  );
102
102
  const orderedLinks = (links) =>
103
103
  _.sortBy(accentInsensitivePathOrder("current_version.name"))(links);
@@ -124,18 +124,18 @@ const withDeletedAttribute = (columns, tag) =>
124
124
  ? {
125
125
  name: "deleted_at",
126
126
  fieldSelector: _.path(
127
- "data_structure.current_version.deleted_at"
127
+ "data_structure.current_version.deleted_at",
128
128
  ),
129
129
  fieldDecorator: deletedDateDecorator,
130
130
  }
131
- : c
131
+ : c,
132
132
  )(columns)
133
133
  : columns;
134
134
 
135
135
  const mapColumns = (tag, columns, canCreateLink) =>
136
136
  _.flow(
137
137
  (cols) => withActions(cols, canCreateLink),
138
- (cols) => withDeletedAttribute(cols, tag)
138
+ (cols) => withDeletedAttribute(cols, tag),
139
139
  )(columns);
140
140
 
141
141
  const withHeaders = (pair, columns, canCreateLink) => [
@@ -148,8 +148,8 @@ const implementationStructureDeletedLinks = (links, columns, canCreateLink) => {
148
148
  orderedLinks,
149
149
  _.filter(
150
150
  ({ data_structure }) =>
151
- !_.isEmpty(_.get("current_version.deleted_at", data_structure))
152
- )
151
+ !_.isEmpty(_.get("current_version.deleted_at", data_structure)),
152
+ ),
153
153
  )(links);
154
154
  return _.isEmpty(deleted)
155
155
  ? []
@@ -160,12 +160,12 @@ const implementationStructureLinks = (links, columns, canCreateLink) =>
160
160
  _.flow(
161
161
  orderedLinks,
162
162
  _.filter(({ data_structure }) =>
163
- _.isEmpty(_.get("current_version.deleted_at", data_structure))
163
+ _.isEmpty(_.get("current_version.deleted_at", data_structure)),
164
164
  ),
165
165
  _.groupBy("\uffee"),
166
166
  _.toPairs,
167
167
  _.sortBy(([k]) => k),
168
- _.map((pair) => withHeaders(pair, columns, canCreateLink))
168
+ _.map((pair) => withHeaders(pair, columns, canCreateLink)),
169
169
  )(links);
170
170
 
171
171
  export const getImplementationStructureLinksColumns = createSelector(
@@ -176,8 +176,8 @@ export const getImplementationStructureLinksColumns = createSelector(
176
176
  ...implementationStructureDeletedLinks(
177
177
  structureLinks,
178
178
  columns,
179
- canCreateLink
179
+ canCreateLink,
180
180
  ),
181
181
  ];
182
- }
182
+ },
183
183
  );
@@ -11,8 +11,8 @@ export const getDatasetStructures = createSelector(
11
11
  _.prop("dataset"),
12
12
  _.reject(_.propEq("structure.type", "reference_dataset")),
13
13
  _.map(_.path("structure.id")),
14
- _.uniq
15
- )
14
+ _.uniq,
15
+ ),
16
16
  );
17
17
 
18
18
  export const getValidationStructures = createSelector(
@@ -26,29 +26,31 @@ export const getValidationStructures = createSelector(
26
26
  (v) =>
27
27
  v?.operator?.value_type === "field" &&
28
28
  v?.operator?.value_type_filter === "any" &&
29
- v?.structure?.type !== "reference_dataset_field"
29
+ v?.structure?.type !== "reference_dataset_field",
30
30
  ),
31
31
  _.map("value"),
32
32
  _.flatten,
33
33
  _.map("id"),
34
34
  _.reject(_.isNil),
35
- _.uniq
36
- )
35
+ _.uniq,
36
+ ),
37
37
  );
38
38
 
39
39
  export const getStructures = createSelector(
40
40
  [getStructureSiblings, getStructureFields],
41
41
  (structuresSiblings, structuresFields) =>
42
- _.flow(_.concat(structuresSiblings), _.uniq)(structuresFields)
42
+ _.flow(_.concat(structuresSiblings), _.uniq)(structuresFields),
43
43
  );
44
44
  export const getImplementationStructures = createSelector(
45
45
  [getDatasetStructures, getValidationStructures],
46
46
  (datasetStructures, validationStructures) =>
47
- _.flow(_.concat(validationStructures), _.uniq)(datasetStructures)
47
+ _.flow(_.concat(validationStructures), _.uniq)(datasetStructures),
48
48
  );
49
49
 
50
50
  export const getImplementationStructuresLoaded = createSelector(
51
51
  [getImplementationStructures, getStructures],
52
52
  (implementationStructures, structures) =>
53
- _.isEmpty(_.differenceBy(_.toInteger, implementationStructures, structures))
53
+ _.isEmpty(
54
+ _.differenceBy(_.toInteger, implementationStructures, structures),
55
+ ),
54
56
  );
@@ -7,5 +7,5 @@ const getStateImplementationsExecution = (state) =>
7
7
  export const getImplementationsExecution = createSelector(
8
8
  getStateImplementationsExecution,
9
9
  (stateImplementationsExecution) =>
10
- _.defaultTo(true)(stateImplementationsExecution)
10
+ _.defaultTo(true)(stateImplementationsExecution),
11
11
  );
@@ -95,5 +95,5 @@ const getColumns = (state) => state.ruleImplementationToRulesColumns;
95
95
 
96
96
  export const getLinkedImplementationsToRulesColumns = createSelector(
97
97
  [getColumns],
98
- (columns) => _.defaultTo(defaultImplementationToRulesColumns)(columns)
98
+ (columns) => _.defaultTo(defaultImplementationToRulesColumns)(columns),
99
99
  );
@@ -10,6 +10,6 @@ export const getRuleAvailableFilters = createSelector(
10
10
  _.flow(
11
11
  _.omitBy(({ values }) => _.size(values) < 2),
12
12
  _.keys,
13
- _.without(ruleSelectedFilters)
14
- )(ruleFilters)
13
+ _.without(ruleSelectedFilters),
14
+ )(ruleFilters),
15
15
  );
@@ -3,5 +3,5 @@ import { createSelector } from "reselect";
3
3
 
4
4
  export const getRuleFilterTypes = createSelector(
5
5
  _.prop("ruleFilters"),
6
- _.mapValues("type")
6
+ _.mapValues("type"),
7
7
  );
@@ -17,9 +17,9 @@ export const getRuleImplementationAvailableFilters = createSelector(
17
17
  _.stubTrue,
18
18
  ],
19
19
  [_.stubTrue, _.stubFalse],
20
- ])
20
+ ]),
21
21
  ),
22
22
  _.keys,
23
- _.without(implementationSelectedFilters)
24
- )(implementationFilters)
23
+ _.without(implementationSelectedFilters),
24
+ )(implementationFilters),
25
25
  );
@@ -109,5 +109,5 @@ const getColumns = (state) => state.ruleImplementationColumns;
109
109
 
110
110
  export const getRuleImplementationColumns = createSelector(
111
111
  [getColumns],
112
- _.defaultTo(defaultImplementationColumns)
112
+ _.defaultTo(defaultImplementationColumns),
113
113
  );
@@ -3,5 +3,5 @@ import { createSelector } from "reselect";
3
3
 
4
4
  export const getRuleImplementationFilterTypes = createSelector(
5
5
  _.prop("ruleImplementationFilters"),
6
- _.mapValues("type")
6
+ _.mapValues("type"),
7
7
  );
@@ -10,8 +10,8 @@ export const getSystemInRuleDetail = createSelector([getRule], (rule) =>
10
10
  _.map(({ resource_id, name }) => ({
11
11
  value: resource_id,
12
12
  text: name,
13
- }))
14
- )(rule)
13
+ })),
14
+ )(rule),
15
15
  );
16
16
 
17
17
  export const getGroupsInRuleDetail = createSelector([getRule], (rule) =>
@@ -20,9 +20,9 @@ export const getGroupsInRuleDetail = createSelector([getRule], (rule) =>
20
20
  _.propOr([], "group"),
21
21
  _.groupBy("parent_key"),
22
22
  _.mapValues(
23
- _.map(({ resource_id, name }) => ({ value: resource_id, text: name }))
24
- )
25
- )(rule)
23
+ _.map(({ resource_id, name }) => ({ value: resource_id, text: name })),
24
+ ),
25
+ )(rule),
26
26
  );
27
27
 
28
28
  export const getStructuresInRuleDetail = createSelector([getRule], (rule) =>
@@ -31,9 +31,9 @@ export const getStructuresInRuleDetail = createSelector([getRule], (rule) =>
31
31
  _.propOr([], "table"),
32
32
  _.groupBy("parent_key"),
33
33
  _.mapValues(
34
- _.map(({ resource_id, name }) => ({ value: resource_id, text: name }))
35
- )
36
- )(rule)
34
+ _.map(({ resource_id, name }) => ({ value: resource_id, text: name })),
35
+ ),
36
+ )(rule),
37
37
  );
38
38
 
39
39
  export const getFieldsInRuleDetail = createSelector([getRule], (rule) =>
@@ -42,7 +42,7 @@ export const getFieldsInRuleDetail = createSelector([getRule], (rule) =>
42
42
  _.propOr([], "column"),
43
43
  _.groupBy("parent_key"),
44
44
  _.mapValues(
45
- _.map(({ resource_id, name }) => ({ value: resource_id, text: name }))
46
- )
47
- )(rule)
45
+ _.map(({ resource_id, name }) => ({ value: resource_id, text: name })),
46
+ ),
47
+ )(rule),
48
48
  );
@@ -10,6 +10,6 @@ export const getRuleImplementationSelectedFilterActiveValues = createSelector(
10
10
  (implementationSelectedFilter, implementationActiveFilters) =>
11
11
  _.flow(
12
12
  _.propOr([], implementationSelectedFilter),
13
- toFilterValues
14
- )(implementationActiveFilters)
13
+ toFilterValues,
14
+ )(implementationActiveFilters),
15
15
  );
@@ -10,6 +10,6 @@ export const getRuleImplementationSelectedFilterValues = createSelector(
10
10
  (implementationSelectedFilter, implementationFilters) =>
11
11
  _.flow(
12
12
  _.propOr({ values: [] }, implementationSelectedFilter),
13
- formatFilterValues
14
- )(implementationFilters)
13
+ formatFilterValues,
14
+ )(implementationFilters),
15
15
  );
@@ -4,5 +4,5 @@ import { createSelector } from "reselect";
4
4
  export const getRuleImplementationSelectedFilters = createSelector(
5
5
  [_.prop("ruleImplementationActiveFilters")],
6
6
  (ruleImplementationActiveFilters) =>
7
- _.without(["executable"])(_.keys(ruleImplementationActiveFilters))
7
+ _.without(["executable"])(_.keys(ruleImplementationActiveFilters)),
8
8
  );
@@ -5,5 +5,5 @@ import { toFilterValues } from "@truedat/core/services/filters";
5
5
  export const getRuleSelectedFilterActiveValues = createSelector(
6
6
  [_.prop("ruleSelectedFilter"), _.prop("ruleActiveFilters")],
7
7
  (ruleSelectedFilter, ruleActiveFilters) =>
8
- _.flow(_.propOr([], ruleSelectedFilter), toFilterValues)(ruleActiveFilters)
8
+ _.flow(_.propOr([], ruleSelectedFilter), toFilterValues)(ruleActiveFilters),
9
9
  );
@@ -7,6 +7,6 @@ export const getRuleSelectedFilterValues = createSelector(
7
7
  (ruleSelectedFilter, ruleFilters) =>
8
8
  _.flow(
9
9
  _.propOr({ values: [] }, ruleSelectedFilter),
10
- formatFilterValues
11
- )(ruleFilters)
10
+ formatFilterValues,
11
+ )(ruleFilters),
12
12
  );
@@ -3,5 +3,5 @@ import { createSelector } from "reselect";
3
3
 
4
4
  export const getRuleSelectedFilters = createSelector(
5
5
  [_.prop("ruleActiveFilters")],
6
- _.keys
6
+ _.keys,
7
7
  );
@@ -5,5 +5,5 @@ export const defaultSegmentResultsColumns = [];
5
5
 
6
6
  export const getSegmentResultsColumns = createSelector(
7
7
  _.prop("segmentResultsColumns"),
8
- _.defaultTo(defaultSegmentResultsColumns)
8
+ _.defaultTo(defaultSegmentResultsColumns),
9
9
  );
@@ -3,20 +3,20 @@ import { getFieldType } from "@truedat/core/services/fieldType";
3
3
  export const getStructureFields = (parentStructures) =>
4
4
  _.flow(
5
5
  _.filter(_.has("structureFields")),
6
- _.negate(_.isEmpty)
6
+ _.negate(_.isEmpty),
7
7
  )(parentStructures)
8
8
  ? _.flow(
9
9
  _.map((parent) =>
10
10
  _.map((sf) => ({
11
11
  ...sf,
12
12
  label: _.prop("name")(parent),
13
- }))(parent.structureFields)
13
+ }))(parent.structureFields),
14
14
  ),
15
15
  _.flatten,
16
16
  _.uniqBy("data_structure_id"),
17
17
  _.map((field) => ({
18
18
  ...field,
19
19
  field_type: getFieldType(field),
20
- }))
20
+ })),
21
21
  )(parentStructures)
22
22
  : null;
@@ -19,7 +19,7 @@ export const dynamicDecorator = (field) => (
19
19
  <Label key={key}>
20
20
  <FormattedMessage id={`rule.${key}`} />: {value}
21
21
  </Label>
22
- ))
22
+ )),
23
23
  )(field)}
24
24
  </>
25
25
  );
@@ -42,7 +42,7 @@ export const defaultRuleColumns = () => [
42
42
  name: "business_concept",
43
43
  fieldSelector: _.flow(
44
44
  _.path("current_business_concept_version.name"),
45
- _.truncate({})
45
+ _.truncate({}),
46
46
  ),
47
47
  sort: { name: "current_business_concept_version.name.raw" },
48
48
  width: 3,
@@ -84,5 +84,5 @@ export const optionalRuleColumns = [
84
84
  export const ruleColumnsSelector = createSelector(
85
85
  _.prop("rulesColumns"),
86
86
  defaultRuleColumns,
87
- (rulesColumns, defaults) => _.defaultTo(defaults)(rulesColumns)
87
+ (rulesColumns, defaults) => _.defaultTo(defaults)(rulesColumns),
88
88
  );
@@ -5,5 +5,5 @@ export const defaultRuleResultsColumns = [];
5
5
 
6
6
  export const ruleResultsColumnsSelector = createSelector(
7
7
  _.prop("ruleResultsColumns"),
8
- _.defaultTo(defaultRuleResultsColumns)
8
+ _.defaultTo(defaultRuleResultsColumns),
9
9
  );
@@ -32,7 +32,7 @@ describe("services: encodeRawContent", () => {
32
32
  };
33
33
  const ruleImplementation = { foo: "bar", raw_content };
34
34
  expect(encodeRawContent(ruleImplementation)).toStrictEqual(
35
- ruleImplementation
35
+ ruleImplementation,
36
36
  );
37
37
  });
38
38
 
@@ -15,7 +15,7 @@ const encodeProps = (o) =>
15
15
  _.flow(
16
16
  _.pick(["dataset", "population", "validations", "segments"]),
17
17
  _.mapValues(stringToBase64),
18
- _.assign(o)
18
+ _.assign(o),
19
19
  )(o);
20
20
 
21
21
  export const encodeRawContent = (ruleImplementation) =>