@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
|
@@ -15,13 +15,13 @@ describe("reducers: structureImpactGraph", () => {
|
|
|
15
15
|
|
|
16
16
|
it("should return the initial state after receiving the clearStructure.TRIGGER action", () => {
|
|
17
17
|
expect(
|
|
18
|
-
structureImpactGraph(fooState, { type: clearStructure.TRIGGER })
|
|
18
|
+
structureImpactGraph(fooState, { type: clearStructure.TRIGGER }),
|
|
19
19
|
).toBe(initialState);
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
it("should return the initial state after receiving the legacyFetchStructure.TRIGGER action", () => {
|
|
23
23
|
expect(
|
|
24
|
-
structureImpactGraph(fooState, { type: legacyFetchStructure.TRIGGER })
|
|
24
|
+
structureImpactGraph(fooState, { type: legacyFetchStructure.TRIGGER }),
|
|
25
25
|
).toBe(initialState);
|
|
26
26
|
});
|
|
27
27
|
|
|
@@ -32,7 +32,7 @@ describe("reducers: structureImpactGraph", () => {
|
|
|
32
32
|
structureImpactGraph(fooState, {
|
|
33
33
|
type: fetchStructureGraph.SUCCESS,
|
|
34
34
|
payload,
|
|
35
|
-
})
|
|
35
|
+
}),
|
|
36
36
|
).toBe(data);
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -43,7 +43,7 @@ describe("reducers: structureImpactGraph", () => {
|
|
|
43
43
|
structureImpactGraph(fooState, {
|
|
44
44
|
type: createGraph.SUCCESS,
|
|
45
45
|
payload,
|
|
46
|
-
})
|
|
46
|
+
}),
|
|
47
47
|
).toBe(data);
|
|
48
48
|
});
|
|
49
49
|
|
|
@@ -54,7 +54,7 @@ describe("reducers: structureImpactGraph", () => {
|
|
|
54
54
|
structureImpactGraph(fooState, {
|
|
55
55
|
type: createGraph.SUCCESS,
|
|
56
56
|
payload,
|
|
57
|
-
})
|
|
57
|
+
}),
|
|
58
58
|
).toBe(fooState);
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -65,7 +65,7 @@ describe("reducers: structureImpactGraph", () => {
|
|
|
65
65
|
structureImpactGraph(fooState, {
|
|
66
66
|
type: fetchStructureGraph.SUCCESS,
|
|
67
67
|
payload,
|
|
68
|
-
})
|
|
68
|
+
}),
|
|
69
69
|
).toBe(fooState);
|
|
70
70
|
});
|
|
71
71
|
|
|
@@ -9,9 +9,9 @@ describe("reducers: structureImpactId", () => {
|
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
it("should return the initial state after receiving the legacyFetchStructure.TRIGGER action", () => {
|
|
12
|
-
expect(
|
|
13
|
-
|
|
14
|
-
);
|
|
12
|
+
expect(
|
|
13
|
+
structureImpactId(fooState, { type: legacyFetchStructure.TRIGGER }),
|
|
14
|
+
).toBe(initialState);
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
it("should extract the data from the payload after receiving the createStructureGraph.SUCCESS action", () => {
|
|
@@ -21,8 +21,8 @@ describe("reducers: structureImpactId", () => {
|
|
|
21
21
|
expect(
|
|
22
22
|
structureImpactId(fooState, {
|
|
23
23
|
type: createStructureGraph.SUCCESS,
|
|
24
|
-
payload
|
|
25
|
-
})
|
|
24
|
+
payload,
|
|
25
|
+
}),
|
|
26
26
|
).toBe(id);
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -33,8 +33,8 @@ describe("reducers: structureImpactId", () => {
|
|
|
33
33
|
expect(
|
|
34
34
|
structureImpactId(fooState, {
|
|
35
35
|
type: createStructureGraph.SUCCESS,
|
|
36
|
-
payload
|
|
37
|
-
})
|
|
36
|
+
payload,
|
|
37
|
+
}),
|
|
38
38
|
).toBe(fooState);
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -15,13 +15,13 @@ describe("reducers: structureLineageGraph", () => {
|
|
|
15
15
|
|
|
16
16
|
it("should return the initial state after receiving the clearStructure.TRIGGER action", () => {
|
|
17
17
|
expect(
|
|
18
|
-
structureLineageGraph(fooState, { type: clearStructure.TRIGGER })
|
|
18
|
+
structureLineageGraph(fooState, { type: clearStructure.TRIGGER }),
|
|
19
19
|
).toBe(initialState);
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
it("should return the initial state after receiving the legacyFetchStructure.TRIGGER action", () => {
|
|
23
23
|
expect(
|
|
24
|
-
structureLineageGraph(fooState, { type: legacyFetchStructure.TRIGGER })
|
|
24
|
+
structureLineageGraph(fooState, { type: legacyFetchStructure.TRIGGER }),
|
|
25
25
|
).toBe(initialState);
|
|
26
26
|
});
|
|
27
27
|
|
|
@@ -32,7 +32,7 @@ describe("reducers: structureLineageGraph", () => {
|
|
|
32
32
|
structureLineageGraph(fooState, {
|
|
33
33
|
type: fetchStructureGraph.SUCCESS,
|
|
34
34
|
payload,
|
|
35
|
-
})
|
|
35
|
+
}),
|
|
36
36
|
).toBe(data);
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -43,7 +43,7 @@ describe("reducers: structureLineageGraph", () => {
|
|
|
43
43
|
structureLineageGraph(fooState, {
|
|
44
44
|
type: createGraph.SUCCESS,
|
|
45
45
|
payload,
|
|
46
|
-
})
|
|
46
|
+
}),
|
|
47
47
|
).toBe(data);
|
|
48
48
|
});
|
|
49
49
|
|
|
@@ -54,7 +54,7 @@ describe("reducers: structureLineageGraph", () => {
|
|
|
54
54
|
structureLineageGraph(fooState, {
|
|
55
55
|
type: fetchStructureGraph.SUCCESS,
|
|
56
56
|
payload,
|
|
57
|
-
})
|
|
57
|
+
}),
|
|
58
58
|
).toBe(fooState);
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -65,7 +65,7 @@ describe("reducers: structureLineageGraph", () => {
|
|
|
65
65
|
structureLineageGraph(fooState, {
|
|
66
66
|
type: createGraph.SUCCESS,
|
|
67
67
|
payload,
|
|
68
|
-
})
|
|
68
|
+
}),
|
|
69
69
|
).toBe(fooState);
|
|
70
70
|
});
|
|
71
71
|
|
|
@@ -76,7 +76,7 @@ describe("reducers: structureLineageGraph", () => {
|
|
|
76
76
|
structureLineageGraph(fooState, {
|
|
77
77
|
type: fetchStructureGraph.SUCCESS,
|
|
78
78
|
payload,
|
|
79
|
-
})
|
|
79
|
+
}),
|
|
80
80
|
).toBe(fooState);
|
|
81
81
|
});
|
|
82
82
|
|
|
@@ -9,9 +9,9 @@ describe("reducers: structureLineageId", () => {
|
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
it("should return the initial state after receiving the legacyFetchStructure.TRIGGER action", () => {
|
|
12
|
-
expect(
|
|
13
|
-
|
|
14
|
-
);
|
|
12
|
+
expect(
|
|
13
|
+
structureLineageId(fooState, { type: legacyFetchStructure.TRIGGER }),
|
|
14
|
+
).toBe(initialState);
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
it("should extract the data from the payload after receiving the createStructureGraph.SUCCESS action", () => {
|
|
@@ -21,8 +21,8 @@ describe("reducers: structureLineageId", () => {
|
|
|
21
21
|
expect(
|
|
22
22
|
structureLineageId(fooState, {
|
|
23
23
|
type: createStructureGraph.SUCCESS,
|
|
24
|
-
payload
|
|
25
|
-
})
|
|
24
|
+
payload,
|
|
25
|
+
}),
|
|
26
26
|
).toBe(id);
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -33,8 +33,8 @@ describe("reducers: structureLineageId", () => {
|
|
|
33
33
|
expect(
|
|
34
34
|
structureLineageId(fooState, {
|
|
35
35
|
type: createStructureGraph.SUCCESS,
|
|
36
|
-
payload
|
|
37
|
-
})
|
|
36
|
+
payload,
|
|
37
|
+
}),
|
|
38
38
|
).toBe(fooState);
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -12,14 +12,14 @@ describe("reducers: structureLinks", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the clearStructure.TRIGGER action", () => {
|
|
14
14
|
expect(structureLinks(fooState, { type: clearStructure.TRIGGER })).toEqual(
|
|
15
|
-
initialState
|
|
15
|
+
initialState,
|
|
16
16
|
);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
it("should handle the legacyFetchStructure.TRIGGER action", () => {
|
|
20
|
-
expect(
|
|
21
|
-
|
|
22
|
-
);
|
|
20
|
+
expect(
|
|
21
|
+
structureLinks(fooState, { type: legacyFetchStructure.TRIGGER }),
|
|
22
|
+
).toEqual(initialState);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
it("should handle the legacyFetchStructure.SUCCESS action", () => {
|
|
@@ -29,8 +29,8 @@ describe("reducers: structureLinks", () => {
|
|
|
29
29
|
expect(
|
|
30
30
|
structureLinks(fooState, {
|
|
31
31
|
type: legacyFetchStructure.SUCCESS,
|
|
32
|
-
payload: { data }
|
|
33
|
-
})
|
|
32
|
+
payload: { data },
|
|
33
|
+
}),
|
|
34
34
|
).toMatchObject(links);
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -10,13 +10,13 @@ describe("reducers: structureLoading", () => {
|
|
|
10
10
|
|
|
11
11
|
it("should be true after receiving the fetchStructure.TRIGGER action", () => {
|
|
12
12
|
expect(structureLoading(false, { type: fetchStructure.TRIGGER })).toBe(
|
|
13
|
-
true
|
|
13
|
+
true,
|
|
14
14
|
);
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
it("should be false after receiving the fetchStructure.FULFILL action", () => {
|
|
18
18
|
expect(structureLoading(true, { type: fetchStructure.FULFILL })).toBe(
|
|
19
|
-
false
|
|
19
|
+
false,
|
|
20
20
|
);
|
|
21
21
|
});
|
|
22
22
|
|
|
@@ -14,13 +14,13 @@ describe("reducers: structureProfile", () => {
|
|
|
14
14
|
|
|
15
15
|
it("should handle the clearStructure.TRIGGER action", () => {
|
|
16
16
|
expect(structureProfile(fooState, { type: clearStructure.TRIGGER })).toBe(
|
|
17
|
-
initialState
|
|
17
|
+
initialState,
|
|
18
18
|
);
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
it("should handle the fetchStructure.TRIGGER action", () => {
|
|
22
22
|
expect(structureProfile(fooState, { type: fetchStructure.TRIGGER })).toBe(
|
|
23
|
-
initialState
|
|
23
|
+
initialState,
|
|
24
24
|
);
|
|
25
25
|
});
|
|
26
26
|
|
|
@@ -30,11 +30,11 @@ describe("reducers: structureProfile", () => {
|
|
|
30
30
|
const payload = { data };
|
|
31
31
|
|
|
32
32
|
expect(
|
|
33
|
-
structureProfile(fooState, { type: fetchStructure.SUCCESS, payload })
|
|
33
|
+
structureProfile(fooState, { type: fetchStructure.SUCCESS, payload }),
|
|
34
34
|
).toBe(profile);
|
|
35
35
|
|
|
36
36
|
expect(
|
|
37
|
-
structureProfile(fooState, { type: fetchStructure.SUCCESS, payload: {} })
|
|
37
|
+
structureProfile(fooState, { type: fetchStructure.SUCCESS, payload: {} }),
|
|
38
38
|
).toBe(initialState);
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -44,11 +44,14 @@ describe("reducers: structureProfile", () => {
|
|
|
44
44
|
const payload = { data };
|
|
45
45
|
|
|
46
46
|
expect(
|
|
47
|
-
structureProfile(fooState, { type: updateStructure.SUCCESS, payload })
|
|
47
|
+
structureProfile(fooState, { type: updateStructure.SUCCESS, payload }),
|
|
48
48
|
).toBe(profile);
|
|
49
49
|
|
|
50
50
|
expect(
|
|
51
|
-
structureProfile(fooState, {
|
|
51
|
+
structureProfile(fooState, {
|
|
52
|
+
type: updateStructure.SUCCESS,
|
|
53
|
+
payload: {},
|
|
54
|
+
}),
|
|
52
55
|
).toBe(initialState);
|
|
53
56
|
});
|
|
54
57
|
|
|
@@ -11,7 +11,7 @@ describe("reducers: structureQuery", () => {
|
|
|
11
11
|
|
|
12
12
|
it("should handle the clearStructureFilters.TRIGGER action", () => {
|
|
13
13
|
expect(
|
|
14
|
-
structureQuery(fooState, { type: clearStructureFilters.TRIGGER })
|
|
14
|
+
structureQuery(fooState, { type: clearStructureFilters.TRIGGER }),
|
|
15
15
|
).toEqual({
|
|
16
16
|
...fooState,
|
|
17
17
|
page: 1,
|
|
@@ -24,14 +24,14 @@ describe("reducers: structureQuery", () => {
|
|
|
24
24
|
it("should set the query from the payload", () => {
|
|
25
25
|
const payload = { query };
|
|
26
26
|
expect(
|
|
27
|
-
structureQuery(fooState, { type: searchStructures.TRIGGER, payload })
|
|
27
|
+
structureQuery(fooState, { type: searchStructures.TRIGGER, payload }),
|
|
28
28
|
).toMatchObject({ query });
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
it("when query is not empty it should order by relevance and name", () => {
|
|
32
32
|
const payload = { query };
|
|
33
33
|
expect(
|
|
34
|
-
structureQuery(fooState, { type: searchStructures.TRIGGER, payload })
|
|
34
|
+
structureQuery(fooState, { type: searchStructures.TRIGGER, payload }),
|
|
35
35
|
).toMatchObject({
|
|
36
36
|
query,
|
|
37
37
|
sort: [{ _score: "desc" }],
|
|
@@ -41,7 +41,7 @@ describe("reducers: structureQuery", () => {
|
|
|
41
41
|
it("when query is empty it should order by name", () => {
|
|
42
42
|
const payload = { query: "" };
|
|
43
43
|
expect(
|
|
44
|
-
structureQuery(fooState, { type: searchStructures.TRIGGER, payload })
|
|
44
|
+
structureQuery(fooState, { type: searchStructures.TRIGGER, payload }),
|
|
45
45
|
).toMatchObject({
|
|
46
46
|
query: "",
|
|
47
47
|
sort: [{ "name.raw": "asc" }],
|
|
@@ -18,7 +18,7 @@ describe("reducers: structureRedirect", () => {
|
|
|
18
18
|
|
|
19
19
|
it("should be initial state after receiving the clearRedirect.TRIGGER action", () => {
|
|
20
20
|
expect(structureRedirect(fooState, { type: clearRedirect.TRIGGER })).toBe(
|
|
21
|
-
initialState
|
|
21
|
+
initialState,
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -27,13 +27,13 @@ describe("reducers: structureRedirect", () => {
|
|
|
27
27
|
const payload = { id, redirect };
|
|
28
28
|
|
|
29
29
|
expect(
|
|
30
|
-
structureRedirect(fooState, { type: updateStructure.SUCCESS, payload })
|
|
30
|
+
structureRedirect(fooState, { type: updateStructure.SUCCESS, payload }),
|
|
31
31
|
).toBe(redirect);
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
it("should be /structureTypes after receiving updateStructureType.SUCCESS action", () => {
|
|
35
35
|
expect(
|
|
36
|
-
structureRedirect(fooState, { type: updateStructureType.SUCCESS })
|
|
36
|
+
structureRedirect(fooState, { type: updateStructureType.SUCCESS }),
|
|
37
37
|
).toBe("/structureTypes");
|
|
38
38
|
});
|
|
39
39
|
|
|
@@ -42,7 +42,7 @@ describe("reducers: structureRedirect", () => {
|
|
|
42
42
|
structureRedirect(fooState, {
|
|
43
43
|
type: updateStructure.SUCCESS,
|
|
44
44
|
payload: { id: 123 },
|
|
45
|
-
})
|
|
45
|
+
}),
|
|
46
46
|
).toBe(fooState);
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -50,14 +50,14 @@ describe("reducers: structureRedirect", () => {
|
|
|
50
50
|
expect(
|
|
51
51
|
structureRedirect(
|
|
52
52
|
fooState,
|
|
53
|
-
createReferenceDataset.success({ createReferenceDataset: { id } })
|
|
54
|
-
)
|
|
53
|
+
createReferenceDataset.success({ createReferenceDataset: { id } }),
|
|
54
|
+
),
|
|
55
55
|
).toBe("/referenceDatasets/42");
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
it("should be /referenceDatasets after receiving deleteReferenceDataset.SUCCESS", () => {
|
|
59
59
|
expect(structureRedirect(fooState, deleteReferenceDataset.success())).toBe(
|
|
60
|
-
"/referenceDatasets"
|
|
60
|
+
"/referenceDatasets",
|
|
61
61
|
);
|
|
62
62
|
});
|
|
63
63
|
|
|
@@ -65,8 +65,8 @@ describe("reducers: structureRedirect", () => {
|
|
|
65
65
|
expect(
|
|
66
66
|
structureRedirect(
|
|
67
67
|
fooState,
|
|
68
|
-
updateReferenceDataset.success({ updateReferenceDataset: { id } })
|
|
69
|
-
)
|
|
68
|
+
updateReferenceDataset.success({ updateReferenceDataset: { id } }),
|
|
69
|
+
),
|
|
70
70
|
).toBe("/referenceDatasets/42");
|
|
71
71
|
});
|
|
72
72
|
});
|
|
@@ -50,7 +50,7 @@ describe("reducers: childrenRelations", () => {
|
|
|
50
50
|
childrenRelations(fooState, {
|
|
51
51
|
type: fetchStructure.SUCCESS,
|
|
52
52
|
payload: { data },
|
|
53
|
-
})
|
|
53
|
+
}),
|
|
54
54
|
).toMatchObject(children);
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -58,7 +58,7 @@ describe("reducers: childrenRelations", () => {
|
|
|
58
58
|
expect(
|
|
59
59
|
childrenRelations(fooState, {
|
|
60
60
|
type: clearStructure.TRIGGER,
|
|
61
|
-
})
|
|
61
|
+
}),
|
|
62
62
|
).toMatchObject([]);
|
|
63
63
|
});
|
|
64
64
|
|
|
@@ -79,7 +79,7 @@ describe("reducers: parentRelations", () => {
|
|
|
79
79
|
parentRelations(fooState, {
|
|
80
80
|
type: fetchStructure.SUCCESS,
|
|
81
81
|
payload: { data },
|
|
82
|
-
})
|
|
82
|
+
}),
|
|
83
83
|
).toMatchObject(parents);
|
|
84
84
|
});
|
|
85
85
|
|
|
@@ -87,7 +87,7 @@ describe("reducers: parentRelations", () => {
|
|
|
87
87
|
expect(
|
|
88
88
|
childrenRelations(fooState, {
|
|
89
89
|
type: clearStructure.TRIGGER,
|
|
90
|
-
})
|
|
90
|
+
}),
|
|
91
91
|
).toMatchObject([]);
|
|
92
92
|
});
|
|
93
93
|
|
|
@@ -18,7 +18,7 @@ describe("reducers: structureSiblings", () => {
|
|
|
18
18
|
structureSiblings(fooState, {
|
|
19
19
|
type: fetchStructure.SUCCESS,
|
|
20
20
|
payload: { data },
|
|
21
|
-
})
|
|
21
|
+
}),
|
|
22
22
|
).toMatchObject(siblings);
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ describe("reducers: structureSiblings", () => {
|
|
|
30
30
|
structuresSiblings(fooState, {
|
|
31
31
|
type: fetchStructure.SUCCESS,
|
|
32
32
|
payload: { data },
|
|
33
|
-
})
|
|
33
|
+
}),
|
|
34
34
|
).toMatchObject({ 2: siblings });
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -12,7 +12,7 @@ describe("reducers: structureSystem", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the clearStructure.TRIGGER action", () => {
|
|
14
14
|
expect(structureSystem(fooState, { type: clearStructure.TRIGGER })).toEqual(
|
|
15
|
-
initialState
|
|
15
|
+
initialState,
|
|
16
16
|
);
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -23,8 +23,8 @@ describe("reducers: structureSystem", () => {
|
|
|
23
23
|
expect(
|
|
24
24
|
structureSystem(fooState, {
|
|
25
25
|
type: legacyFetchStructure.SUCCESS,
|
|
26
|
-
payload: { data }
|
|
27
|
-
})
|
|
26
|
+
payload: { data },
|
|
27
|
+
}),
|
|
28
28
|
).toEqual(system);
|
|
29
29
|
});
|
|
30
30
|
|
|
@@ -15,14 +15,14 @@ describe("reducers: structureTagSaving", () => {
|
|
|
15
15
|
|
|
16
16
|
it("should be false after receiving the deleteStructureTag.FULFILL action", () => {
|
|
17
17
|
expect(
|
|
18
|
-
structureTagSaving(fooState, deleteStructureTag.fulfill())
|
|
18
|
+
structureTagSaving(fooState, deleteStructureTag.fulfill()),
|
|
19
19
|
).toBeNull();
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
it("should be id or dataStructureId after receiving the tagStructure.TRIGGER action", () => {
|
|
23
23
|
expect(structureTagSaving(fooState, tagStructure({ id }))).toBe(id);
|
|
24
24
|
expect(
|
|
25
|
-
structureTagSaving(fooState, tagStructure({ dataStructureId: id }))
|
|
25
|
+
structureTagSaving(fooState, tagStructure({ dataStructureId: id })),
|
|
26
26
|
).toBe(id);
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -21,7 +21,7 @@ describe("reducers: structureType", () => {
|
|
|
21
21
|
structureType(fooState, {
|
|
22
22
|
type: fetchStructureType.SUCCESS,
|
|
23
23
|
payload: { data },
|
|
24
|
-
})
|
|
24
|
+
}),
|
|
25
25
|
).toMatchObject(data);
|
|
26
26
|
});
|
|
27
27
|
|
|
@@ -29,7 +29,7 @@ describe("reducers: structureType", () => {
|
|
|
29
29
|
expect(
|
|
30
30
|
structureType(fooState, {
|
|
31
31
|
type: clearStructureType.TRIGGER,
|
|
32
|
-
})
|
|
32
|
+
}),
|
|
33
33
|
).toBe(initialState);
|
|
34
34
|
});
|
|
35
35
|
|
|
@@ -13,24 +13,24 @@ describe("reducers: structureTypeLoading", () => {
|
|
|
13
13
|
it("should handle the fetchStructureType.TRIGGER action", () => {
|
|
14
14
|
expect(
|
|
15
15
|
structureTypeLoading(fooState, {
|
|
16
|
-
type: fetchStructureType.TRIGGER
|
|
17
|
-
})
|
|
16
|
+
type: fetchStructureType.TRIGGER,
|
|
17
|
+
}),
|
|
18
18
|
).toBe(true);
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
it("should handle the fetchStructureType.FULFILL action", () => {
|
|
22
22
|
expect(
|
|
23
23
|
structureTypeLoading(fooState, {
|
|
24
|
-
type: fetchStructureType.FULFILL
|
|
25
|
-
})
|
|
24
|
+
type: fetchStructureType.FULFILL,
|
|
25
|
+
}),
|
|
26
26
|
).toBe(false);
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
it("should handle the fetchStructureType.FAILURE action", () => {
|
|
30
30
|
expect(
|
|
31
31
|
structureTypeLoading(fooState, {
|
|
32
|
-
type: fetchStructureType.FAILURE
|
|
33
|
-
})
|
|
32
|
+
type: fetchStructureType.FAILURE,
|
|
33
|
+
}),
|
|
34
34
|
).toBe(false);
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -12,13 +12,13 @@ describe("reducers: structureVersion", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the clearStructure.TRIGGER action", () => {
|
|
14
14
|
expect(
|
|
15
|
-
structureVersion(fooState, { type: clearStructure.TRIGGER })
|
|
15
|
+
structureVersion(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
|
-
structureVersion(fooState, { type: fetchStructure.TRIGGER })
|
|
21
|
+
structureVersion(fooState, { type: fetchStructure.TRIGGER }),
|
|
22
22
|
).toEqual(initialState);
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ describe("reducers: structureVersion", () => {
|
|
|
27
27
|
const meta = { version };
|
|
28
28
|
|
|
29
29
|
expect(
|
|
30
|
-
structureVersion(fooState, { type: fetchStructure.SUCCESS, meta })
|
|
30
|
+
structureVersion(fooState, { type: fetchStructure.SUCCESS, meta }),
|
|
31
31
|
).toEqual(version);
|
|
32
32
|
});
|
|
33
33
|
|
|
@@ -35,7 +35,7 @@ describe("reducers: structureVersion", () => {
|
|
|
35
35
|
const meta = {};
|
|
36
36
|
|
|
37
37
|
expect(
|
|
38
|
-
structureVersion(fooState, { type: fetchStructure.SUCCESS, meta })
|
|
38
|
+
structureVersion(fooState, { type: fetchStructure.SUCCESS, meta }),
|
|
39
39
|
).toEqual(initialState);
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
clearStructure,
|
|
3
|
+
fetchStructure,
|
|
4
|
+
fetchStructureVersions,
|
|
5
|
+
} from "../../routines";
|
|
2
6
|
import { structureVersions } from "..";
|
|
3
7
|
|
|
4
8
|
const fooState = { foo: "bar" };
|
|
@@ -12,13 +16,13 @@ describe("reducers: structureVersions", () => {
|
|
|
12
16
|
|
|
13
17
|
it("should handle the clearStructure.TRIGGER action", () => {
|
|
14
18
|
expect(
|
|
15
|
-
structureVersions(fooState, { type: clearStructure.TRIGGER })
|
|
19
|
+
structureVersions(fooState, { type: clearStructure.TRIGGER }),
|
|
16
20
|
).toEqual(initialState);
|
|
17
21
|
});
|
|
18
22
|
|
|
19
23
|
it("should handle the fetchStructure.TRIGGER action", () => {
|
|
20
24
|
expect(
|
|
21
|
-
structureVersions(fooState, { type: fetchStructure.TRIGGER })
|
|
25
|
+
structureVersions(fooState, { type: fetchStructure.TRIGGER }),
|
|
22
26
|
).toEqual(fooState);
|
|
23
27
|
});
|
|
24
28
|
|
|
@@ -29,8 +33,8 @@ describe("reducers: structureVersions", () => {
|
|
|
29
33
|
expect(
|
|
30
34
|
structureVersions(fooState, {
|
|
31
35
|
type: fetchStructureVersions.SUCCESS,
|
|
32
|
-
payload: { data }
|
|
33
|
-
})
|
|
36
|
+
payload: { data },
|
|
37
|
+
}),
|
|
34
38
|
).toMatchObject(versions);
|
|
35
39
|
});
|
|
36
40
|
|
|
@@ -32,7 +32,7 @@ describe("reducers: structures", () => {
|
|
|
32
32
|
|
|
33
33
|
it("should handle the clearStructures.SUCCESS action", () => {
|
|
34
34
|
expect(structures(fooState, { type: clearStructures.TRIGGER })).toBe(
|
|
35
|
-
initialState
|
|
35
|
+
initialState,
|
|
36
36
|
);
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -43,7 +43,7 @@ describe("reducers: structures", () => {
|
|
|
43
43
|
structures(fooState, {
|
|
44
44
|
type: fetchStructures.SUCCESS,
|
|
45
45
|
payload: { data },
|
|
46
|
-
})
|
|
46
|
+
}),
|
|
47
47
|
).toMatchObject(someStructures);
|
|
48
48
|
});
|
|
49
49
|
|
|
@@ -52,7 +52,7 @@ describe("reducers: structures", () => {
|
|
|
52
52
|
const data = { id: 1, name: "foo" };
|
|
53
53
|
const expected = [data, { id: 2 }];
|
|
54
54
|
expect(
|
|
55
|
-
structures(state, { type: updateStructure.SUCCESS, payload: { data } })
|
|
55
|
+
structures(state, { type: updateStructure.SUCCESS, payload: { data } }),
|
|
56
56
|
).toMatchObject(expected);
|
|
57
57
|
});
|
|
58
58
|
|
|
@@ -10,35 +10,35 @@ describe("reducers: structuresAliasNameMode", () => {
|
|
|
10
10
|
expect(
|
|
11
11
|
structuresAliasNameMode(undefined, {
|
|
12
12
|
type: toggleStructuresAliasNameMode.TRIGGER,
|
|
13
|
-
})
|
|
13
|
+
}),
|
|
14
14
|
).toBe(true);
|
|
15
15
|
|
|
16
16
|
expect(
|
|
17
17
|
structuresAliasNameMode(false, {
|
|
18
18
|
type: toggleStructuresAliasNameMode.TRIGGER,
|
|
19
19
|
payload: true,
|
|
20
|
-
})
|
|
20
|
+
}),
|
|
21
21
|
).toBe(true);
|
|
22
22
|
|
|
23
23
|
expect(
|
|
24
24
|
structuresAliasNameMode(true, {
|
|
25
25
|
type: toggleStructuresAliasNameMode.TRIGGER,
|
|
26
26
|
payload: false,
|
|
27
|
-
})
|
|
27
|
+
}),
|
|
28
28
|
).toBe(false);
|
|
29
29
|
|
|
30
30
|
expect(
|
|
31
31
|
structuresAliasNameMode(true, {
|
|
32
32
|
type: toggleStructuresAliasNameMode.TRIGGER,
|
|
33
33
|
payload: true,
|
|
34
|
-
})
|
|
34
|
+
}),
|
|
35
35
|
).toBe(true);
|
|
36
36
|
|
|
37
37
|
expect(
|
|
38
38
|
structuresAliasNameMode(false, {
|
|
39
39
|
type: toggleStructuresAliasNameMode.TRIGGER,
|
|
40
40
|
payload: false,
|
|
41
|
-
})
|
|
41
|
+
}),
|
|
42
42
|
).toBe(false);
|
|
43
43
|
});
|
|
44
44
|
});
|