@truedat/dd 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/BucketView.js +2 -2
- package/src/components/CatalogCustomViewCards.js +1 -1
- package/src/components/DictionaryRoutes.js +3 -3
- package/src/components/FilteredNav.js +3 -3
- package/src/components/Grant.js +4 -4
- package/src/components/GrantApprovalRule.js +1 -1
- package/src/components/GrantApprovalRuleConditions.js +1 -1
- package/src/components/GrantApprovalRuleDeleteButton.js +1 -1
- package/src/components/GrantApprovalRuleEdit.js +1 -1
- package/src/components/GrantApprovalRuleForm.js +6 -6
- package/src/components/GrantApprovalRules.js +1 -1
- package/src/components/GrantFilters.js +1 -1
- package/src/components/GrantFiltersLoader.js +1 -1
- package/src/components/GrantRemovalDirectButton.js +1 -1
- package/src/components/GrantRemovalWorkflow.js +2 -2
- package/src/components/GrantRemovalWorkflowDropdown.js +1 -1
- package/src/components/GrantRequest.js +3 -3
- package/src/components/GrantRequestApprovalForm.js +2 -2
- package/src/components/GrantRequestApprovalResults.js +1 -1
- package/src/components/GrantRequestBulkActions.js +2 -2
- package/src/components/GrantRequestBulkRoleSelector.js +1 -1
- package/src/components/GrantRequestCartResult.js +13 -3
- package/src/components/GrantRequestSummary.js +1 -1
- package/src/components/GrantRequests.js +2 -2
- package/src/components/GrantRequestsSearchResults.js +7 -7
- package/src/components/GrantRoutes.js +3 -9
- package/src/components/Grants.js +14 -4
- package/src/components/GrantsDownloadButton.js +1 -1
- package/src/components/GrantsLabelResults.js +2 -5
- package/src/components/GrantsLoader.js +2 -2
- package/src/components/GrantsTable.js +3 -8
- package/src/components/GraphLoader.js +1 -1
- package/src/components/LineageContextMenu.js +1 -1
- package/src/components/LineageDownloadButton.js +2 -2
- package/src/components/LineageEventsTable.js +1 -1
- package/src/components/LineageGraph.js +7 -6
- package/src/components/LineageGroup.js +2 -7
- package/src/components/LinkLabelsSelector.js +1 -1
- package/src/components/MyGrantRequests.js +1 -1
- package/src/components/ProfileGroup.js +2 -2
- package/src/components/ReferenceDatasetActions.js +1 -1
- package/src/components/ReferenceDatasetCreate.js +1 -1
- package/src/components/ReferenceDatasetDetail.js +1 -1
- package/src/components/ReferenceDatasetFieldSelector.js +5 -5
- package/src/components/ReferenceDatasetForm.js +3 -3
- package/src/components/ReferenceDatasetSelectorInputField.js +3 -3
- package/src/components/ReferenceDatasetsTable.js +1 -1
- package/src/components/StructureChildrenRelations.js +1 -1
- package/src/components/StructureConfidentialButton.js +1 -1
- package/src/components/StructureCrumbs.js +3 -3
- package/src/components/StructureDeleteButton.js +1 -1
- package/src/components/StructureFields.js +3 -3
- package/src/components/StructureFieldsDropdown.js +10 -10
- package/src/components/StructureGrantCart.js +3 -3
- package/src/components/StructureGrantCartCheckout.js +9 -4
- package/src/components/StructureGrantCartInformation.js +2 -7
- package/src/components/StructureGrantListButton.js +5 -5
- package/src/components/StructureGrantRequestAddCart.js +1 -1
- package/src/components/StructureGrantSummaryButton.js +2 -2
- package/src/components/StructureGrants.js +2 -2
- package/src/components/StructureItem.js +4 -4
- package/src/components/StructureItemRoot.js +1 -1
- package/src/components/StructureLoader.js +1 -2
- package/src/components/StructureMetadata.js +23 -17
- package/src/components/StructureNav.js +1 -1
- package/src/components/StructureNavClassified.js +1 -1
- package/src/components/StructureNoteActions.js +1 -1
- package/src/components/StructureNotes.js +3 -3
- package/src/components/StructureNotesEdit.js +4 -4
- package/src/components/StructureProfileButton.js +1 -1
- package/src/components/StructureProperties.js +1 -1
- package/src/components/StructureSelector.js +3 -3
- package/src/components/StructureSelectorInputFieldJoin.js +2 -2
- package/src/components/StructureStructureForm.js +2 -2
- package/src/components/StructureStructureLinks.js +5 -5
- package/src/components/StructureTabPane.js +5 -5
- package/src/components/StructureTabPaneRoutes.js +92 -80
- package/src/components/StructureTabRoutes.js +30 -8
- package/src/components/StructureTabs.js +17 -16
- package/src/components/StructureTagForm.js +2 -2
- package/src/components/StructureTags.js +1 -1
- package/src/components/StructureTypeForm.js +3 -3
- package/src/components/StructureTypeLoader.js +1 -1
- package/src/components/StructureTypesLoader.js +1 -1
- package/src/components/StructureTypesRoutes.js +1 -1
- package/src/components/StructureVersions.js +17 -16
- package/src/components/StructureView.js +1 -1
- package/src/components/StructuresBulkUpdate.js +4 -4
- package/src/components/StructuresDomainsUploadOption.js +1 -1
- package/src/components/StructuresDownloadOption.js +1 -1
- package/src/components/StructuresGrantRequestView.js +1 -1
- package/src/components/StructuresLoader.js +1 -1
- package/src/components/StructuresRoutes.js +2 -2
- package/src/components/StructuresTable.js +4 -4
- package/src/components/StructuresUpdateOption.js +3 -3
- package/src/components/StructuresUploadEventsTable.js +9 -9
- package/src/components/StructuresUploadOption.js +14 -14
- package/src/components/StructuresView.js +1 -1
- package/src/components/SystemCards.js +7 -7
- package/src/components/SystemForm.js +2 -2
- package/src/components/SystemLoader.js +1 -1
- package/src/components/SystemStructures.js +2 -2
- package/src/components/SystemView.js +3 -3
- package/src/components/Task.js +6 -6
- package/src/components/Tasks.js +1 -1
- package/src/components/ValueConditionStructure.js +2 -2
- package/src/components/__tests__/BucketView.spec.js +2 -2
- package/src/components/__tests__/CatalogCustomViewCards.spec.js +1 -1
- package/src/components/__tests__/CatalogViewConfigForm.spec.js +2 -2
- package/src/components/__tests__/CatalogViewConfigs.spec.js +2 -2
- package/src/components/__tests__/DictionaryRoutes.spec.js +7 -3
- package/src/components/__tests__/EditDomainForm.spec.js +3 -3
- package/src/components/__tests__/FilteredNav.spec.js +4 -4
- package/src/components/__tests__/Grant.spec.js +4 -4
- package/src/components/__tests__/GrantApprovalRuleConditions.spec.js +6 -6
- package/src/components/__tests__/GrantApprovalRuleDeleteButton.spec.js +2 -2
- package/src/components/__tests__/GrantApprovalRuleForm.spec.js +9 -7
- package/src/components/__tests__/GrantApprovalRules.spec.js +3 -3
- package/src/components/__tests__/GrantRemoval.spec.js +4 -4
- package/src/components/__tests__/GrantRemovalDirectButton.spec.js +8 -8
- package/src/components/__tests__/GrantRemovalWorkflow.spec.js +8 -8
- package/src/components/__tests__/GrantRequest.spec.js +1 -1
- package/src/components/__tests__/GrantRequestApprovalForm.spec.js +6 -6
- package/src/components/__tests__/GrantRequestApprovalPopup.spec.js +1 -1
- package/src/components/__tests__/GrantRequestBulkActions.spec.js +8 -8
- package/src/components/__tests__/GrantRequestBulkApprovalForm.spec.js +2 -2
- package/src/components/__tests__/GrantRequestBulkRoleSelector.spec.js +2 -2
- package/src/components/__tests__/GrantRequestCartResult.spec.js +13 -3
- package/src/components/__tests__/GrantRequestHeader.spec.js +2 -2
- package/src/components/__tests__/GrantRequestRow.spec.js +4 -4
- package/src/components/__tests__/GrantRequestSummary.spec.js +1 -1
- package/src/components/__tests__/GrantRequests.spec.js +2 -2
- package/src/components/__tests__/GrantRequestsLabelResults.spec.js +3 -3
- package/src/components/__tests__/GrantRequestsSearchResults.spec.js +2 -2
- package/src/components/__tests__/GrantRequestsTable.spec.js +1 -1
- package/src/components/__tests__/GrantRoutes.spec.js +16 -16
- package/src/components/__tests__/GrantsDownloadButton.spec.js +68 -40
- package/src/components/__tests__/GrantsLabelResults.spec.js +2 -2
- package/src/components/__tests__/GrantsLoader.spec.js +1 -1
- package/src/components/__tests__/GrantsTable.spec.js +4 -4
- package/src/components/__tests__/LineageForm.spec.js +5 -5
- package/src/components/__tests__/LineageGroup.spec.js +6 -6
- package/src/components/__tests__/LineageResource.spec.js +5 -5
- package/src/components/__tests__/LineageRoutes.spec.js +6 -6
- package/src/components/__tests__/PendingStructureNoteRow.spec.js +4 -4
- package/src/components/__tests__/PendingStructureNotes.spec.js +1 -1
- package/src/components/__tests__/PendingStructureNotesLabelResults.spec.js +1 -1
- package/src/components/__tests__/PendingStructureNotesPagination.spec.js +1 -1
- package/src/components/__tests__/PendingStructureNotesTable.spec.js +2 -2
- package/src/components/__tests__/ProfileExecution.spec.js +2 -2
- package/src/components/__tests__/ProfileGroup.spec.js +2 -2
- package/src/components/__tests__/ReferenceDataset.spec.js +7 -5
- package/src/components/__tests__/ReferenceDatasetCreate.spec.js +1 -1
- package/src/components/__tests__/ReferenceDatasetDetail.spec.js +1 -1
- package/src/components/__tests__/ReferenceDatasetFieldSelector.spec.js +9 -9
- package/src/components/__tests__/ReferenceDatasetForm.spec.js +9 -7
- package/src/components/__tests__/ReferenceDatasetRoutes.spec.js +1 -1
- package/src/components/__tests__/StructureFieldRow.spec.js +3 -3
- package/src/components/__tests__/StructureFieldsDropdown.spec.js +5 -5
- package/src/components/__tests__/StructureGrantCartCheckout.spec.js +2 -2
- package/src/components/__tests__/StructureGrantCartInformation.spec.js +1 -1
- package/src/components/__tests__/StructureGrantCartUserSelector.spec.js +4 -4
- package/src/components/__tests__/StructureGrantDropdown.spec.js +3 -3
- package/src/components/__tests__/StructureGrantListButton.spec.js +4 -4
- package/src/components/__tests__/StructureGrantSummaryButton.spec.js +5 -5
- package/src/components/__tests__/StructureItem.spec.js +3 -3
- package/src/components/__tests__/StructureMetadata.spec.js +2 -4
- package/src/components/__tests__/StructureNavClassified.spec.js +1 -1
- package/src/components/__tests__/StructureNoteActions.spec.js +17 -15
- package/src/components/__tests__/StructureNoteLink.spec.js +8 -9
- package/src/components/__tests__/StructureNotes.spec.js +3 -3
- package/src/components/__tests__/StructureNotesDownloadButton.spec.js +15 -15
- package/src/components/__tests__/StructureNotesEdit.spec.js +1 -1
- package/src/components/__tests__/StructureRelationRow.spec.js +2 -2
- package/src/components/__tests__/StructureRelations.spec.js +2 -2
- package/src/components/__tests__/StructureRow.spec.js +2 -2
- package/src/components/__tests__/StructureSelectorInputField.spec.js +2 -2
- package/src/components/__tests__/StructureSelectorInputFieldJoin.spec.js +1 -1
- package/src/components/__tests__/StructureStructureForm.spec.js +1 -1
- package/src/components/__tests__/StructureStructureLinks.spec.js +15 -15
- package/src/components/__tests__/StructureSummary.spec.js +1 -1
- package/src/components/__tests__/StructureTabPane.spec.js +10 -12
- package/src/components/__tests__/StructureTabRoutes.spec.js +1 -1
- package/src/components/__tests__/StructureTabs.spec.js +24 -8
- package/src/components/__tests__/StructureTag.spec.js +11 -11
- package/src/components/__tests__/StructureTagForm.spec.js +17 -17
- package/src/components/__tests__/StructureTypesRoutes.spec.js +4 -4
- package/src/components/__tests__/StructureVersions.spec.js +0 -1
- package/src/components/__tests__/StructuresBulkUpdate.spec.js +3 -3
- package/src/components/__tests__/StructuresDownloadOption.spec.js +3 -3
- package/src/components/__tests__/StructuresEditableDownloadOption.spec.js +2 -2
- package/src/components/__tests__/StructuresGrantRequestView.spec.js +2 -2
- package/src/components/__tests__/StructuresLabelResults.spec.js +1 -1
- package/src/components/__tests__/StructuresLoader.spec.js +1 -1
- package/src/components/__tests__/StructuresOptions.spec.js +15 -9
- package/src/components/__tests__/StructuresRoutes.spec.js +1 -1
- package/src/components/__tests__/StructuresSearchResults.spec.js +2 -2
- package/src/components/__tests__/StructuresTable.spec.js +5 -5
- package/src/components/__tests__/StructuresUpdateOption.spec.js +2 -2
- package/src/components/__tests__/StructuresUploadOption.spec.js +2 -2
- package/src/components/__tests__/StructuresView.spec.js +6 -6
- package/src/components/__tests__/SystemCards.spec.js +2 -2
- package/src/components/__tests__/SystemFilteredNav.spec.js +1 -1
- package/src/components/__tests__/SystemStructuresLoader.spec.js +1 -1
- package/src/components/__tests__/SystemsRoutes.spec.js +1 -1
- package/src/components/__tests__/TagForm.spec.js +7 -5
- package/src/components/__tests__/TagsRoutes.spec.js +1 -1
- package/src/components/__tests__/Tasks.spec.js +9 -9
- package/src/components/__tests__/TasksRoutes.spec.js +1 -1
- package/src/components/__tests__/ValueConditionStructure.spec.js +2 -2
- package/src/hooks/useBucketPaths.js +1 -1
- package/src/hooks/useBucketStructures.js +1 -1
- package/src/hooks/useCustomTabs.js +1 -1
- package/src/hooks/useGrant.js +7 -3
- package/src/hooks/useGrantRequest.js +4 -4
- package/src/hooks/useStructures.js +4 -5
- package/src/hooks/useTemplatesByIds.js +10 -5
- package/src/messages/en.js +1 -2
- package/src/messages/es.js +1 -2
- package/src/messages/index.js +1 -1
- package/src/reducers/__tests__/bulkUpdateStructuresLoading.spec.js +5 -5
- package/src/reducers/__tests__/creatingGrantRequestApproval.spec.js +3 -3
- package/src/reducers/__tests__/csvGraphDownloading.spec.js +4 -4
- package/src/reducers/__tests__/ddMessage.spec.js +3 -3
- package/src/reducers/__tests__/grantFilters.spec.js +1 -1
- package/src/reducers/__tests__/grantQuery.spec.js +6 -6
- package/src/reducers/__tests__/grantRequests.spec.js +2 -2
- package/src/reducers/__tests__/grantRequestsCart.spec.js +31 -31
- package/src/reducers/__tests__/grantRequestsLoading.spec.js +3 -3
- package/src/reducers/__tests__/grantRequestsQuery.spec.js +2 -2
- package/src/reducers/__tests__/grants.spec.js +2 -2
- package/src/reducers/__tests__/graph.spec.js +1 -1
- package/src/reducers/__tests__/graphLoading.spec.js +6 -4
- package/src/reducers/__tests__/graphRedirect.spec.js +11 -7
- package/src/reducers/__tests__/lineageEventsLoading.spec.js +2 -2
- package/src/reducers/__tests__/lineageQuery.spec.js +6 -6
- package/src/reducers/__tests__/nodes.spec.js +1 -1
- package/src/reducers/__tests__/nodesLoading.spec.js +2 -2
- package/src/reducers/__tests__/profileExecution.spec.js +6 -6
- package/src/reducers/__tests__/profileExecutionLoading.spec.js +5 -3
- package/src/reducers/__tests__/profileGroup.spec.js +12 -12
- package/src/reducers/__tests__/profileGroupLoading.spec.js +6 -6
- package/src/reducers/__tests__/referenceDatasetSaving.spec.js +8 -4
- package/src/reducers/__tests__/selectedGroups.spec.js +2 -2
- package/src/reducers/__tests__/selectedNode.spec.js +5 -5
- package/src/reducers/__tests__/selectedResources.spec.js +5 -5
- package/src/reducers/__tests__/selectedUserSearchFilter.spec.js +3 -3
- package/src/reducers/__tests__/structure.spec.js +2 -2
- package/src/reducers/__tests__/structureActions.spec.js +4 -4
- package/src/reducers/__tests__/structureAncestry.spec.js +6 -6
- package/src/reducers/__tests__/structureChildren.spec.js +2 -2
- package/src/reducers/__tests__/structureFields.spec.js +5 -5
- package/src/reducers/__tests__/structureImpactGraph.spec.js +6 -6
- package/src/reducers/__tests__/structureImpactId.spec.js +7 -7
- package/src/reducers/__tests__/structureLineageGraph.spec.js +7 -7
- package/src/reducers/__tests__/structureLineageId.spec.js +7 -7
- package/src/reducers/__tests__/structureLinks.spec.js +6 -6
- package/src/reducers/__tests__/structureLoading.spec.js +2 -2
- package/src/reducers/__tests__/structureNotes.spec.js +1 -1
- package/src/reducers/__tests__/structureParents.spec.js +2 -2
- package/src/reducers/__tests__/structureProfile.spec.js +9 -6
- package/src/reducers/__tests__/structureQuery.spec.js +4 -4
- package/src/reducers/__tests__/structureRedirect.spec.js +9 -9
- package/src/reducers/__tests__/structureRelations.spec.js +4 -4
- package/src/reducers/__tests__/structureSiblings.spec.js +2 -2
- package/src/reducers/__tests__/structureSystem.spec.js +3 -3
- package/src/reducers/__tests__/structureTagSaving.spec.js +2 -2
- package/src/reducers/__tests__/structureType.spec.js +2 -2
- package/src/reducers/__tests__/structureTypeLoading.spec.js +6 -6
- package/src/reducers/__tests__/structureVersion.spec.js +4 -4
- package/src/reducers/__tests__/structureVersions.spec.js +9 -5
- package/src/reducers/__tests__/structures.spec.js +3 -3
- package/src/reducers/__tests__/structuresAliasNameMode.spec.js +5 -5
- package/src/reducers/__tests__/structuresUploadEvents.spec.js +1 -1
- package/src/reducers/__tests__/structuresUploadEventsLoading.spec.js +4 -4
- package/src/reducers/__tests__/system.spec.js +2 -2
- package/src/reducers/__tests__/systemId.spec.js +3 -3
- package/src/reducers/__tests__/systemStructures.spec.js +3 -3
- package/src/reducers/__tests__/systemStructuresLoading.spec.js +2 -2
- package/src/reducers/ddMessage.js +1 -1
- package/src/reducers/grantFilters.js +1 -1
- package/src/reducers/grantRequestsCart.js +16 -13
- package/src/reducers/grantSelectedFilter.js +1 -1
- package/src/reducers/profileGroup.js +1 -1
- package/src/reducers/selectedResources.js +1 -1
- package/src/reducers/selectedUserSearchFilter.js +1 -1
- package/src/reducers/structure.js +1 -1
- package/src/reducers/structureImpactGraph.js +1 -1
- package/src/reducers/structureLineageGraph.js +1 -1
- package/src/reducers/structureRedirect.js +1 -1
- package/src/reducers/structuresAliasNameMode.js +1 -1
- package/src/reducers/structuresUploadEvents.js +1 -1
- package/src/reducers/systemId.js +1 -1
- package/src/reducers/userSearchFilters.js +1 -1
- package/src/routines.js +31 -32
- package/src/sagas/__tests__/createGrantApprovalRule.spec.js +1 -1
- package/src/sagas/__tests__/createGrantRequestApproval.spec.js +1 -1
- package/src/sagas/__tests__/createGrantRequestStatus.spec.js +1 -1
- package/src/sagas/__tests__/createGraph.spec.js +5 -5
- package/src/sagas/__tests__/createProfileGroup.spec.js +10 -10
- package/src/sagas/__tests__/deleteGrantApprovalRule.spec.js +1 -1
- package/src/sagas/__tests__/deleteStructureStructureLink.spec.js +1 -1
- package/src/sagas/__tests__/doStructureNoteAction.spec.js +6 -6
- package/src/sagas/__tests__/downloadCsvGraph.spec.js +2 -2
- package/src/sagas/__tests__/fetchGrantFilters.spec.js +1 -1
- package/src/sagas/__tests__/fetchGrantRequestsFilters.spec.js +3 -3
- package/src/sagas/__tests__/fetchProfileExecution.spec.js +3 -3
- package/src/sagas/__tests__/fetchProfileGroup.spec.js +6 -6
- package/src/sagas/__tests__/fetchStructureNotes.spec.js +3 -3
- package/src/sagas/__tests__/fetchStructures.spec.js +2 -2
- package/src/sagas/__tests__/fetchStructuresUploadEvents.spec.js +1 -1
- package/src/sagas/__tests__/fetchSystemStructures.spec.js +4 -4
- package/src/sagas/__tests__/requestGrantRemoval.spec.js +2 -2
- package/src/sagas/__tests__/updateGrantApprovalRule.spec.js +1 -1
- package/src/sagas/__tests__/updateStructure.spec.js +1 -1
- package/src/sagas/__tests__/uploadStructuresDomains.spec.js +3 -3
- package/src/sagas/bulkUpdateStructures.js +1 -1
- package/src/sagas/createGrantApprovalRule.js +1 -1
- package/src/sagas/createGrantRequestApproval.js +1 -1
- package/src/sagas/createGrantRequestStatus.js +2 -2
- package/src/sagas/createGraph.js +3 -3
- package/src/sagas/createProfileGroup.js +1 -1
- package/src/sagas/createSystem.js +2 -2
- package/src/sagas/deleteCatalogViewConfig.js +1 -1
- package/src/sagas/deleteGrantApprovalRule.js +1 -1
- package/src/sagas/deleteStructureStructureLink.js +1 -1
- package/src/sagas/doStructureNoteAction.js +9 -4
- package/src/sagas/downloadCsvGraph.js +2 -2
- package/src/sagas/downloadReferenceDataset.js +1 -1
- package/src/sagas/fetchGrantRequestsFilters.js +1 -1
- package/src/sagas/fetchGraph.js +1 -1
- package/src/sagas/fetchStructuresUploadEvents.js +1 -1
- package/src/sagas/graph/polling.js +4 -4
- package/src/sagas/linkStructureToStructure.js +2 -2
- package/src/sagas/requestGrantRemoval.js +1 -1
- package/src/sagas/updateGrantApprovalRule.js +1 -1
- package/src/sagas/updateStructure.js +1 -1
- package/src/sagas/uploadStructuresDomains.js +2 -2
- package/src/sagas/upsertCatalogViewConfig.js +1 -1
- package/src/selectors/__tests__/getActiveTab.spec.js +99 -28
- package/src/selectors/__tests__/getBusinessConceptsLinksToStructuresColumnsSelector.spec.js +1 -1
- package/src/selectors/__tests__/getGrantRequestsColumns.spec.js +2 -2
- package/src/selectors/__tests__/getGrantRequestsSearchColumns.spec.js +1 -1
- package/src/selectors/__tests__/getGrantsColumns.spec.js +4 -4
- package/src/selectors/__tests__/getParsedEvents.spec.js +1 -1
- package/src/selectors/__tests__/getSortedRelations.spec.js +5 -5
- package/src/selectors/__tests__/getStructureFieldColumns.spec.js +1 -1
- package/src/selectors/__tests__/getStructureRelations.spec.js +1 -1
- package/src/selectors/__tests__/getTabVisibility.spec.js +38 -28
- package/src/selectors/__tests__/messages.spec.js +4 -4
- package/src/selectors/getActiveTab.js +16 -4
- package/src/selectors/getBusinessConceptsLinksToStructuresColumnsSelector.js +1 -1
- package/src/selectors/getGrantAvailableFilters.js +2 -2
- package/src/selectors/getGrantRequestTemplate.js +1 -1
- package/src/selectors/getGrantRequests.js +2 -2
- package/src/selectors/getGrantRequestsColumns.js +6 -6
- package/src/selectors/getGrantRequestsQuery.js +1 -1
- package/src/selectors/getGrantRequestsSearchColumns.js +2 -2
- package/src/selectors/getGrantSelectedFilters.js +1 -1
- package/src/selectors/getGrantsColumns.js +5 -5
- package/src/selectors/getLineageLevels.js +1 -1
- package/src/selectors/getLinkedImplementationsToStructuresColumns.js +1 -1
- package/src/selectors/getRelationSortingCriteria.js +1 -1
- package/src/selectors/getSortedRelations.js +5 -5
- package/src/selectors/getSortedStructureNotes.js +4 -4
- package/src/selectors/getStructureDeletedAt.js +2 -2
- package/src/selectors/getStructureFieldColumns.js +1 -1
- package/src/selectors/getStructureLinks.js +1 -1
- package/src/selectors/getStructureParent.js +2 -2
- package/src/selectors/getStructureProperties.js +1 -1
- package/src/selectors/getStructureRelations.js +4 -4
- package/src/selectors/getStructureSortingCriteria.js +1 -1
- package/src/selectors/getStructureUpdatedAt.js +1 -1
- package/src/selectors/getStructuresFields.js +5 -5
- package/src/selectors/getStructuresUploadEventColumns.js +1 -1
- package/src/selectors/getSystem.js +1 -1
- package/src/selectors/getSystemTemplate.js +1 -1
- package/src/selectors/getTabVisibility.js +2 -2
- package/src/selectors/groupOptionsSelector.js +2 -2
- package/src/selectors/leafClassesSelector.js +1 -1
- package/src/selectors/messages.js +1 -1
- package/src/selectors/metadataViewsSelector.js +6 -6
- package/src/selectors/resourceOptionsSelector.js +2 -2
- package/src/selectors/structureColumnsSelector.js +2 -2
- package/src/selectors/structureNotesColumnsSelector.js +1 -1
- package/src/selectors/templateNamesSelector.js +1 -1
- package/src/selectors/utils/decorators.js +32 -20
|
@@ -12,7 +12,7 @@ describe("reducers: structuresUploadEventsLoading", () => {
|
|
|
12
12
|
expect(
|
|
13
13
|
structuresUploadEventsLoading(fooState, {
|
|
14
14
|
type: fetchStructuresUploadEvents.REQUEST,
|
|
15
|
-
})
|
|
15
|
+
}),
|
|
16
16
|
).toBe(true);
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ describe("reducers: structuresUploadEventsLoading", () => {
|
|
|
20
20
|
expect(
|
|
21
21
|
structuresUploadEventsLoading(fooState, {
|
|
22
22
|
type: fetchStructuresUploadEvents.SUCCESS,
|
|
23
|
-
})
|
|
23
|
+
}),
|
|
24
24
|
).toBe(false);
|
|
25
25
|
});
|
|
26
26
|
|
|
@@ -28,13 +28,13 @@ describe("reducers: structuresUploadEventsLoading", () => {
|
|
|
28
28
|
expect(
|
|
29
29
|
structuresUploadEventsLoading(fooState, {
|
|
30
30
|
type: fetchStructuresUploadEvents.FAILURE,
|
|
31
|
-
})
|
|
31
|
+
}),
|
|
32
32
|
).toBe(false);
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
it("should ignore unhandled actions", () => {
|
|
36
36
|
expect(structuresUploadEventsLoading(fooState, { type: "FOO" })).toBe(
|
|
37
|
-
fooState
|
|
37
|
+
fooState,
|
|
38
38
|
);
|
|
39
39
|
});
|
|
40
40
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { fetchSystemStructures } from "../../routines";
|
|
2
1
|
import { clearSystems } from "@truedat/core/routines";
|
|
2
|
+
import { fetchSystemStructures } from "../../routines";
|
|
3
3
|
import { systemId } from "..";
|
|
4
4
|
|
|
5
5
|
const fooState = { foo: "bar" };
|
|
@@ -13,7 +13,7 @@ describe("reducers: systemId", () => {
|
|
|
13
13
|
|
|
14
14
|
it("should handle the clearSystems.TRIGGER action", () => {
|
|
15
15
|
expect(systemId(fooState, { type: clearSystems.TRIGGER })).toEqual(
|
|
16
|
-
initialState
|
|
16
|
+
initialState,
|
|
17
17
|
);
|
|
18
18
|
});
|
|
19
19
|
|
|
@@ -22,7 +22,7 @@ describe("reducers: systemId", () => {
|
|
|
22
22
|
const payload = { id };
|
|
23
23
|
|
|
24
24
|
expect(
|
|
25
|
-
systemId(fooState, { type: fetchSystemStructures.TRIGGER, payload })
|
|
25
|
+
systemId(fooState, { type: fetchSystemStructures.TRIGGER, payload }),
|
|
26
26
|
).toEqual(123);
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -13,7 +13,7 @@ describe("reducers: systemStructures", () => {
|
|
|
13
13
|
it("should handle the fetchSystemStructures.SUCCESS action", () => {
|
|
14
14
|
const someStructures = [
|
|
15
15
|
{ id: 1, name: "Structure 1", description: "Desc 1" },
|
|
16
|
-
{ id: 2, name: "Structure 2", description: "Desc 2" }
|
|
16
|
+
{ id: 2, name: "Structure 2", description: "Desc 2" },
|
|
17
17
|
];
|
|
18
18
|
|
|
19
19
|
const data = { data: someStructures };
|
|
@@ -21,8 +21,8 @@ describe("reducers: systemStructures", () => {
|
|
|
21
21
|
expect(
|
|
22
22
|
systemStructures(fooState, {
|
|
23
23
|
type: fetchSystemStructures.SUCCESS,
|
|
24
|
-
payload: { data }
|
|
25
|
-
})
|
|
24
|
+
payload: { data },
|
|
25
|
+
}),
|
|
26
26
|
).toMatchObject(someStructures);
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -10,13 +10,13 @@ describe("reducers: systemStructuresLoading", () => {
|
|
|
10
10
|
|
|
11
11
|
it("should be true after receiving the fetchSystemStructures.TRIGGER action", () => {
|
|
12
12
|
expect(
|
|
13
|
-
systemStructuresLoading(false, { type: fetchSystemStructures.TRIGGER })
|
|
13
|
+
systemStructuresLoading(false, { type: fetchSystemStructures.TRIGGER }),
|
|
14
14
|
).toBe(true);
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
it("should be false after receiving the fetchSystemStructures.FULFILL action", () => {
|
|
18
18
|
expect(
|
|
19
|
-
systemStructuresLoading(true, { type: fetchSystemStructures.FULFILL })
|
|
19
|
+
systemStructuresLoading(true, { type: fetchSystemStructures.FULFILL }),
|
|
20
20
|
).toBe(false);
|
|
21
21
|
});
|
|
22
22
|
|
|
@@ -10,7 +10,7 @@ const grantFilters = (state = initialState, { type, payload }) => {
|
|
|
10
10
|
case fetchGrantFilters.SUCCESS:
|
|
11
11
|
return _.flow(
|
|
12
12
|
_.propOr({}, "data.data"),
|
|
13
|
-
_.omitBy(_.flow(_.getOr([], "values"), _.isEmpty))
|
|
13
|
+
_.omitBy(_.flow(_.getOr([], "values"), _.isEmpty)),
|
|
14
14
|
)(payload);
|
|
15
15
|
default:
|
|
16
16
|
return state;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import { dropAt, replaceAt } from "@truedat/core/services/arrays";
|
|
3
|
+
import { formatLegacyContent } from "@truedat/df/utils";
|
|
3
4
|
import {
|
|
4
5
|
addGrantRequestToCart,
|
|
5
6
|
checkoutGrantRequest,
|
|
@@ -14,7 +15,6 @@ import {
|
|
|
14
15
|
updateGrantRequestUser,
|
|
15
16
|
updateGrantRequestUserForGroup,
|
|
16
17
|
} from "../routines";
|
|
17
|
-
import { formatLegacyContent } from "@truedat/df/utils";
|
|
18
18
|
|
|
19
19
|
const initialState = {
|
|
20
20
|
structures: [],
|
|
@@ -38,7 +38,10 @@ const setRowValue = ({ index, value, population }) => {
|
|
|
38
38
|
} else return dropAt(index)(population);
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
const modificationGrantContent = (modificationGrant) =>
|
|
41
|
+
const modificationGrantContent = (modificationGrant) =>
|
|
42
|
+
_.isEmpty(modificationGrant)
|
|
43
|
+
? {}
|
|
44
|
+
: formatLegacyContent(modificationGrant.detail);
|
|
42
45
|
|
|
43
46
|
const grantRequestsCart = (state = initialState, { type, payload }) => {
|
|
44
47
|
switch (type) {
|
|
@@ -49,7 +52,7 @@ const grantRequestsCart = (state = initialState, { type, payload }) => {
|
|
|
49
52
|
structures: _.flow(
|
|
50
53
|
_.pathOr([], "structures"),
|
|
51
54
|
inverseConcat(mapPayload(payload)),
|
|
52
|
-
_.uniqBy("id")
|
|
55
|
+
_.uniqBy("id"),
|
|
53
56
|
)(baseState),
|
|
54
57
|
};
|
|
55
58
|
case removeGrantRequestFromCart.TRIGGER:
|
|
@@ -57,14 +60,14 @@ const grantRequestsCart = (state = initialState, { type, payload }) => {
|
|
|
57
60
|
...state,
|
|
58
61
|
structures: _.flow(
|
|
59
62
|
_.pathOr([], "structures"),
|
|
60
|
-
_.reject({ id: payload.id })
|
|
63
|
+
_.reject({ id: payload.id }),
|
|
61
64
|
)(state),
|
|
62
65
|
};
|
|
63
66
|
case selectGrantRequestTemplate.TRIGGER:
|
|
64
67
|
return {
|
|
65
68
|
...state,
|
|
66
69
|
template: payload,
|
|
67
|
-
templateContent: modificationGrantContent(state.modificationGrant)
|
|
70
|
+
templateContent: modificationGrantContent(state.modificationGrant),
|
|
68
71
|
};
|
|
69
72
|
case updateGrantRequestTemplateContent.TRIGGER:
|
|
70
73
|
const { content, valid } = payload;
|
|
@@ -107,14 +110,14 @@ const grantRequestsCart = (state = initialState, { type, payload }) => {
|
|
|
107
110
|
structures: _.map((s) =>
|
|
108
111
|
s.id === structureId
|
|
109
112
|
? {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
: s
|
|
113
|
+
...s,
|
|
114
|
+
filters: setRowValue({
|
|
115
|
+
index,
|
|
116
|
+
value,
|
|
117
|
+
population: _.pathOr([], "filters")(s),
|
|
118
|
+
}),
|
|
119
|
+
}
|
|
120
|
+
: s,
|
|
118
121
|
)(state.structures),
|
|
119
122
|
};
|
|
120
123
|
case initGroupTemplates.TRIGGER:
|
package/src/reducers/systemId.js
CHANGED
|
@@ -23,7 +23,7 @@ const userSearchFilters = (state = initialState, { type, payload, meta }) => {
|
|
|
23
23
|
const userFilter = _.propOr({}, "data")(payload);
|
|
24
24
|
return _.flow(
|
|
25
25
|
_.concat([userFilter]),
|
|
26
|
-
_.sortBy(accentInsensitivePathOrder("name"))
|
|
26
|
+
_.sortBy(accentInsensitivePathOrder("name")),
|
|
27
27
|
)(state);
|
|
28
28
|
case deleteUserSearchFilter.SUCCESS:
|
|
29
29
|
const { id } = meta;
|
package/src/routines.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* eslint-disable prettier/prettier */
|
|
2
1
|
import { createRoutine } from "redux-saga-routines";
|
|
3
2
|
|
|
4
3
|
export const addGrantFilter = createRoutine("ADD_GRANT_FILTER");
|
|
5
4
|
export const addGrantRequestToCart = createRoutine("ADD_GRANT_REQUEST_TO_CART");
|
|
6
5
|
export const addStructureSelectedFilter = createRoutine(
|
|
7
|
-
"ADD_STRUCTURE_SELECTED_FILTER"
|
|
6
|
+
"ADD_STRUCTURE_SELECTED_FILTER",
|
|
8
7
|
);
|
|
9
8
|
export const applyUserSearchFilter = createRoutine("APPLY_USER_SEARCH_FILTER");
|
|
10
9
|
export const bulkUpdateStructures = createRoutine("BULK_UPDATE_STRUCTURES");
|
|
@@ -32,17 +31,17 @@ export const clearStructureTypes = createRoutine("CLEAR_STRUCTURE_TYPES");
|
|
|
32
31
|
export const clearSystem = createRoutine("CLEAR_SYSTEM");
|
|
33
32
|
export const clearSystemStructures = createRoutine("CLEAR_SYSTEM_STRUCTURES");
|
|
34
33
|
export const clearUserSearchFilters = createRoutine(
|
|
35
|
-
"CLEAR_USER_SEARCH_FILTERS"
|
|
34
|
+
"CLEAR_USER_SEARCH_FILTERS",
|
|
36
35
|
);
|
|
37
36
|
export const closeGrantFilter = createRoutine("CLOSE_GRANT_FILTER");
|
|
38
37
|
export const createGrantApprovalRule = createRoutine(
|
|
39
|
-
"CREATE_GRANT_APPROVAL_RULE"
|
|
38
|
+
"CREATE_GRANT_APPROVAL_RULE",
|
|
40
39
|
);
|
|
41
40
|
export const createGrantRequestApproval = createRoutine(
|
|
42
|
-
"CREATE_GRANT_REQUEST_APPROVAL"
|
|
41
|
+
"CREATE_GRANT_REQUEST_APPROVAL",
|
|
43
42
|
);
|
|
44
43
|
export const createGrantRequestStatus = createRoutine(
|
|
45
|
-
"CREATE_GRANT_REQUEST_STATUS"
|
|
44
|
+
"CREATE_GRANT_REQUEST_STATUS",
|
|
46
45
|
);
|
|
47
46
|
export const createGraph = createRoutine("CREATE_GRAPH");
|
|
48
47
|
export const createProfileGroup = createRoutine("CREATE_PROFILE_GROUP");
|
|
@@ -52,25 +51,25 @@ export const createStructureType = createRoutine("CREATE_STRUCTURE_TYPE");
|
|
|
52
51
|
export const createSystem = createRoutine("CREATE_SYSTEM");
|
|
53
52
|
export const createTag = createRoutine("CREATE_TAG");
|
|
54
53
|
export const deleteCatalogViewConfig = createRoutine(
|
|
55
|
-
"DELETE_CATALOG_VIEW_CONFIG"
|
|
54
|
+
"DELETE_CATALOG_VIEW_CONFIG",
|
|
56
55
|
);
|
|
57
56
|
export const deleteGrantApprovalRule = createRoutine(
|
|
58
|
-
"DELETE_GRANT_APPROVAL_RULE"
|
|
57
|
+
"DELETE_GRANT_APPROVAL_RULE",
|
|
59
58
|
);
|
|
60
59
|
export const deleteReferenceDataset = createRoutine("DELETE_REFERENCE_DATASET");
|
|
61
60
|
export const deleteStructure = createRoutine("DELETE_STRUCTURE");
|
|
62
61
|
export const deleteStructureStructureLink = createRoutine(
|
|
63
|
-
"DELETE_STRUCTURE_STRUCTURE_LINK"
|
|
62
|
+
"DELETE_STRUCTURE_STRUCTURE_LINK",
|
|
64
63
|
);
|
|
65
64
|
export const deleteStructureTag = createRoutine("DELETE_STRUCTURE_TAG");
|
|
66
65
|
export const deleteTag = createRoutine("DELETE_TAG");
|
|
67
66
|
export const deleteUserSearchFilter = createRoutine(
|
|
68
|
-
"DELETE_USER_SEARCH_FILTER"
|
|
67
|
+
"DELETE_USER_SEARCH_FILTER",
|
|
69
68
|
);
|
|
70
69
|
export const doStructureNoteAction = createRoutine("DO_STRUCTURE_NOTE_ACTION");
|
|
71
70
|
export const downloadCsvGraph = createRoutine("DOWNLOAD_CSV_GRAPH");
|
|
72
71
|
export const downloadReferenceDataset = createRoutine(
|
|
73
|
-
"DOWNLOAD_REFERENCE_DATASET"
|
|
72
|
+
"DOWNLOAD_REFERENCE_DATASET",
|
|
74
73
|
);
|
|
75
74
|
export const excludeNode = createRoutine("EXCLUDE_NODE");
|
|
76
75
|
export const fetchGrant = createRoutine("FETCH_GRANT");
|
|
@@ -79,7 +78,7 @@ export const fetchGrantRequest = createRoutine("FETCH_GRANT_REQUEST");
|
|
|
79
78
|
export const fetchGrantRequests = createRoutine("FETCH_GRANT_REQUESTS");
|
|
80
79
|
|
|
81
80
|
export const fetchGrantRequestsFilters = createRoutine(
|
|
82
|
-
"FETCH_GRANT_REQUESTS_FILTERS"
|
|
81
|
+
"FETCH_GRANT_REQUESTS_FILTERS",
|
|
83
82
|
);
|
|
84
83
|
|
|
85
84
|
export const fetchGrants = createRoutine("FETCH_GRANTS");
|
|
@@ -95,32 +94,32 @@ export const fetchStructureGraph = createRoutine("FETCH_STRUCTURE_GRAPH");
|
|
|
95
94
|
export const fetchStructureNotes = createRoutine("FETCH_STRUCTURE_NOTES");
|
|
96
95
|
export const fetchStructures = createRoutine("FETCH_STRUCTURES");
|
|
97
96
|
export const fetchStructuresUploadEvents = createRoutine(
|
|
98
|
-
"FETCH_STRUCTURES_UPLOAD_EVENTS"
|
|
97
|
+
"FETCH_STRUCTURES_UPLOAD_EVENTS",
|
|
99
98
|
);
|
|
100
99
|
export const fetchStructureType = createRoutine("FETCH_STRUCTURE_TYPE");
|
|
101
100
|
export const fetchStructureTypes = createRoutine("FETCH_STRUCTURE_TYPES");
|
|
102
101
|
export const fetchSystem = createRoutine("FETCH_SYSTEM");
|
|
103
102
|
export const fetchSystemStructures = createRoutine("FETCH_SYSTEM_STRUCTURES");
|
|
104
103
|
export const fetchUserSearchFilters = createRoutine(
|
|
105
|
-
"FETCH_USER_SEARCH_FILTERS"
|
|
104
|
+
"FETCH_USER_SEARCH_FILTERS",
|
|
106
105
|
);
|
|
107
106
|
export const filterStructures = createRoutine("FILTER_STRUCTURES");
|
|
108
107
|
export const hoverNode = createRoutine("HOVER_NODE");
|
|
109
108
|
export const initSvg = createRoutine("INIT_SVG");
|
|
110
109
|
export const linkStructureToStructure = createRoutine(
|
|
111
|
-
"LINK_STRUCTURE_TO_STRUCTURE"
|
|
110
|
+
"LINK_STRUCTURE_TO_STRUCTURE",
|
|
112
111
|
);
|
|
113
112
|
export const loadLineageEvents = createRoutine("LOAD_LINEAGE_EVENTS");
|
|
114
113
|
export const openGrantFilter = createRoutine("OPEN_GRANT_FILTER");
|
|
115
114
|
export const removeGrantFilter = createRoutine("REMOVE_GRANT_FILTER");
|
|
116
115
|
export const removeGrantRequestFromCart = createRoutine(
|
|
117
|
-
"REMOVE_GRANT_REQUEST_FROM_CART"
|
|
116
|
+
"REMOVE_GRANT_REQUEST_FROM_CART",
|
|
118
117
|
);
|
|
119
118
|
export const removeGrantRequestsQuery = createRoutine(
|
|
120
|
-
"REMOVE_GRANT_REQUESTS_QUERY"
|
|
119
|
+
"REMOVE_GRANT_REQUESTS_QUERY",
|
|
121
120
|
);
|
|
122
121
|
export const removeStructureSelectedFilter = createRoutine(
|
|
123
|
-
"REMOVE_STRUCTURE_SELECTED_FILTER"
|
|
122
|
+
"REMOVE_STRUCTURE_SELECTED_FILTER",
|
|
124
123
|
);
|
|
125
124
|
export const requestGrantRemoval = createRoutine("REQUEST_GRANT_REMOVAL");
|
|
126
125
|
export const resetGrantFilters = createRoutine("RESET_GRANT_FILTERS");
|
|
@@ -131,14 +130,14 @@ export const searchStructures = createRoutine("SEARCH_STRUCTURES");
|
|
|
131
130
|
export const selectGrantPage = createRoutine("SELECT_GRANT_PAGE");
|
|
132
131
|
|
|
133
132
|
export const selectGrantRequestTemplate = createRoutine(
|
|
134
|
-
"SELECT_GRANT_REQUEST_TEMPLATE"
|
|
133
|
+
"SELECT_GRANT_REQUEST_TEMPLATE",
|
|
135
134
|
);
|
|
136
135
|
export const initGroupTemplates = createRoutine("INIT_GROUP_TEMPLATES");
|
|
137
136
|
export const selectGrantRequestTemplateForGroup = createRoutine(
|
|
138
|
-
"SELECT_GRANT_REQUEST_TEMPLATE_FOR_GROUP"
|
|
137
|
+
"SELECT_GRANT_REQUEST_TEMPLATE_FOR_GROUP",
|
|
139
138
|
);
|
|
140
139
|
export const updateGrantRequestTemplateContentForGroup = createRoutine(
|
|
141
|
-
"UPDATE_GRANT_REQUEST_TEMPLATE_CONTENT_FOR_GROUP"
|
|
140
|
+
"UPDATE_GRANT_REQUEST_TEMPLATE_CONTENT_FOR_GROUP",
|
|
142
141
|
);
|
|
143
142
|
export const selectGroup = createRoutine("SELECT_GROUP");
|
|
144
143
|
export const selectNode = createRoutine("SELECT_NODE");
|
|
@@ -146,36 +145,36 @@ export const selectPath = createRoutine("SELECT_PATH");
|
|
|
146
145
|
export const selectResources = createRoutine("SELECT_RESOURCES");
|
|
147
146
|
export const selectStructure = createRoutine("SELECT_STRUCTURE");
|
|
148
147
|
export const setGrantChangeRequestCart = createRoutine(
|
|
149
|
-
"SET_GRANT_CHANGE_REQUEST_CART"
|
|
148
|
+
"SET_GRANT_CHANGE_REQUEST_CART",
|
|
150
149
|
);
|
|
151
150
|
export const setGrantRequestsQuery = createRoutine("SET_GRANT_REQUESTS_QUERY");
|
|
152
151
|
export const sortGrants = createRoutine("SORT_GRANTS");
|
|
153
152
|
export const tagStructure = createRoutine("TAG_STRUCTURE");
|
|
154
153
|
export const structureSearchQuery = createRoutine("STRUCTURES_SEARCH_QUERY");
|
|
155
154
|
export const toggleGrantFilterValue = createRoutine(
|
|
156
|
-
"TOGGLE_GRANT_FILTER_VALUE"
|
|
155
|
+
"TOGGLE_GRANT_FILTER_VALUE",
|
|
157
156
|
);
|
|
158
157
|
export const toggleStructureFilterValue = createRoutine(
|
|
159
|
-
"TOGGLE_STRUCTURE_FILTER_VALUE"
|
|
158
|
+
"TOGGLE_STRUCTURE_FILTER_VALUE",
|
|
160
159
|
);
|
|
161
160
|
export const toggleStructuresAliasNameMode = createRoutine(
|
|
162
|
-
"TOGGLE_STRUCTURES_ALIAS_NAME_MODE"
|
|
161
|
+
"TOGGLE_STRUCTURES_ALIAS_NAME_MODE",
|
|
163
162
|
);
|
|
164
163
|
export const updateGrant = createRoutine("UPDATE_GRANT");
|
|
165
164
|
export const updateGrantApprovalRule = createRoutine(
|
|
166
|
-
"UPDATE_GRANT_APPROVAL_RULE"
|
|
165
|
+
"UPDATE_GRANT_APPROVAL_RULE",
|
|
167
166
|
);
|
|
168
167
|
export const updateGrantRequestFilter = createRoutine(
|
|
169
|
-
"UPDATE_GRANT_REQUEST_FILTER_SAGA"
|
|
168
|
+
"UPDATE_GRANT_REQUEST_FILTER_SAGA",
|
|
170
169
|
);
|
|
171
170
|
export const updateGrantRequestTemplateContent = createRoutine(
|
|
172
|
-
"UPDATE_GRANT_REQUEST_TEMPLATE_CONTENT"
|
|
171
|
+
"UPDATE_GRANT_REQUEST_TEMPLATE_CONTENT",
|
|
173
172
|
);
|
|
174
173
|
export const updateGrantRequestUser = createRoutine(
|
|
175
|
-
"UPDATE_GRANT_REQUEST_USER"
|
|
174
|
+
"UPDATE_GRANT_REQUEST_USER",
|
|
176
175
|
);
|
|
177
176
|
export const updateGrantRequestUserForGroup = createRoutine(
|
|
178
|
-
"UPDATE_GRANT_REQUEST_USER_FOR_GROUP"
|
|
177
|
+
"UPDATE_GRANT_REQUEST_USER_FOR_GROUP",
|
|
179
178
|
);
|
|
180
179
|
export const updateReferenceDataset = createRoutine("UPDATE_REFERENCE_DATASET");
|
|
181
180
|
export const updateStructure = createRoutine("UPDATE_STRUCTURE");
|
|
@@ -183,8 +182,8 @@ export const updateStructureType = createRoutine("UPDATE_STRUCTURE_TYPE");
|
|
|
183
182
|
export const updateSystem = createRoutine("UPDATE_SYSTEM");
|
|
184
183
|
export const updateTag = createRoutine("UPDATE_TAG");
|
|
185
184
|
export const uploadStructuresDomains = createRoutine(
|
|
186
|
-
"UPLOAD_STRUCTURES_DOMAINS"
|
|
185
|
+
"UPLOAD_STRUCTURES_DOMAINS",
|
|
187
186
|
);
|
|
188
187
|
export const upsertCatalogViewConfig = createRoutine(
|
|
189
|
-
"UPDATE_CATALOG_VIEW_CONFIG"
|
|
188
|
+
"UPDATE_CATALOG_VIEW_CONFIG",
|
|
190
189
|
);
|
|
@@ -178,13 +178,13 @@ describe("generator: polling", () => {
|
|
|
178
178
|
.call(
|
|
179
179
|
apiJson,
|
|
180
180
|
compile(API_GRAPH_HASH)({ hash: graphAccepted.data.graph_hash }),
|
|
181
|
-
JSON_OPTS
|
|
181
|
+
JSON_OPTS,
|
|
182
182
|
)
|
|
183
183
|
.next(graphPending)
|
|
184
184
|
.put(
|
|
185
185
|
fetchGraph.failure({
|
|
186
186
|
data: { graph_hash: graphAccepted.data.graph_hash, retry: 1 },
|
|
187
|
-
})
|
|
187
|
+
}),
|
|
188
188
|
)
|
|
189
189
|
.next()
|
|
190
190
|
.cancelled()
|
|
@@ -194,7 +194,7 @@ describe("generator: polling", () => {
|
|
|
194
194
|
.call(
|
|
195
195
|
apiJson,
|
|
196
196
|
compile(API_GRAPH_HASH)({ hash: graphAccepted.data.graph_hash }),
|
|
197
|
-
JSON_OPTS
|
|
197
|
+
JSON_OPTS,
|
|
198
198
|
)
|
|
199
199
|
.next(graphCompleted)
|
|
200
200
|
.cancelled()
|
|
@@ -214,13 +214,13 @@ describe("generator: polling", () => {
|
|
|
214
214
|
.call(
|
|
215
215
|
apiJson,
|
|
216
216
|
compile(API_GRAPH_HASH)({ hash: graphAccepted.data.graph_hash }),
|
|
217
|
-
JSON_OPTS
|
|
217
|
+
JSON_OPTS,
|
|
218
218
|
)
|
|
219
219
|
.next(graphPending)
|
|
220
220
|
.put(
|
|
221
221
|
fetchGraph.failure({
|
|
222
222
|
data: { graph_hash: graphAccepted.data.graph_hash, retry: 1 },
|
|
223
|
-
})
|
|
223
|
+
}),
|
|
224
224
|
)
|
|
225
225
|
.next()
|
|
226
226
|
.cancelled()
|
|
@@ -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
|
createProfileGroupRequestSaga,
|
|
5
|
-
createProfileGroupSaga
|
|
5
|
+
createProfileGroupSaga,
|
|
6
6
|
} from "../createProfileGroup";
|
|
7
7
|
import { createProfileGroup } from "../../routines";
|
|
8
8
|
import { API_PROFILE_GROUPS } from "../../api";
|
|
@@ -37,23 +37,23 @@ describe("sagas: createProfileGroupSaga", () => {
|
|
|
37
37
|
{
|
|
38
38
|
id: 2,
|
|
39
39
|
_embedded: {
|
|
40
|
-
data_structure: { id: 1, external_id: "foo" }
|
|
41
|
-
}
|
|
40
|
+
data_structure: { id: 1, external_id: "foo" },
|
|
41
|
+
},
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
id: 3,
|
|
45
45
|
_embedded: {
|
|
46
|
-
data_structure: { id: 2, external_id: "bar" }
|
|
47
|
-
}
|
|
46
|
+
data_structure: { id: 2, external_id: "bar" },
|
|
47
|
+
},
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
id: 4,
|
|
51
51
|
_embedded: {
|
|
52
|
-
data_structure: { id: 3, external_id: "baz" }
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
52
|
+
data_structure: { id: 3, external_id: "baz" },
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
it("should put a success action when a response is returned", () => {
|