@truedat/dd 8.7.0 → 8.7.2
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/api/queries.js +1 -0
- 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 +2 -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 +49 -38
- 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 +5 -6
- 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
|
@@ -83,7 +83,7 @@ describe("reducers: grants", () => {
|
|
|
83
83
|
grants(fooState, {
|
|
84
84
|
type: fetchGrants.SUCCESS,
|
|
85
85
|
payload: { data },
|
|
86
|
-
})
|
|
86
|
+
}),
|
|
87
87
|
).toMatchObject(someGrants);
|
|
88
88
|
});
|
|
89
89
|
|
|
@@ -92,7 +92,7 @@ describe("reducers: grants", () => {
|
|
|
92
92
|
const data = { id: 1, user_id: "123" };
|
|
93
93
|
const expected = [data, { id: 2 }];
|
|
94
94
|
expect(
|
|
95
|
-
grants(state, { type: updateGrant.SUCCESS, payload: { data } })
|
|
95
|
+
grants(state, { type: updateGrant.SUCCESS, payload: { data } }),
|
|
96
96
|
).toMatchObject(expected);
|
|
97
97
|
});
|
|
98
98
|
|
|
@@ -14,7 +14,7 @@ describe("reducers: graph", () => {
|
|
|
14
14
|
|
|
15
15
|
it("should be the initial state after receiving the legacyFetchStructure.TRIGGER action", () => {
|
|
16
16
|
expect(graph(fooState, { type: legacyFetchStructure.TRIGGER })).toEqual(
|
|
17
|
-
initialState
|
|
17
|
+
initialState,
|
|
18
18
|
);
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ describe("reducers: graphLoading", () => {
|
|
|
22
22
|
|
|
23
23
|
it("should be true after receiving the createStructureGraph.REQUEST action", () => {
|
|
24
24
|
expect(graphLoading(false, { type: createStructureGraph.REQUEST })).toBe(
|
|
25
|
-
true
|
|
25
|
+
true,
|
|
26
26
|
);
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -32,7 +32,7 @@ describe("reducers: graphLoading", () => {
|
|
|
32
32
|
|
|
33
33
|
it("should be true after receiving the fetchStructureGraph.TRIGGER action", () => {
|
|
34
34
|
expect(graphLoading(false, { type: fetchStructureGraph.TRIGGER })).toBe(
|
|
35
|
-
true
|
|
35
|
+
true,
|
|
36
36
|
);
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -57,12 +57,14 @@ describe("reducers: graphLoading", () => {
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
it("should be false after receiving the legacyFetchStructure.TRIGGER action", () => {
|
|
60
|
-
expect(graphLoading(true, { type: legacyFetchStructure.TRIGGER })).toBe(
|
|
60
|
+
expect(graphLoading(true, { type: legacyFetchStructure.TRIGGER })).toBe(
|
|
61
|
+
false,
|
|
62
|
+
);
|
|
61
63
|
});
|
|
62
64
|
|
|
63
65
|
it("should be false after receiving the fetchStructureGraph.FULFILL action", () => {
|
|
64
66
|
expect(graphLoading(true, { type: fetchStructureGraph.FULFILL })).toBe(
|
|
65
|
-
false
|
|
67
|
+
false,
|
|
66
68
|
);
|
|
67
69
|
});
|
|
68
70
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { clearRedirect } from "@truedat/core/routines";
|
|
2
2
|
import { graphRedirect, initialState } from "../graphRedirect";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
clearStructure,
|
|
5
|
+
legacyFetchStructure,
|
|
6
|
+
createGraph,
|
|
7
|
+
} from "../../routines";
|
|
4
8
|
|
|
5
9
|
const fooState = { foo: "bar" };
|
|
6
10
|
|
|
@@ -11,27 +15,27 @@ describe("reducers: graphRedirect", () => {
|
|
|
11
15
|
|
|
12
16
|
it("should be the initial state after receiving the clearRedirect.TRIGGER action", () => {
|
|
13
17
|
expect(graphRedirect(fooState, { type: clearRedirect.TRIGGER })).toBe(
|
|
14
|
-
initialState
|
|
18
|
+
initialState,
|
|
15
19
|
);
|
|
16
20
|
});
|
|
17
21
|
|
|
18
22
|
it("should be the initial state after receiving the clearStructure.TRIGGER action", () => {
|
|
19
23
|
expect(graphRedirect(fooState, { type: clearStructure.TRIGGER })).toBe(
|
|
20
|
-
initialState
|
|
24
|
+
initialState,
|
|
21
25
|
);
|
|
22
26
|
});
|
|
23
27
|
|
|
24
28
|
it("should be the initial state after receiving the legacyFetchStructure.TRIGGER action", () => {
|
|
25
|
-
expect(
|
|
26
|
-
|
|
27
|
-
);
|
|
29
|
+
expect(
|
|
30
|
+
graphRedirect(fooState, { type: legacyFetchStructure.TRIGGER }),
|
|
31
|
+
).toBe(initialState);
|
|
28
32
|
});
|
|
29
33
|
|
|
30
34
|
it("should be the graph url after receiving the createGraph.SUCCESS action", () => {
|
|
31
35
|
const data = { id: "42", isRedirected: true };
|
|
32
36
|
const payload = { data };
|
|
33
37
|
expect(
|
|
34
|
-
graphRedirect(fooState, { type: createGraph.SUCCESS, payload })
|
|
38
|
+
graphRedirect(fooState, { type: createGraph.SUCCESS, payload }),
|
|
35
39
|
).toEqual("/graphs/42");
|
|
36
40
|
});
|
|
37
41
|
|
|
@@ -10,13 +10,13 @@ describe("reducers: lineageEventsLoading", () => {
|
|
|
10
10
|
|
|
11
11
|
it("returns to initial state on fetchLineageEvents.FULFILL action", () => {
|
|
12
12
|
expect(
|
|
13
|
-
lineageEventsLoading(fooState, { type: fetchLineageEvents.FULFILL })
|
|
13
|
+
lineageEventsLoading(fooState, { type: fetchLineageEvents.FULFILL }),
|
|
14
14
|
).toBe(false);
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
it("returns true on fetchLineageEvents.REQUEST action", () => {
|
|
18
18
|
expect(
|
|
19
|
-
lineageEventsLoading(fooState, { type: fetchLineageEvents.REQUEST })
|
|
19
|
+
lineageEventsLoading(fooState, { type: fetchLineageEvents.REQUEST }),
|
|
20
20
|
).toBe(true);
|
|
21
21
|
});
|
|
22
22
|
|
|
@@ -17,7 +17,7 @@ describe("reducers: lineageQuery", () => {
|
|
|
17
17
|
const state = { excludes: ["foo"] };
|
|
18
18
|
const payload = { id: "bar" };
|
|
19
19
|
expect(
|
|
20
|
-
lineageQuery(state, { type: excludeNode.TRIGGER, payload })
|
|
20
|
+
lineageQuery(state, { type: excludeNode.TRIGGER, payload }),
|
|
21
21
|
).toMatchObject({ excludes: ["bar", "foo"] });
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@ describe("reducers: lineageQuery", () => {
|
|
|
25
25
|
const state = { excludes: ["foo"] };
|
|
26
26
|
const payload = { id: "bar" };
|
|
27
27
|
expect(
|
|
28
|
-
lineageQuery(state, { type: excludeNode.TRIGGER, payload })
|
|
28
|
+
lineageQuery(state, { type: excludeNode.TRIGGER, payload }),
|
|
29
29
|
).toMatchObject({
|
|
30
30
|
excludes: ["bar", "foo"],
|
|
31
31
|
isRedirected: false,
|
|
@@ -35,7 +35,7 @@ describe("reducers: lineageQuery", () => {
|
|
|
35
35
|
it("should reset the exclusions after receiving the selectGroup.TRIGGER action", () => {
|
|
36
36
|
const payload = {};
|
|
37
37
|
expect(
|
|
38
|
-
lineageQuery(fooState, { type: selectGroup.TRIGGER, payload })
|
|
38
|
+
lineageQuery(fooState, { type: selectGroup.TRIGGER, payload }),
|
|
39
39
|
).toMatchObject({ excludes: [] });
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -46,7 +46,7 @@ describe("reducers: lineageQuery", () => {
|
|
|
46
46
|
const state = { excludes: ["foo"] };
|
|
47
47
|
const payload = { ids, type, levels };
|
|
48
48
|
expect(
|
|
49
|
-
lineageQuery(state, { type: createGraph.TRIGGER, payload })
|
|
49
|
+
lineageQuery(state, { type: createGraph.TRIGGER, payload }),
|
|
50
50
|
).toMatchObject({ excludes: [], ids, type, levels });
|
|
51
51
|
});
|
|
52
52
|
|
|
@@ -57,7 +57,7 @@ describe("reducers: lineageQuery", () => {
|
|
|
57
57
|
const state = { excludes: ["foo"] };
|
|
58
58
|
const payload = { ids, type, levels };
|
|
59
59
|
expect(
|
|
60
|
-
lineageQuery(state, { type: createGraph.TRIGGER, payload })
|
|
60
|
+
lineageQuery(state, { type: createGraph.TRIGGER, payload }),
|
|
61
61
|
).toMatchObject({
|
|
62
62
|
excludes: [],
|
|
63
63
|
ids,
|
|
@@ -76,7 +76,7 @@ describe("reducers: lineageQuery", () => {
|
|
|
76
76
|
const data = { ids, excludes, opts: { type, levels: payloadLevels } };
|
|
77
77
|
const payload = { data };
|
|
78
78
|
expect(
|
|
79
|
-
lineageQuery({ levels: 3 }, { type: fetchGraph.SUCCESS, payload })
|
|
79
|
+
lineageQuery({ levels: 3 }, { type: fetchGraph.SUCCESS, payload }),
|
|
80
80
|
).toMatchObject({ ids, excludes, type, levels });
|
|
81
81
|
});
|
|
82
82
|
|
|
@@ -10,13 +10,13 @@ describe("reducers: nodesLoading", () => {
|
|
|
10
10
|
|
|
11
11
|
it("returns to initial state on clearNodes.TRIGGER action", () => {
|
|
12
12
|
expect(nodesLoading(fooState, { type: clearNodes.TRIGGER })).toBe(
|
|
13
|
-
initialState
|
|
13
|
+
initialState,
|
|
14
14
|
);
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
it("returns to initial state on fetchNodes.FULFILL action", () => {
|
|
18
18
|
expect(nodesLoading(fooState, { type: fetchNodes.FULFILL })).toBe(
|
|
19
|
-
initialState
|
|
19
|
+
initialState,
|
|
20
20
|
);
|
|
21
21
|
});
|
|
22
22
|
|
|
@@ -12,13 +12,13 @@ describe("reducers: profileExecution", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the clearProfileExecution.TRIGGER action", () => {
|
|
14
14
|
expect(
|
|
15
|
-
profileExecution(fooState, { type: clearProfileExecution.TRIGGER })
|
|
15
|
+
profileExecution(fooState, { type: clearProfileExecution.TRIGGER }),
|
|
16
16
|
).toEqual(initialState);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
it("should handle the fetchProfileExecution.TRIGGER action", () => {
|
|
20
20
|
expect(
|
|
21
|
-
profileExecution(fooState, { type: fetchProfileExecution.TRIGGER })
|
|
21
|
+
profileExecution(fooState, { type: fetchProfileExecution.TRIGGER }),
|
|
22
22
|
).toEqual(initialState);
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -27,14 +27,14 @@ describe("reducers: profileExecution", () => {
|
|
|
27
27
|
id: 1,
|
|
28
28
|
_embedded: {
|
|
29
29
|
data_structure: { id: 1, external_id: "foo" },
|
|
30
|
-
profile: { value: { foo: "bar" } }
|
|
31
|
-
}
|
|
30
|
+
profile: { value: { foo: "bar" } },
|
|
31
|
+
},
|
|
32
32
|
};
|
|
33
33
|
expect(
|
|
34
34
|
profileExecution(fooState, {
|
|
35
35
|
type: fetchProfileExecution.SUCCESS,
|
|
36
|
-
payload: { data }
|
|
37
|
-
})
|
|
36
|
+
payload: { data },
|
|
37
|
+
}),
|
|
38
38
|
).toMatchObject(data);
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -12,15 +12,17 @@ describe("reducers: profileExecutionLoading", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the fetchProfileExecution.REQUEST action", () => {
|
|
14
14
|
expect(
|
|
15
|
-
profileExecutionLoading(fooState, {
|
|
15
|
+
profileExecutionLoading(fooState, {
|
|
16
|
+
type: fetchProfileExecution.REQUEST,
|
|
17
|
+
}),
|
|
16
18
|
).toEqual(true);
|
|
17
19
|
});
|
|
18
20
|
|
|
19
21
|
it("should handle the fetchProfileExecution.FULFILL action", () => {
|
|
20
22
|
expect(
|
|
21
23
|
profileExecutionLoading(fooState, {
|
|
22
|
-
type: fetchProfileExecution.FULFILL
|
|
23
|
-
})
|
|
24
|
+
type: fetchProfileExecution.FULFILL,
|
|
25
|
+
}),
|
|
24
26
|
).toEqual(false);
|
|
25
27
|
});
|
|
26
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearProfileGroup,
|
|
3
3
|
createProfileGroup,
|
|
4
|
-
fetchProfileGroup
|
|
4
|
+
fetchProfileGroup,
|
|
5
5
|
} from "../../routines";
|
|
6
6
|
import { profileGroup } from "..";
|
|
7
7
|
|
|
@@ -18,11 +18,11 @@ describe("reducers: profileGroup", () => {
|
|
|
18
18
|
id: 2,
|
|
19
19
|
_embedded: {
|
|
20
20
|
data_structure: { id: 1, external_id: "foo" },
|
|
21
|
-
profile: { value: { foo: "bar" } }
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
}
|
|
21
|
+
profile: { value: { foo: "bar" } },
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
it("should provide the initial state", () => {
|
|
@@ -31,13 +31,13 @@ describe("reducers: profileGroup", () => {
|
|
|
31
31
|
|
|
32
32
|
it("should handle the clearProfileGroup.TRIGGER action", () => {
|
|
33
33
|
expect(profileGroup(fooState, { type: clearProfileGroup.TRIGGER })).toEqual(
|
|
34
|
-
initialState
|
|
34
|
+
initialState,
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
it("should handle the fetchProfileGroup.TRIGGER action", () => {
|
|
39
39
|
expect(profileGroup(fooState, { type: fetchProfileGroup.TRIGGER })).toEqual(
|
|
40
|
-
initialState
|
|
40
|
+
initialState,
|
|
41
41
|
);
|
|
42
42
|
});
|
|
43
43
|
|
|
@@ -45,8 +45,8 @@ describe("reducers: profileGroup", () => {
|
|
|
45
45
|
expect(
|
|
46
46
|
profileGroup(fooState, {
|
|
47
47
|
type: fetchProfileGroup.SUCCESS,
|
|
48
|
-
payload: { data }
|
|
49
|
-
})
|
|
48
|
+
payload: { data },
|
|
49
|
+
}),
|
|
50
50
|
).toMatchObject(data);
|
|
51
51
|
});
|
|
52
52
|
|
|
@@ -54,8 +54,8 @@ describe("reducers: profileGroup", () => {
|
|
|
54
54
|
expect(
|
|
55
55
|
profileGroup(fooState, {
|
|
56
56
|
type: createProfileGroup.SUCCESS,
|
|
57
|
-
payload: { data }
|
|
58
|
-
})
|
|
57
|
+
payload: { data },
|
|
58
|
+
}),
|
|
59
59
|
).toMatchObject(data);
|
|
60
60
|
});
|
|
61
61
|
|
|
@@ -12,29 +12,29 @@ describe("reducers: profileGroupLoading", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the fetchProfileGroup.REQUEST action", () => {
|
|
14
14
|
expect(
|
|
15
|
-
profileGroupLoading(fooState, { type: fetchProfileGroup.REQUEST })
|
|
15
|
+
profileGroupLoading(fooState, { type: fetchProfileGroup.REQUEST }),
|
|
16
16
|
).toEqual(true);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
it("should handle the fetchProfileGroup.FULFILL action", () => {
|
|
20
20
|
expect(
|
|
21
21
|
profileGroupLoading(fooState, {
|
|
22
|
-
type: fetchProfileGroup.FULFILL
|
|
23
|
-
})
|
|
22
|
+
type: fetchProfileGroup.FULFILL,
|
|
23
|
+
}),
|
|
24
24
|
).toEqual(false);
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
it("should handle the createProfileGroup.REQUEST action", () => {
|
|
28
28
|
expect(
|
|
29
|
-
profileGroupLoading(fooState, { type: createProfileGroup.REQUEST })
|
|
29
|
+
profileGroupLoading(fooState, { type: createProfileGroup.REQUEST }),
|
|
30
30
|
).toEqual(true);
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
it("should handle the createProfileGroup.FULFILL action", () => {
|
|
34
34
|
expect(
|
|
35
35
|
profileGroupLoading(fooState, {
|
|
36
|
-
type: fetchProfileGroup.FULFILL
|
|
37
|
-
})
|
|
36
|
+
type: fetchProfileGroup.FULFILL,
|
|
37
|
+
}),
|
|
38
38
|
).toEqual(false);
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -12,7 +12,9 @@ describe("reducers: referenceDatasetSaving", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the createReferenceDataset.TRIGGER action", () => {
|
|
14
14
|
expect(
|
|
15
|
-
referenceDatasetSaving(fooState, {
|
|
15
|
+
referenceDatasetSaving(fooState, {
|
|
16
|
+
type: createReferenceDataset.TRIGGER,
|
|
17
|
+
}),
|
|
16
18
|
).toBe(true);
|
|
17
19
|
});
|
|
18
20
|
|
|
@@ -20,13 +22,15 @@ describe("reducers: referenceDatasetSaving", () => {
|
|
|
20
22
|
expect(
|
|
21
23
|
referenceDatasetSaving(fooState, {
|
|
22
24
|
type: createReferenceDataset.FULFILL,
|
|
23
|
-
})
|
|
25
|
+
}),
|
|
24
26
|
).toBe(false);
|
|
25
27
|
});
|
|
26
28
|
|
|
27
29
|
it("should handle the updateReferenceDataset.TRIGGER action", () => {
|
|
28
30
|
expect(
|
|
29
|
-
referenceDatasetSaving(fooState, {
|
|
31
|
+
referenceDatasetSaving(fooState, {
|
|
32
|
+
type: updateReferenceDataset.TRIGGER,
|
|
33
|
+
}),
|
|
30
34
|
).toBe(true);
|
|
31
35
|
});
|
|
32
36
|
|
|
@@ -34,7 +38,7 @@ describe("reducers: referenceDatasetSaving", () => {
|
|
|
34
38
|
expect(
|
|
35
39
|
referenceDatasetSaving(fooState, {
|
|
36
40
|
type: updateReferenceDataset.FULFILL,
|
|
37
|
-
})
|
|
41
|
+
}),
|
|
38
42
|
).toBe(false);
|
|
39
43
|
});
|
|
40
44
|
|
|
@@ -10,7 +10,7 @@ describe("reducers: selectedGroups", () => {
|
|
|
10
10
|
|
|
11
11
|
it("should handle the clearNodes.TRIGGER action", () => {
|
|
12
12
|
expect(selectedGroups(fooState, { type: clearNodes.TRIGGER })).toBe(
|
|
13
|
-
initialState
|
|
13
|
+
initialState,
|
|
14
14
|
);
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ describe("reducers: selectedGroups", () => {
|
|
|
18
18
|
const data = [{}, { parent: "foo" }, { parent: "bar" }];
|
|
19
19
|
const payload = { data };
|
|
20
20
|
expect(
|
|
21
|
-
selectedGroups(fooState, { type: fetchNodes.SUCCESS, payload })
|
|
21
|
+
selectedGroups(fooState, { type: fetchNodes.SUCCESS, payload }),
|
|
22
22
|
).toEqual(["foo", "bar"]);
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
clearNode,
|
|
4
4
|
excludeNode,
|
|
5
5
|
createGraph,
|
|
6
|
-
selectNode
|
|
6
|
+
selectNode,
|
|
7
7
|
} from "../../routines";
|
|
8
8
|
|
|
9
9
|
describe("reducers: selectedNode", () => {
|
|
@@ -17,25 +17,25 @@ describe("reducers: selectedNode", () => {
|
|
|
17
17
|
const id = "bar";
|
|
18
18
|
const x = 42;
|
|
19
19
|
expect(
|
|
20
|
-
selectedNode(fooState, { type: selectNode.TRIGGER, payload: { id, x } })
|
|
20
|
+
selectedNode(fooState, { type: selectNode.TRIGGER, payload: { id, x } }),
|
|
21
21
|
).toEqual({ id, x });
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
it("should handle the clearNode.TRIGGER action", () => {
|
|
25
25
|
expect(selectedNode(fooState, { type: clearNode.TRIGGER })).toBe(
|
|
26
|
-
initialState
|
|
26
|
+
initialState,
|
|
27
27
|
);
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
it("should handle the createGraph.TRIGGER action", () => {
|
|
31
31
|
expect(selectedNode(fooState, { type: createGraph.TRIGGER })).toBe(
|
|
32
|
-
initialState
|
|
32
|
+
initialState,
|
|
33
33
|
);
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
it("should handle the excludeNode.TRIGGER action", () => {
|
|
37
37
|
expect(selectedNode(fooState, { type: excludeNode.TRIGGER })).toBe(
|
|
38
|
-
initialState
|
|
38
|
+
initialState,
|
|
39
39
|
);
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
clearNodes,
|
|
4
4
|
fetchNodes,
|
|
5
5
|
selectGroup,
|
|
6
|
-
selectResources
|
|
6
|
+
selectResources,
|
|
7
7
|
} from "../../routines";
|
|
8
8
|
|
|
9
9
|
describe("reducers: selectedResources", () => {
|
|
@@ -15,26 +15,26 @@ describe("reducers: selectedResources", () => {
|
|
|
15
15
|
|
|
16
16
|
it("should handle the clearNodes.TRIGGER action", () => {
|
|
17
17
|
expect(selectedResources(fooState, { type: clearNodes.TRIGGER })).toBe(
|
|
18
|
-
initialState
|
|
18
|
+
initialState,
|
|
19
19
|
);
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
it("should handle the fetchNodes.TRIGGER action", () => {
|
|
23
23
|
expect(selectedResources(fooState, { type: fetchNodes.TRIGGER })).toBe(
|
|
24
|
-
initialState
|
|
24
|
+
initialState,
|
|
25
25
|
);
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
it("should handle the selectGroup.TRIGGER action", () => {
|
|
29
29
|
expect(selectedResources(fooState, { type: selectGroup.TRIGGER })).toBe(
|
|
30
|
-
initialState
|
|
30
|
+
initialState,
|
|
31
31
|
);
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
it("should handle the selectResources.TRIGGER action", () => {
|
|
35
35
|
const payload = { foo: "bar" };
|
|
36
36
|
expect(
|
|
37
|
-
selectedResources(fooState, { type: selectResources.TRIGGER, payload })
|
|
37
|
+
selectedResources(fooState, { type: selectResources.TRIGGER, payload }),
|
|
38
38
|
).toBe(payload);
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -16,14 +16,14 @@ describe("reducers: selectedUserSearchFilter", () => {
|
|
|
16
16
|
selectedUserSearchFilter(fooState, {
|
|
17
17
|
type: applyUserSearchFilter.TRIGGER,
|
|
18
18
|
payload,
|
|
19
|
-
})
|
|
19
|
+
}),
|
|
20
20
|
).toEqual(name);
|
|
21
21
|
|
|
22
22
|
expect(
|
|
23
23
|
selectedUserSearchFilter(name, {
|
|
24
24
|
type: applyUserSearchFilter.TRIGGER,
|
|
25
25
|
payload,
|
|
26
|
-
})
|
|
26
|
+
}),
|
|
27
27
|
).toEqual(null);
|
|
28
28
|
});
|
|
29
29
|
|
|
@@ -31,7 +31,7 @@ describe("reducers: selectedUserSearchFilter", () => {
|
|
|
31
31
|
expect(
|
|
32
32
|
selectedUserSearchFilter(fooState, {
|
|
33
33
|
type: clearUserSearchFilters.TRIGGER,
|
|
34
|
-
})
|
|
34
|
+
}),
|
|
35
35
|
).toEqual(initialState);
|
|
36
36
|
});
|
|
37
37
|
|
|
@@ -13,7 +13,7 @@ describe("reducers: structure", () => {
|
|
|
13
13
|
|
|
14
14
|
it("should handle the clearStructure.TRIGGER action", () => {
|
|
15
15
|
expect(structure(fooState, { type: clearStructure.TRIGGER })).toEqual(
|
|
16
|
-
initialState
|
|
16
|
+
initialState,
|
|
17
17
|
);
|
|
18
18
|
});
|
|
19
19
|
|
|
@@ -51,7 +51,7 @@ describe("reducers: structure", () => {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
expect(
|
|
54
|
-
structure(fooState, { type: fetchStructure.SUCCESS, payload: { data } })
|
|
54
|
+
structure(fooState, { type: fetchStructure.SUCCESS, payload: { data } }),
|
|
55
55
|
).toMatchObject(expected);
|
|
56
56
|
});
|
|
57
57
|
|
|
@@ -12,13 +12,13 @@ describe("reducers: structureActions", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the clearStructure.TRIGGER action", () => {
|
|
14
14
|
expect(
|
|
15
|
-
structureActions(fooState, { type: clearStructure.TRIGGER })
|
|
15
|
+
structureActions(fooState, { type: clearStructure.TRIGGER }),
|
|
16
16
|
).toEqual(initialState);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
it("should handle the fetchStructure.TRIGGER action", () => {
|
|
20
20
|
expect(
|
|
21
|
-
structureActions(fooState, { type: fetchStructure.TRIGGER })
|
|
21
|
+
structureActions(fooState, { type: fetchStructure.TRIGGER }),
|
|
22
22
|
).toEqual(initialState);
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -29,8 +29,8 @@ describe("reducers: structureActions", () => {
|
|
|
29
29
|
expect(
|
|
30
30
|
structureActions(fooState, {
|
|
31
31
|
type: fetchStructure.SUCCESS,
|
|
32
|
-
payload: data
|
|
33
|
-
})
|
|
32
|
+
payload: data,
|
|
33
|
+
}),
|
|
34
34
|
).toMatchObject(_actions);
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -12,7 +12,7 @@ describe("reducers: structureAncestry", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the clearStructure.TRIGGER action", () => {
|
|
14
14
|
expect(
|
|
15
|
-
structureAncestry(fooState, { type: clearStructure.TRIGGER })
|
|
15
|
+
structureAncestry(fooState, { type: clearStructure.TRIGGER }),
|
|
16
16
|
).toEqual(initialState);
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -20,20 +20,20 @@ describe("reducers: structureAncestry", () => {
|
|
|
20
20
|
const ancestry = [
|
|
21
21
|
{
|
|
22
22
|
id: 1,
|
|
23
|
-
name: "Structure 1"
|
|
23
|
+
name: "Structure 1",
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
id: 2,
|
|
27
|
-
name: "Structure 2"
|
|
28
|
-
}
|
|
27
|
+
name: "Structure 2",
|
|
28
|
+
},
|
|
29
29
|
];
|
|
30
30
|
const data = { ancestry };
|
|
31
31
|
|
|
32
32
|
expect(
|
|
33
33
|
structureAncestry(fooState, {
|
|
34
34
|
type: fetchStructure.SUCCESS,
|
|
35
|
-
payload: { data }
|
|
36
|
-
})
|
|
35
|
+
payload: { data },
|
|
36
|
+
}),
|
|
37
37
|
).toEqual(ancestry);
|
|
38
38
|
});
|
|
39
39
|
|
|
@@ -12,13 +12,13 @@ describe("reducers: structureFields", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the clearStructure.TRIGGER action", () => {
|
|
14
14
|
expect(structureFields(fooState, { type: clearStructure.TRIGGER })).toEqual(
|
|
15
|
-
initialState
|
|
15
|
+
initialState,
|
|
16
16
|
);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
it("should handle the fetchStructure.TRIGGER action", () => {
|
|
20
20
|
expect(
|
|
21
|
-
structureFields(fooState, { type: legacyFetchStructure.TRIGGER })
|
|
21
|
+
structureFields(fooState, { type: legacyFetchStructure.TRIGGER }),
|
|
22
22
|
).toEqual(initialState);
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ describe("reducers: structureFields", () => {
|
|
|
30
30
|
structureFields(fooState, {
|
|
31
31
|
type: legacyFetchStructure.SUCCESS,
|
|
32
32
|
payload: { data },
|
|
33
|
-
})
|
|
33
|
+
}),
|
|
34
34
|
).toMatchObject(data_fields);
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -48,7 +48,7 @@ describe("reducers: structuresFields", () => {
|
|
|
48
48
|
|
|
49
49
|
it("should handle the clearStructure.TRIGGER action", () => {
|
|
50
50
|
expect(
|
|
51
|
-
structuresFields(fooState, { type: clearStructure.TRIGGER })
|
|
51
|
+
structuresFields(fooState, { type: clearStructure.TRIGGER }),
|
|
52
52
|
).toEqual(initialState);
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -61,7 +61,7 @@ describe("reducers: structuresFields", () => {
|
|
|
61
61
|
structuresFields(fooState, {
|
|
62
62
|
type: legacyFetchStructure.SUCCESS,
|
|
63
63
|
payload: { data },
|
|
64
|
-
})
|
|
64
|
+
}),
|
|
65
65
|
).toMatchObject({ 2: data_fields });
|
|
66
66
|
});
|
|
67
67
|
|