@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.
- package/package.json +3 -3
- package/src/components/ConceptRules.js +2 -3
- package/src/components/ConditionCell.js +9 -9
- package/src/components/ExecutionForm.js +1 -1
- package/src/components/ExecutionGroup.js +2 -2
- package/src/components/ExecutionGroupContent.js +4 -4
- package/src/components/ImplementationExecutionFilters.js +1 -1
- package/src/components/ImplementationFiltersLoader.js +2 -2
- package/src/components/ImplementationResultBar.js +1 -1
- package/src/components/ImplementationSearchResults.js +7 -7
- package/src/components/ImplementationStructureDelete.js +1 -1
- package/src/components/ImplementationStructuresNew.js +6 -3
- package/src/components/ImplementationSummary.js +2 -2
- package/src/components/Implementations.js +18 -11
- package/src/components/ImplementationsHeader.js +16 -21
- package/src/components/ImplementationsRoutes.js +7 -7
- package/src/components/MoveImplementation.js +1 -1
- package/src/components/NewBasicRuleImplementation.js +1 -1
- package/src/components/NewRuleImplementation.js +44 -44
- package/src/components/QualityEventError.js +11 -7
- package/src/components/RawContent.js +1 -1
- package/src/components/RemediationForm.js +1 -1
- package/src/components/RemediationPlan.js +2 -2
- package/src/components/Rule.js +1 -1
- package/src/components/RuleActions.js +1 -1
- package/src/components/RuleEventDecorator.js +1 -1
- package/src/components/RuleEventRow.js +1 -1
- package/src/components/RuleFilters.js +1 -1
- package/src/components/RuleFiltersLoader.js +1 -1
- package/src/components/RuleFormImplementations.js +1 -1
- package/src/components/RuleImplementationEventRow.js +1 -1
- package/src/components/RuleImplementationHistory.js +1 -1
- package/src/components/RuleImplementationProperties.js +2 -2
- package/src/components/RuleImplementationResults.js +2 -2
- package/src/components/RuleImplementationTabs.js +5 -5
- package/src/components/RuleImplementationsDownload.js +4 -4
- package/src/components/RuleImplementationsDownloadXlsx.js +6 -6
- package/src/components/RuleImplementationsLoader.js +1 -2
- package/src/components/RuleImplementationsTable.js +1 -1
- package/src/components/RuleResultDecorator.js +3 -3
- package/src/components/RuleResultDetails.js +1 -1
- package/src/components/RuleResultRemediationLoader.js +1 -1
- package/src/components/RuleResultSegments.js +3 -3
- package/src/components/RuleResultsTable.js +7 -7
- package/src/components/RuleRoutes.js +3 -3
- package/src/components/RuleSelectedFilters.js +3 -3
- package/src/components/RuleSelector.js +1 -1
- package/src/components/RuleSummary.js +3 -3
- package/src/components/Rules.js +4 -4
- package/src/components/RulesLoader.js +2 -2
- package/src/components/RulesRoutes.js +1 -1
- package/src/components/SimpleRuleImplementationsTable.js +1 -1
- package/src/components/Subscription.js +1 -1
- package/src/components/TaxonomySummary.js +1 -1
- package/src/components/__tests__/ConceptRules.spec.js +2 -2
- package/src/components/__tests__/ExecutionGroup.spec.js +3 -3
- package/src/components/__tests__/ExecutionGroupContent.spec.js +1 -1
- package/src/components/__tests__/ExecutionGroups.spec.js +1 -1
- package/src/components/__tests__/ExecutionGroupsTable.spec.js +1 -1
- package/src/components/__tests__/ImplementationExecutionFilters.spec.js +1 -1
- package/src/components/__tests__/ImplementationExecutions.spec.js +1 -1
- package/src/components/__tests__/ImplementationResultBar.spec.js +6 -6
- package/src/components/__tests__/ImplementationSearchResults.spec.js +3 -3
- package/src/components/__tests__/ImplementationStructureDelete.spec.js +1 -1
- package/src/components/__tests__/ImplementationStructureLink.spec.js +1 -1
- package/src/components/__tests__/ImplementationStructureLinksActions.spec.js +31 -27
- package/src/components/__tests__/ImplementationStructures.spec.js +6 -6
- package/src/components/__tests__/ImplementationStructuresNew.spec.js +2 -2
- package/src/components/__tests__/ImplementationSummary.spec.js +2 -2
- package/src/components/__tests__/Implementations.spec.js +1 -1
- package/src/components/__tests__/ImplementationsRoutes.spec.js +1 -1
- package/src/components/__tests__/ImplementationsUploadButton.spec.js +8 -8
- package/src/components/__tests__/MoveImplementation.spec.js +5 -5
- package/src/components/__tests__/NewBasicRuleImplementation.spec.js +4 -4
- package/src/components/__tests__/NewRuleImplementation.spec.js +14 -14
- package/src/components/__tests__/QualityRoutes.spec.js +1 -1
- package/src/components/__tests__/RemediationForm.spec.js +9 -3
- package/src/components/__tests__/RemediationPlan.spec.js +2 -2
- package/src/components/__tests__/RuleActions.spec.js +1 -1
- package/src/components/__tests__/RuleForm.spec.js +2 -2
- package/src/components/__tests__/RuleFormImplementations.spec.js +3 -3
- package/src/components/__tests__/RuleImplementation.spec.js +2 -2
- package/src/components/__tests__/RuleImplementationProperties.spec.js +3 -3
- package/src/components/__tests__/RuleImplementationResults.spec.js +2 -2
- package/src/components/__tests__/RuleImplementationsActions.spec.js +4 -4
- package/src/components/__tests__/RuleImplementationsLoader.spec.js +1 -1
- package/src/components/__tests__/RuleImplementationsOptions.spec.js +1 -1
- package/src/components/__tests__/RuleImplementationsTable.spec.js +3 -3
- package/src/components/__tests__/RuleResultDecorator.spec.js +15 -6
- package/src/components/__tests__/RuleResultDetails.spec.js +1 -1
- package/src/components/__tests__/RuleResultRemediations.spec.js +1 -1
- package/src/components/__tests__/RuleResultRoutes.spec.js +4 -4
- package/src/components/__tests__/RuleResultRow.spec.js +13 -13
- package/src/components/__tests__/RuleResultSegments.spec.js +1 -1
- package/src/components/__tests__/RuleRoutes.spec.js +1 -1
- package/src/components/__tests__/RuleRow.spec.js +4 -4
- package/src/components/__tests__/RuleSelectionForm.spec.js +5 -5
- package/src/components/__tests__/RuleSummary.spec.js +3 -3
- package/src/components/__tests__/Rules.spec.js +1 -1
- package/src/components/__tests__/RulesActions.spec.js +1 -1
- package/src/components/__tests__/RulesRoutes.spec.js +1 -1
- package/src/components/__tests__/Subscription.spec.js +11 -11
- package/src/components/ruleImplementationForm/DatasetForm.js +7 -7
- package/src/components/ruleImplementationForm/FieldModifier.js +5 -5
- package/src/components/ruleImplementationForm/FieldsGrid.js +2 -2
- package/src/components/ruleImplementationForm/FieldsGroup.js +1 -1
- package/src/components/ruleImplementationForm/FiltersField.js +4 -4
- package/src/components/ruleImplementationForm/FiltersFormGroup.js +3 -3
- package/src/components/ruleImplementationForm/FiltersGrid.js +3 -3
- package/src/components/ruleImplementationForm/FiltersGroup.js +2 -2
- package/src/components/ruleImplementationForm/InformationForm.js +1 -1
- package/src/components/ruleImplementationForm/RuleImplementationBasicForm.js +3 -3
- package/src/components/ruleImplementationForm/RuleImplementationForm.js +15 -11
- package/src/components/ruleImplementationForm/RuleImplementationRawForm.js +5 -5
- package/src/components/ruleImplementationForm/__tests__/FiltersFormGroup.spec.js +1 -1
- package/src/components/ruleImplementationForm/__tests__/FiltersGroup.spec.js +1 -1
- package/src/components/ruleImplementationForm/__tests__/InformationForm.spec.js +2 -2
- package/src/components/ruleImplementationForm/__tests__/LimitsForm.spec.js +12 -12
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationBasicForm.spec.js +13 -13
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationForm.spec.js +2 -2
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationRawForm.spec.js +25 -25
- package/src/components/ruleImplementationForm/__tests__/ValueConditions.spec.js +1 -1
- package/src/components/ruleImplementationForm/operators.js +7 -7
- package/src/hooks/__tests__/useImplementations.spec.js +0 -1
- package/src/hooks/useImplementations.js +5 -5
- package/src/messages/en.js +0 -1
- package/src/messages/es.js +0 -1
- package/src/messages/index.js +1 -1
- package/src/reducers/__tests__/conceptRules.spec.js +3 -3
- package/src/reducers/__tests__/conceptRulesActions.spec.js +6 -6
- package/src/reducers/__tests__/implementationActions.spec.js +2 -2
- package/src/reducers/__tests__/implementationLinks.spec.js +4 -4
- package/src/reducers/__tests__/implementationsActions.spec.js +2 -2
- package/src/reducers/__tests__/previousRuleImplementationQuery.spec.js +6 -6
- package/src/reducers/__tests__/remediation.spec.js +7 -7
- package/src/reducers/__tests__/remediationActions.spec.js +3 -3
- package/src/reducers/__tests__/remediationLoading.spec.js +6 -6
- package/src/reducers/__tests__/resultsUploading.spec.js +2 -2
- package/src/reducers/__tests__/rule.spec.js +1 -1
- package/src/reducers/__tests__/ruleActiveFilters.spec.js +8 -8
- package/src/reducers/__tests__/ruleCount.spec.js +3 -3
- package/src/reducers/__tests__/ruleFiltersLoading.spec.js +2 -2
- package/src/reducers/__tests__/ruleImplementation.spec.js +2 -2
- package/src/reducers/__tests__/ruleImplementationActiveFilters.spec.js +11 -11
- package/src/reducers/__tests__/ruleImplementationCount.spec.js +5 -5
- package/src/reducers/__tests__/ruleImplementationCreating.spec.js +5 -5
- package/src/reducers/__tests__/ruleImplementationFilters.spec.js +4 -4
- package/src/reducers/__tests__/ruleImplementationLoading.spec.js +5 -3
- package/src/reducers/__tests__/ruleImplementationQuery.spec.js +7 -7
- package/src/reducers/__tests__/ruleImplementationRedirect.spec.js +13 -13
- package/src/reducers/__tests__/ruleImplementationSaving.spec.js +4 -2
- package/src/reducers/__tests__/ruleImplementationSelectedFilter.spec.js +7 -7
- package/src/reducers/__tests__/ruleImplementations.spec.js +4 -4
- package/src/reducers/__tests__/ruleImplementationsDownloading.spec.js +4 -4
- package/src/reducers/__tests__/ruleImplementationsLoading.spec.js +5 -5
- package/src/reducers/__tests__/ruleImplementationsPageSize.spec.js +4 -4
- package/src/reducers/__tests__/ruleQuery.spec.js +6 -6
- package/src/reducers/__tests__/ruleRedirect.spec.js +10 -10
- package/src/reducers/__tests__/rules.spec.js +2 -2
- package/src/reducers/__tests__/segmentResult.spec.js +3 -3
- package/src/reducers/__tests__/uploadImplementationsFile.spec.js +2 -2
- package/src/reducers/__tests__/uploadRulesFile.spec.js +2 -2
- package/src/reducers/conceptRulesActions.js +2 -2
- package/src/reducers/dqMessage.js +2 -2
- package/src/reducers/implementationsActions.js +1 -1
- package/src/reducers/previousRuleImplementationQuery.js +2 -2
- package/src/reducers/ruleFilters.js +1 -1
- package/src/reducers/ruleImplementationActiveFilters.js +1 -1
- package/src/reducers/ruleImplementationCount.js +1 -1
- package/src/reducers/ruleImplementationFilters.js +2 -2
- package/src/reducers/ruleImplementationRaw.js +1 -1
- package/src/reducers/ruleImplementationRedirect.js +3 -3
- package/src/reducers/ruleImplementationSelectedFilter.js +1 -1
- package/src/reducers/ruleImplementationsLoading.js +1 -1
- package/src/reducers/ruleImplementationsPageSize.js +1 -1
- package/src/reducers/ruleSelectedFilter.js +1 -1
- package/src/reducers/uploadingImplementationsFile.js +1 -1
- package/src/routines.js +23 -23
- package/src/sagas/__tests__/createExecutionGroup.spec.js +1 -1
- package/src/sagas/__tests__/createImplementationStructure.spec.js +1 -1
- package/src/sagas/__tests__/createRuleImplementation.spec.js +1 -1
- package/src/sagas/__tests__/deleteImplementationStructure.spec.js +1 -1
- package/src/sagas/__tests__/deleteRule.spec.js +1 -3
- package/src/sagas/__tests__/downloadRuleImplementations.spec.js +1 -1
- package/src/sagas/__tests__/fetchConceptRules.spec.js +1 -1
- package/src/sagas/__tests__/fetchRule.spec.js +1 -3
- package/src/sagas/__tests__/fetchRuleFilters.spec.js +5 -5
- package/src/sagas/__tests__/fetchRuleImplementation.spec.js +1 -1
- package/src/sagas/__tests__/fetchRuleImplementations.spec.js +1 -1
- package/src/sagas/__tests__/fetchRules.spec.js +4 -6
- package/src/sagas/__tests__/searchRuleImplementations.spec.js +3 -3
- package/src/sagas/__tests__/updateRule.spec.js +1 -3
- package/src/sagas/__tests__/updateRuleImplementation.spec.js +1 -1
- package/src/sagas/__tests__/uploadImplementations.spec.js +2 -2
- package/src/sagas/createExecutionGroup.js +1 -1
- package/src/sagas/createImplementationStructure.js +1 -1
- package/src/sagas/createRuleImplementation.js +2 -2
- package/src/sagas/deleteImplementationStructure.js +1 -1
- package/src/sagas/downloadRuleImplementations.js +1 -1
- package/src/sagas/downloadRuleImplementationsXlsx.js +1 -1
- package/src/sagas/fetchRuleImplementation.js +1 -1
- package/src/sagas/fetchRuleImplementationFilters.js +1 -1
- package/src/sagas/fetchRuleImplementations.js +2 -2
- package/src/sagas/searchRuleImplementations.js +2 -2
- package/src/sagas/updateRuleImplementation.js +1 -1
- package/src/sagas/uploadImplementations.js +1 -1
- package/src/sagas/uploadResults.js +1 -1
- package/src/sagas/uploadRules.js +1 -1
- package/src/selectors/__tests__/executionGroupsColumnsSelector.spec.js +2 -2
- package/src/selectors/__tests__/getImplementationStructureLinksColumns.spec.js +1 -1
- package/src/selectors/__tests__/getRuleImplementationSelectedFilterValues.spec.js +1 -1
- package/src/selectors/__tests__/ruleColumnsSelector.spec.js +1 -1
- package/src/selectors/datasetDefaultFiltersSelector.js +1 -1
- package/src/selectors/executionGroupsColumnsSelector.js +1 -1
- package/src/selectors/getExecutionGroupColumns.js +1 -1
- package/src/selectors/getExecutionQuery.js +1 -1
- package/src/selectors/getImplementationStructureLinksColumns.js +10 -10
- package/src/selectors/getImplementationStructures.js +10 -8
- package/src/selectors/getImplementationsExecution.js +1 -1
- package/src/selectors/getLinkedImplementationsToRulesColumns.js +1 -1
- package/src/selectors/getRuleAvailableFilters.js +2 -2
- package/src/selectors/getRuleFilterTypes.js +1 -1
- package/src/selectors/getRuleImplementationAvailableFilters.js +3 -3
- package/src/selectors/getRuleImplementationColumns.js +1 -1
- package/src/selectors/getRuleImplementationFilterTypes.js +1 -1
- package/src/selectors/getRuleImplementationForm.js +11 -11
- package/src/selectors/getRuleImplementationSelectedFilterActiveValues.js +2 -2
- package/src/selectors/getRuleImplementationSelectedFilterValues.js +2 -2
- package/src/selectors/getRuleImplementationSelectedFilters.js +1 -1
- package/src/selectors/getRuleSelectedFilterActiveValues.js +1 -1
- package/src/selectors/getRuleSelectedFilterValues.js +2 -2
- package/src/selectors/getRuleSelectedFilters.js +1 -1
- package/src/selectors/getSegmentResultsColumns.js +1 -1
- package/src/selectors/getStructureFields.js +3 -3
- package/src/selectors/ruleColumnsSelector.js +3 -3
- package/src/selectors/ruleResultsColumnsSelector.js +1 -1
- package/src/services/__tests__/encodeRawContent.spec.js +1 -1
- 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(
|
|
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
|
);
|
|
@@ -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
|
);
|
|
@@ -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
|
);
|
|
@@ -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
|
);
|