@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
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";
|
|
@@ -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
|
});
|
|
@@ -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
|
|
|
@@ -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
|
});
|
|
@@ -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))
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
package/src/sagas/uploadRules.js
CHANGED
|
@@ -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);
|