@truedat/dd 8.7.0 → 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
|
@@ -142,16 +142,16 @@ const mapStateToProps = ({
|
|
|
142
142
|
// saving: structureTypeSaving,
|
|
143
143
|
templateOptions: _.flow(
|
|
144
144
|
_.sortBy(accentInsensitivePathOrder("name")),
|
|
145
|
-
_.map(({ id: value, name: text }) => ({ text, value }))
|
|
145
|
+
_.map(({ id: value, name: text }) => ({ text, value })),
|
|
146
146
|
)(templates),
|
|
147
147
|
fieldOptions: _.flow(
|
|
148
148
|
_.propOr([], "metadata_fields"),
|
|
149
149
|
_.sortBy(accentInsensitiveOrder),
|
|
150
|
-
_.map((value) => ({ text: value, value }))
|
|
150
|
+
_.map((value) => ({ text: value, value })),
|
|
151
151
|
)(structureType),
|
|
152
152
|
structureType,
|
|
153
153
|
});
|
|
154
154
|
|
|
155
155
|
export default connect(mapStateToProps, { updateStructureType })(
|
|
156
|
-
StructureTypeForm
|
|
156
|
+
StructureTypeForm,
|
|
157
157
|
);
|
|
@@ -10,7 +10,7 @@ import StructureType from "./StructureType";
|
|
|
10
10
|
|
|
11
11
|
export default function StructureTypesRoutes() {
|
|
12
12
|
const { structureType, structureTypeLoading } = useSelector(
|
|
13
|
-
_.pick(["structureType", "structureTypeLoading"])
|
|
13
|
+
_.pick(["structureType", "structureTypeLoading"]),
|
|
14
14
|
);
|
|
15
15
|
return (
|
|
16
16
|
<Routes>
|
|
@@ -3,32 +3,33 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { useParams } from "react-router";
|
|
5
5
|
import { List } from "semantic-ui-react";
|
|
6
|
-
import StructureVersionListItem from "./StructureVersionListItem";
|
|
7
6
|
import { useQuery } from "@apollo/client";
|
|
8
7
|
import { DATA_STRUCTURE_VERSION_VERSIONS_QUERY } from "../api/queries";
|
|
8
|
+
import StructureVersionListItem from "./StructureVersionListItem";
|
|
9
9
|
|
|
10
|
-
export const StructureVersions = () =>{
|
|
10
|
+
export const StructureVersions = () => {
|
|
11
11
|
const { id } = useParams();
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
const { data } = useQuery(DATA_STRUCTURE_VERSION_VERSIONS_QUERY, {
|
|
14
|
-
fetchPolicy: "network-only",
|
|
14
|
+
fetchPolicy: "network-only",
|
|
15
15
|
variables: { dataStructureId: id, version: "latest" },
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
const versions = data?.dataStructureVersion.versions;
|
|
19
19
|
return (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
!_.isEmpty(versions) && (
|
|
21
|
+
<List selection>
|
|
22
|
+
{versions.map((v) => (
|
|
23
|
+
<StructureVersionListItem
|
|
24
|
+
key={v?.id ?? `${v?.version}-${v?.inserted_at}`}
|
|
25
|
+
id={id}
|
|
26
|
+
{...v}
|
|
27
|
+
/>
|
|
28
|
+
))}
|
|
29
|
+
</List>
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
};
|
|
32
33
|
|
|
33
34
|
StructureVersions.propTypes = {
|
|
34
35
|
id: PropTypes.number,
|
|
@@ -47,7 +47,7 @@ export const StructuresBulkUpdate = ({
|
|
|
47
47
|
_.flow(_.prop("values"), _.head, findTemplateName),
|
|
48
48
|
],
|
|
49
49
|
[_.stubTrue, _.constant("")],
|
|
50
|
-
])
|
|
50
|
+
]),
|
|
51
51
|
)(allFilters);
|
|
52
52
|
|
|
53
53
|
const domainIds = _.flow(
|
|
@@ -56,7 +56,7 @@ export const StructuresBulkUpdate = ({
|
|
|
56
56
|
_.cond([
|
|
57
57
|
[(domains) => _.size(domains) == 1, _.identity],
|
|
58
58
|
[_.stubTrue, _.constant(null)],
|
|
59
|
-
])
|
|
59
|
+
]),
|
|
60
60
|
)(allFilters);
|
|
61
61
|
|
|
62
62
|
const { data, loading } = useTemplate({ name: templateName, domainIds });
|
|
@@ -79,7 +79,7 @@ export const StructuresBulkUpdate = ({
|
|
|
79
79
|
|
|
80
80
|
const parsedContent = _.flow(
|
|
81
81
|
applyTemplateWithoutDefaults(template),
|
|
82
|
-
_.omitBy(isEmptyValue)
|
|
82
|
+
_.omitBy(isEmptyValue),
|
|
83
83
|
)(content);
|
|
84
84
|
|
|
85
85
|
bulkUpdateStructures({
|
|
@@ -188,5 +188,5 @@ const mapStateToProps = ({
|
|
|
188
188
|
});
|
|
189
189
|
|
|
190
190
|
export default connect(mapStateToProps, { bulkUpdateStructures })(
|
|
191
|
-
StructuresBulkUpdate
|
|
191
|
+
StructuresBulkUpdate,
|
|
192
192
|
);
|
|
@@ -42,7 +42,7 @@ export const StructuresDownloadOption = ({ setDownloading }) => {
|
|
|
42
42
|
|
|
43
43
|
const headerLabels = _.flow(
|
|
44
44
|
_.map((l) => [l, formatMessage({ id: `structures.props.${l}` })]),
|
|
45
|
-
_.fromPairs
|
|
45
|
+
_.fromPairs,
|
|
46
46
|
)(staticLabels);
|
|
47
47
|
|
|
48
48
|
const isDisabled = _.isEmpty(structures);
|
|
@@ -53,7 +53,7 @@ export function StructuresGrantRequestViewContent() {
|
|
|
53
53
|
setIsOverflown(false);
|
|
54
54
|
setIsOverflown(isOverflownFn(segment.current));
|
|
55
55
|
},
|
|
56
|
-
{ leading: true, trailing: false }
|
|
56
|
+
{ leading: true, trailing: false },
|
|
57
57
|
);
|
|
58
58
|
|
|
59
59
|
addEventListener("resize", checkOverflow);
|
|
@@ -38,7 +38,7 @@ const makeMapStateToProps = () => {
|
|
|
38
38
|
const searchQuerySelector = makeSearchQuerySelector(
|
|
39
39
|
"structureQuery",
|
|
40
40
|
"structureActiveFilters",
|
|
41
|
-
"structureDateFilter"
|
|
41
|
+
"structureDateFilter",
|
|
42
42
|
);
|
|
43
43
|
const mapStateToProps = (state, props) => ({
|
|
44
44
|
payload: searchQuerySelector(state, props),
|
|
@@ -12,11 +12,11 @@ import StructuresBulkUpdate from "./StructuresBulkUpdate";
|
|
|
12
12
|
import StructuresView from "./StructuresView";
|
|
13
13
|
|
|
14
14
|
const RuleImplementationsLoader = React.lazy(
|
|
15
|
-
() => import("@truedat/dq/components/RuleImplementationsLoader")
|
|
15
|
+
() => import("@truedat/dq/components/RuleImplementationsLoader"),
|
|
16
16
|
);
|
|
17
17
|
|
|
18
18
|
const RolesLoader = React.lazy(
|
|
19
|
-
() => import("@truedat/auth/roles/components/RolesLoader")
|
|
19
|
+
() => import("@truedat/auth/roles/components/RolesLoader"),
|
|
20
20
|
);
|
|
21
21
|
|
|
22
22
|
const StructureImplementationsLoader = () => {
|
|
@@ -11,7 +11,7 @@ const isPositive = (links, id) => {
|
|
|
11
11
|
const link = _.find(
|
|
12
12
|
(link) =>
|
|
13
13
|
_.propEq("target_id", id)(link) &&
|
|
14
|
-
_.propEq("target_type", "data_structure")(link)
|
|
14
|
+
_.propEq("target_type", "data_structure")(link),
|
|
15
15
|
)(links);
|
|
16
16
|
return link ? true : false;
|
|
17
17
|
};
|
|
@@ -21,9 +21,9 @@ const getOrigin = (links, id) => {
|
|
|
21
21
|
_.find(
|
|
22
22
|
(link) =>
|
|
23
23
|
_.propEq("target_id", id)(link) &&
|
|
24
|
-
_.propEq("target_type", "data_structure")(link)
|
|
24
|
+
_.propEq("target_type", "data_structure")(link),
|
|
25
25
|
),
|
|
26
|
-
_.get("origin")
|
|
26
|
+
_.get("origin"),
|
|
27
27
|
)(links);
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -47,7 +47,7 @@ export const StructuresTable = ({
|
|
|
47
47
|
const handleSortSelection = searchContext?.handleSortSelection;
|
|
48
48
|
|
|
49
49
|
const columns = useSelector((state) =>
|
|
50
|
-
structureColumnsSelector(state, defaultFilters, overwriteColumns)
|
|
50
|
+
structureColumnsSelector(state, defaultFilters, overwriteColumns),
|
|
51
51
|
);
|
|
52
52
|
|
|
53
53
|
const structures = overwriteStructures || searchData?.data || [];
|
|
@@ -50,8 +50,8 @@ export const StructuresUpdateOption = ({
|
|
|
50
50
|
setDisabled(
|
|
51
51
|
_.flow(
|
|
52
52
|
_.map("name"),
|
|
53
|
-
_.negate(_.includes(_.prop("type")(structure)))
|
|
54
|
-
)(structureTypes)
|
|
53
|
+
_.negate(_.includes(_.prop("type")(structure))),
|
|
54
|
+
)(structureTypes),
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
}, [
|
|
@@ -71,7 +71,7 @@ export const StructuresUpdateOption = ({
|
|
|
71
71
|
searchParams,
|
|
72
72
|
allFilters,
|
|
73
73
|
actions,
|
|
74
|
-
})
|
|
74
|
+
}),
|
|
75
75
|
);
|
|
76
76
|
navigate(STRUCTURES_BULK_UPDATE);
|
|
77
77
|
};
|
|
@@ -13,7 +13,7 @@ import "../styles/structuresUploadEventColumns.less";
|
|
|
13
13
|
|
|
14
14
|
export const getColumnsWithData = (ruleResults, columns) =>
|
|
15
15
|
_.filter((column) =>
|
|
16
|
-
_.any(_.flow(columnDecorator(column), _.negate(_.isEmpty)))(ruleResults)
|
|
16
|
+
_.any(_.flow(columnDecorator(column), _.negate(_.isEmpty)))(ruleResults),
|
|
17
17
|
)(columns);
|
|
18
18
|
|
|
19
19
|
export const StructuresUploadEventsTable = ({
|
|
@@ -44,7 +44,7 @@ export const StructuresUploadEventsTable = ({
|
|
|
44
44
|
message: error.message,
|
|
45
45
|
},
|
|
46
46
|
defaultMessage: "structures.bulkUploadStructures.success.errors",
|
|
47
|
-
}))
|
|
47
|
+
})),
|
|
48
48
|
)(data)
|
|
49
49
|
: [];
|
|
50
50
|
};
|
|
@@ -62,13 +62,13 @@ export const StructuresUploadEventsTable = ({
|
|
|
62
62
|
: formatMessage(
|
|
63
63
|
{
|
|
64
64
|
id: _.isEmpty(event.response.errors)
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
? "structures.bulkUpdateStructures.success.header.without_errors"
|
|
66
|
+
: "structures.bulkUpdateStructures.success.header",
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
count_ids: event.response.ids.length,
|
|
70
70
|
count_errors: event.response.errors.length,
|
|
71
|
-
}
|
|
71
|
+
},
|
|
72
72
|
),
|
|
73
73
|
translatedErrors: _.map((error) => {
|
|
74
74
|
return formatMessage({ id: error.id }, error.fields);
|
|
@@ -78,7 +78,7 @@ export const StructuresUploadEventsTable = ({
|
|
|
78
78
|
},
|
|
79
79
|
}),
|
|
80
80
|
{},
|
|
81
|
-
structuresUploadEvents
|
|
81
|
+
structuresUploadEvents,
|
|
82
82
|
);
|
|
83
83
|
|
|
84
84
|
setEvents(events);
|
|
@@ -158,7 +158,7 @@ export const StructuresUploadEventsTable = ({
|
|
|
158
158
|
)}
|
|
159
159
|
</Table.Row>
|
|
160
160
|
),
|
|
161
|
-
Object.keys(events)
|
|
161
|
+
Object.keys(events),
|
|
162
162
|
)}
|
|
163
163
|
</Table.Body>
|
|
164
164
|
</Table>
|
|
@@ -185,12 +185,12 @@ StructuresUploadEventsTable.propTypes = {
|
|
|
185
185
|
const mapStateToProps = (state) => ({
|
|
186
186
|
columns: getColumnsWithData(
|
|
187
187
|
state.structuresUploadEvents,
|
|
188
|
-
getStructuresUploadEventColumns(state)
|
|
188
|
+
getStructuresUploadEventColumns(state),
|
|
189
189
|
),
|
|
190
190
|
structuresUploadEvents: state.structuresUploadEvents,
|
|
191
191
|
structuresUploadEventsLoading: state.structuresUploadEventsLoading,
|
|
192
192
|
});
|
|
193
193
|
|
|
194
194
|
export default connect(mapStateToProps, { fetchStructuresUploadEvents })(
|
|
195
|
-
StructuresUploadEventsTable
|
|
195
|
+
StructuresUploadEventsTable,
|
|
196
196
|
);
|
|
@@ -3,24 +3,24 @@ import { useWebContext } from "@truedat/core/webContext";
|
|
|
3
3
|
import { Dropdown } from "semantic-ui-react";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { UploadModal } from "@truedat/core/components";
|
|
6
|
-
import { useDataStructureUpload } from "../hooks/useStructures";
|
|
7
6
|
import { linkTo } from "@truedat/core/routes";
|
|
7
|
+
import { useDataStructureUpload } from "../hooks/useStructures";
|
|
8
8
|
|
|
9
9
|
const buildAlertResult =
|
|
10
10
|
(setAlertMessage) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
({ data }) => {
|
|
12
|
+
setAlertMessage({
|
|
13
|
+
error: false,
|
|
14
|
+
header: "structures.bulkUpload.alert.success.header",
|
|
15
|
+
icon: "check",
|
|
16
|
+
color: "blue",
|
|
17
|
+
text: "",
|
|
18
|
+
anchor: {
|
|
19
|
+
reference: linkTo.STRUCTURE_NOTES_UPLOAD_JOB({ id: data.job_id }),
|
|
20
|
+
label: "structures.bulkUpload.job.header",
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
24
|
|
|
25
25
|
export const StructuresUploadOption = ({ canAutoPublish }) => {
|
|
26
26
|
const { formatMessage, locale } = useIntl();
|
|
@@ -19,7 +19,7 @@ import StructuresOptions from "./StructuresOptions";
|
|
|
19
19
|
import StructuresSearchResults from "./StructuresSearchResults";
|
|
20
20
|
import SystemCards from "./SystemCards";
|
|
21
21
|
import CatalogCustomViewCards from "./CatalogCustomViewCards";
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
const StructuresHeader = () => {
|
|
24
24
|
const { formatMessage } = useIntl();
|
|
25
25
|
const match = useMatch(BUCKETS_VIEW);
|
|
@@ -16,11 +16,11 @@ export const SystemCards = ({ systems, structureTypes }) => {
|
|
|
16
16
|
? _.set(
|
|
17
17
|
"dynamic_content.system_group",
|
|
18
18
|
{ value: "default", origin: "default" },
|
|
19
|
-
system
|
|
19
|
+
system,
|
|
20
20
|
)
|
|
21
|
-
: system
|
|
21
|
+
: system,
|
|
22
22
|
),
|
|
23
|
-
_.groupBy("dynamic_content.system_group.value")
|
|
23
|
+
_.groupBy("dynamic_content.system_group.value"),
|
|
24
24
|
)(systems);
|
|
25
25
|
|
|
26
26
|
return Object.keys(groups).length > 1 ? (
|
|
@@ -37,7 +37,7 @@ export const SystemCards = ({ systems, structureTypes }) => {
|
|
|
37
37
|
dynamic_content={dynamic_content}
|
|
38
38
|
structureTypes={structureTypes}
|
|
39
39
|
/>
|
|
40
|
-
)
|
|
40
|
+
),
|
|
41
41
|
)(systems)}
|
|
42
42
|
</Card.Group>
|
|
43
43
|
);
|
|
@@ -100,7 +100,7 @@ export const SystemsPopup = ({ structures_count, structureTypes }) => {
|
|
|
100
100
|
<Table.Body>
|
|
101
101
|
{_.propOr(
|
|
102
102
|
[],
|
|
103
|
-
"types"
|
|
103
|
+
"types",
|
|
104
104
|
)(structures_count).map((type, index) => (
|
|
105
105
|
<Table.Row key={index}>
|
|
106
106
|
<Table.Cell>
|
|
@@ -117,8 +117,8 @@ export const SystemsPopup = ({ structures_count, structureTypes }) => {
|
|
|
117
117
|
defaultMessage={
|
|
118
118
|
_.prop("translation")(
|
|
119
119
|
_.find(_.propEq("name", _.prop("name")(type)))(
|
|
120
|
-
structureTypes
|
|
121
|
-
)
|
|
120
|
+
structureTypes,
|
|
121
|
+
),
|
|
122
122
|
) || _.prop("name")(type)
|
|
123
123
|
}
|
|
124
124
|
/>
|
|
@@ -19,7 +19,7 @@ import { createSystem, updateSystem } from "../routines";
|
|
|
19
19
|
const DynamicForm = lazy(() => import("@truedat/df/components/DynamicForm"));
|
|
20
20
|
|
|
21
21
|
const TemplateLoader = lazy(
|
|
22
|
-
() => import("@truedat/df/templates/components/TemplateLoader")
|
|
22
|
+
() => import("@truedat/df/templates/components/TemplateLoader"),
|
|
23
23
|
);
|
|
24
24
|
|
|
25
25
|
export const SystemForm = ({
|
|
@@ -140,5 +140,5 @@ SystemForm.propTypes = {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
export default connect(mapStateToProps, { createSystem, updateSystem })(
|
|
143
|
-
SystemForm
|
|
143
|
+
SystemForm,
|
|
144
144
|
);
|
|
@@ -14,7 +14,7 @@ export default function SystemStructures() {
|
|
|
14
14
|
const dispatch = useDispatch();
|
|
15
15
|
|
|
16
16
|
const { navFilter, systemStructuresLoading } = useSelector(
|
|
17
|
-
_.pick(["navFilter", "systemStructuresLoading"])
|
|
17
|
+
_.pick(["navFilter", "systemStructuresLoading"]),
|
|
18
18
|
);
|
|
19
19
|
const system = useSelector((state) => getSystem(state, systemId));
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ export default function SystemStructures() {
|
|
|
23
23
|
saveNavFilter({
|
|
24
24
|
view: "SYSTEM_STRUCTURES",
|
|
25
25
|
filter: { system_id: systemId },
|
|
26
|
-
})
|
|
26
|
+
}),
|
|
27
27
|
);
|
|
28
28
|
}, [systemId]);
|
|
29
29
|
|
|
@@ -3,12 +3,12 @@ import { lazy } from "react";
|
|
|
3
3
|
import { useSelector } from "react-redux";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import { Header, Segment, Image } from "semantic-ui-react";
|
|
6
|
-
import { getSystemTemplate } from "../selectors";
|
|
7
|
-
import SystemEditButton from "./SystemEditButton";
|
|
8
6
|
import searchImage from "assets/searching.png";
|
|
9
7
|
import Loading from "@truedat/core/components/Loading";
|
|
8
|
+
import { getSystemTemplate } from "../selectors";
|
|
9
|
+
import SystemEditButton from "./SystemEditButton";
|
|
10
10
|
const DynamicFormViewer = lazy(
|
|
11
|
-
() => import("@truedat/df/components/DynamicFormViewer")
|
|
11
|
+
() => import("@truedat/df/components/DynamicFormViewer"),
|
|
12
12
|
);
|
|
13
13
|
|
|
14
14
|
export const SystemView = ({ system }) => {
|
package/src/components/Task.js
CHANGED
|
@@ -35,8 +35,8 @@ function Task() {
|
|
|
35
35
|
min: Math.min(stats.min || Infinity, memory),
|
|
36
36
|
last: memory,
|
|
37
37
|
}),
|
|
38
|
-
{}
|
|
39
|
-
)
|
|
38
|
+
{},
|
|
39
|
+
),
|
|
40
40
|
)(task);
|
|
41
41
|
|
|
42
42
|
const parseMemory = (value) => `${Math.round(value / 1024 / 1024)}MB`;
|
|
@@ -116,7 +116,7 @@ function Task() {
|
|
|
116
116
|
<Grid columns={4} divided>
|
|
117
117
|
<Grid.Row>
|
|
118
118
|
{properties.map(({ name, content }) =>
|
|
119
|
-
propertyElement(name, content)
|
|
119
|
+
propertyElement(name, content),
|
|
120
120
|
)}
|
|
121
121
|
</Grid.Row>
|
|
122
122
|
</Grid>
|
|
@@ -132,15 +132,15 @@ function Task() {
|
|
|
132
132
|
<Grid.Row>
|
|
133
133
|
{propertyElement(
|
|
134
134
|
"task.memory.max",
|
|
135
|
-
parseMemory(memoryStats?.max)
|
|
135
|
+
parseMemory(memoryStats?.max),
|
|
136
136
|
)}
|
|
137
137
|
{propertyElement(
|
|
138
138
|
"task.memory.min",
|
|
139
|
-
parseMemory(memoryStats?.min)
|
|
139
|
+
parseMemory(memoryStats?.min),
|
|
140
140
|
)}
|
|
141
141
|
{propertyElement(
|
|
142
142
|
"task.memory.last",
|
|
143
|
-
parseMemory(memoryStats?.last)
|
|
143
|
+
parseMemory(memoryStats?.last),
|
|
144
144
|
)}
|
|
145
145
|
</Grid.Row>
|
|
146
146
|
</Grid>
|
package/src/components/Tasks.js
CHANGED
|
@@ -19,7 +19,7 @@ export const Tasks = ({ reindexAllGrants, reindexAllStructures }) => {
|
|
|
19
19
|
const { formatMessage } = useIntl();
|
|
20
20
|
const tasks = _.flow(
|
|
21
21
|
_.get("tasks"),
|
|
22
|
-
_.orderBy(["started_at"], ["desc"])
|
|
22
|
+
_.orderBy(["started_at"], ["desc"]),
|
|
23
23
|
)(data);
|
|
24
24
|
|
|
25
25
|
return (
|
|
@@ -16,7 +16,7 @@ export const ValueConditionStructure = ({
|
|
|
16
16
|
_.flow(
|
|
17
17
|
_.find((s) => s.id == structureId),
|
|
18
18
|
_.prop("path"),
|
|
19
|
-
_.last
|
|
19
|
+
_.last,
|
|
20
20
|
)(siblings);
|
|
21
21
|
const siblingIds = _.map("id")(siblings);
|
|
22
22
|
const parseSiblings = (fields, label) =>
|
|
@@ -33,7 +33,7 @@ export const ValueConditionStructure = ({
|
|
|
33
33
|
const label = getSiblingParent(k);
|
|
34
34
|
return parseSiblings(fields, label);
|
|
35
35
|
}),
|
|
36
|
-
_.flatten
|
|
36
|
+
_.flatten,
|
|
37
37
|
)(structuresSiblings) || [];
|
|
38
38
|
return (
|
|
39
39
|
<StructureFieldsDropdown
|
|
@@ -29,7 +29,7 @@ describe("<BucketView />", () => {
|
|
|
29
29
|
|
|
30
30
|
const rendered = render(
|
|
31
31
|
<BucketView {...{ navFilter, saveNavFilter }} />,
|
|
32
|
-
renderOpts
|
|
32
|
+
renderOpts,
|
|
33
33
|
);
|
|
34
34
|
await waitForLoad(rendered);
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ describe("<BucketView />", () => {
|
|
|
37
37
|
expect(saveNavFilter).toHaveBeenCalledWith({
|
|
38
38
|
view: "BUCKET_VIEW",
|
|
39
39
|
filter: { "metadata.region": "eu-west-1" },
|
|
40
|
-
})
|
|
40
|
+
}),
|
|
41
41
|
);
|
|
42
42
|
});
|
|
43
43
|
});
|
|
@@ -51,7 +51,7 @@ describe("<CatalogViewConfigFormLoader />", () => {
|
|
|
51
51
|
selected: true,
|
|
52
52
|
});
|
|
53
53
|
expect(
|
|
54
|
-
within(selectedFieldType).getByText(/metadata/i)
|
|
54
|
+
within(selectedFieldType).getByText(/metadata/i),
|
|
55
55
|
).toBeInTheDocument();
|
|
56
56
|
|
|
57
57
|
const fieldName = rendered.getByRole("textbox", { name: /fieldname/i });
|
|
@@ -72,7 +72,7 @@ describe("<CatalogViewConfigFormLoader />", () => {
|
|
|
72
72
|
id: "123",
|
|
73
73
|
fieldType: "metadata",
|
|
74
74
|
fieldName: "updatedFieldName",
|
|
75
|
-
})
|
|
75
|
+
}),
|
|
76
76
|
);
|
|
77
77
|
});
|
|
78
78
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import userEvent from "@testing-library/user-event";
|
|
2
2
|
import { waitFor, within } from "@testing-library/react";
|
|
3
3
|
import { render, waitForLoad } from "@truedat/test/render";
|
|
4
|
-
import { CatalogViewConfigsLoader } from "../CatalogViewConfigs";
|
|
5
4
|
import { CATALOG_VIEW_CONFIGS_QUERY } from "@truedat/core/api/queries";
|
|
5
|
+
import { CatalogViewConfigsLoader } from "../CatalogViewConfigs";
|
|
6
6
|
import { deleteCatalogViewConfig } from "../../routines";
|
|
7
7
|
|
|
8
8
|
const config = {
|
|
@@ -60,7 +60,7 @@ describe("<CatalogViewConfigsLoader />", () => {
|
|
|
60
60
|
expect(dispatch).toHaveBeenLastCalledWith(
|
|
61
61
|
deleteCatalogViewConfig({
|
|
62
62
|
id: "123",
|
|
63
|
-
})
|
|
63
|
+
}),
|
|
64
64
|
);
|
|
65
65
|
});
|
|
66
66
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
|
-
import DictionaryRoutes from "../DictionaryRoutes";
|
|
4
3
|
import { useAuthorized } from "@truedat/core/hooks/useAuthorized";
|
|
5
4
|
import {
|
|
6
5
|
BUCKET_VIEW_CONFIG_EDIT,
|
|
@@ -17,6 +16,7 @@ import {
|
|
|
17
16
|
PROFILE_EXECUTION,
|
|
18
17
|
TASKS,
|
|
19
18
|
} from "@truedat/core/routes";
|
|
19
|
+
import DictionaryRoutes from "../DictionaryRoutes";
|
|
20
20
|
|
|
21
21
|
jest.mock("@truedat/core/hooks/useAuthorized", () => ({
|
|
22
22
|
useAuthorized: jest.fn(() => true),
|
|
@@ -28,8 +28,12 @@ jest.mock("@truedat/core/components/SystemsLoader", () => () => (
|
|
|
28
28
|
jest.mock("@truedat/core/components/TemplatesLoader", () => () => (
|
|
29
29
|
<div>TemplatesLoader</div>
|
|
30
30
|
));
|
|
31
|
-
jest.mock("@truedat/core/components/UploadJobs", () => () =>
|
|
32
|
-
|
|
31
|
+
jest.mock("@truedat/core/components/UploadJobs", () => () => (
|
|
32
|
+
<div>UploadJobs</div>
|
|
33
|
+
));
|
|
34
|
+
jest.mock("@truedat/core/components/UploadJob", () => () => (
|
|
35
|
+
<div>UploadJob</div>
|
|
36
|
+
));
|
|
33
37
|
|
|
34
38
|
jest.mock("../CatalogViewConfigs", () => () => <div>CatalogViewConfigs</div>);
|
|
35
39
|
jest.mock("../CatalogViewConfigForm", () => ({
|
|
@@ -70,7 +70,7 @@ describe("<EditDomainForm />", () => {
|
|
|
70
70
|
expect.objectContaining({
|
|
71
71
|
data_structure: { domain_ids: ["1"], id: 42 },
|
|
72
72
|
inherit: true,
|
|
73
|
-
})
|
|
73
|
+
}),
|
|
74
74
|
);
|
|
75
75
|
});
|
|
76
76
|
|
|
@@ -96,7 +96,7 @@ describe("<EditDomainForm />", () => {
|
|
|
96
96
|
expect.objectContaining({
|
|
97
97
|
data_structure: { domain_ids: ["1"], id: 42 },
|
|
98
98
|
inherit: false,
|
|
99
|
-
})
|
|
99
|
+
}),
|
|
100
100
|
);
|
|
101
101
|
});
|
|
102
102
|
|
|
@@ -122,7 +122,7 @@ describe("<EditDomainForm />", () => {
|
|
|
122
122
|
expect.objectContaining({
|
|
123
123
|
data_structure: { domain_ids: ["2", "1"], id: 42 },
|
|
124
124
|
inherit: true,
|
|
125
|
-
})
|
|
125
|
+
}),
|
|
126
126
|
);
|
|
127
127
|
});
|
|
128
128
|
});
|