@truedat/dd 8.7.0 → 8.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/api/queries.js +1 -0
- package/src/components/BucketView.js +2 -2
- package/src/components/CatalogCustomViewCards.js +1 -1
- package/src/components/DictionaryRoutes.js +3 -3
- package/src/components/FilteredNav.js +3 -3
- package/src/components/Grant.js +4 -4
- package/src/components/GrantApprovalRule.js +1 -1
- package/src/components/GrantApprovalRuleConditions.js +1 -1
- package/src/components/GrantApprovalRuleDeleteButton.js +1 -1
- package/src/components/GrantApprovalRuleEdit.js +1 -1
- package/src/components/GrantApprovalRuleForm.js +6 -6
- package/src/components/GrantApprovalRules.js +1 -1
- package/src/components/GrantFilters.js +1 -1
- package/src/components/GrantFiltersLoader.js +1 -1
- package/src/components/GrantRemovalDirectButton.js +1 -1
- package/src/components/GrantRemovalWorkflow.js +2 -2
- package/src/components/GrantRemovalWorkflowDropdown.js +1 -1
- package/src/components/GrantRequest.js +3 -3
- package/src/components/GrantRequestApprovalForm.js +2 -2
- package/src/components/GrantRequestApprovalResults.js +1 -1
- package/src/components/GrantRequestBulkActions.js +2 -2
- package/src/components/GrantRequestBulkRoleSelector.js +1 -1
- package/src/components/GrantRequestCartResult.js +13 -3
- package/src/components/GrantRequestSummary.js +1 -1
- package/src/components/GrantRequests.js +2 -2
- package/src/components/GrantRequestsSearchResults.js +7 -7
- package/src/components/GrantRoutes.js +3 -9
- package/src/components/Grants.js +14 -4
- package/src/components/GrantsDownloadButton.js +1 -1
- package/src/components/GrantsLabelResults.js +2 -5
- package/src/components/GrantsLoader.js +2 -2
- package/src/components/GrantsTable.js +3 -8
- package/src/components/GraphLoader.js +1 -1
- package/src/components/LineageContextMenu.js +1 -1
- package/src/components/LineageDownloadButton.js +2 -2
- package/src/components/LineageEventsTable.js +1 -1
- package/src/components/LineageGraph.js +7 -6
- package/src/components/LineageGroup.js +2 -7
- package/src/components/LinkLabelsSelector.js +1 -1
- package/src/components/MyGrantRequests.js +1 -1
- package/src/components/ProfileGroup.js +2 -2
- package/src/components/ReferenceDatasetActions.js +1 -1
- package/src/components/ReferenceDatasetCreate.js +1 -1
- package/src/components/ReferenceDatasetDetail.js +1 -1
- package/src/components/ReferenceDatasetFieldSelector.js +5 -5
- package/src/components/ReferenceDatasetForm.js +3 -3
- package/src/components/ReferenceDatasetSelectorInputField.js +3 -3
- package/src/components/ReferenceDatasetsTable.js +1 -1
- package/src/components/StructureChildrenRelations.js +1 -1
- package/src/components/StructureConfidentialButton.js +1 -1
- package/src/components/StructureCrumbs.js +3 -3
- package/src/components/StructureDeleteButton.js +1 -1
- package/src/components/StructureFields.js +3 -3
- package/src/components/StructureFieldsDropdown.js +10 -10
- package/src/components/StructureGrantCart.js +3 -3
- package/src/components/StructureGrantCartCheckout.js +9 -4
- package/src/components/StructureGrantCartInformation.js +2 -7
- package/src/components/StructureGrantListButton.js +5 -5
- package/src/components/StructureGrantRequestAddCart.js +1 -1
- package/src/components/StructureGrantSummaryButton.js +2 -2
- package/src/components/StructureGrants.js +2 -2
- package/src/components/StructureItem.js +4 -4
- package/src/components/StructureItemRoot.js +1 -1
- package/src/components/StructureLoader.js +1 -2
- package/src/components/StructureMetadata.js +23 -17
- package/src/components/StructureNav.js +1 -1
- package/src/components/StructureNavClassified.js +1 -1
- package/src/components/StructureNoteActions.js +1 -1
- package/src/components/StructureNotes.js +3 -3
- package/src/components/StructureNotesEdit.js +4 -4
- package/src/components/StructureProfileButton.js +1 -1
- package/src/components/StructureProperties.js +1 -1
- package/src/components/StructureSelector.js +3 -3
- package/src/components/StructureSelectorInputFieldJoin.js +2 -2
- package/src/components/StructureStructureForm.js +2 -2
- package/src/components/StructureStructureLinks.js +5 -5
- package/src/components/StructureTabPane.js +5 -5
- package/src/components/StructureTabPaneRoutes.js +92 -80
- package/src/components/StructureTabRoutes.js +30 -8
- package/src/components/StructureTabs.js +17 -16
- package/src/components/StructureTagForm.js +2 -2
- package/src/components/StructureTags.js +1 -1
- package/src/components/StructureTypeForm.js +3 -3
- package/src/components/StructureTypeLoader.js +1 -1
- package/src/components/StructureTypesLoader.js +1 -1
- package/src/components/StructureTypesRoutes.js +1 -1
- package/src/components/StructureVersions.js +17 -16
- package/src/components/StructureView.js +1 -1
- package/src/components/StructuresBulkUpdate.js +4 -4
- package/src/components/StructuresDomainsUploadOption.js +1 -1
- package/src/components/StructuresDownloadOption.js +1 -1
- package/src/components/StructuresGrantRequestView.js +1 -1
- package/src/components/StructuresLoader.js +1 -1
- package/src/components/StructuresRoutes.js +2 -2
- package/src/components/StructuresTable.js +4 -4
- package/src/components/StructuresUpdateOption.js +3 -3
- package/src/components/StructuresUploadEventsTable.js +9 -9
- package/src/components/StructuresUploadOption.js +14 -14
- package/src/components/StructuresView.js +1 -1
- package/src/components/SystemCards.js +7 -7
- package/src/components/SystemForm.js +2 -2
- package/src/components/SystemLoader.js +1 -1
- package/src/components/SystemStructures.js +2 -2
- package/src/components/SystemView.js +3 -3
- package/src/components/Task.js +6 -6
- package/src/components/Tasks.js +1 -1
- package/src/components/ValueConditionStructure.js +2 -2
- package/src/components/__tests__/BucketView.spec.js +2 -2
- package/src/components/__tests__/CatalogCustomViewCards.spec.js +1 -1
- package/src/components/__tests__/CatalogViewConfigForm.spec.js +2 -2
- package/src/components/__tests__/CatalogViewConfigs.spec.js +2 -2
- package/src/components/__tests__/DictionaryRoutes.spec.js +7 -3
- package/src/components/__tests__/EditDomainForm.spec.js +3 -3
- package/src/components/__tests__/FilteredNav.spec.js +4 -4
- package/src/components/__tests__/Grant.spec.js +4 -4
- package/src/components/__tests__/GrantApprovalRuleConditions.spec.js +6 -6
- package/src/components/__tests__/GrantApprovalRuleDeleteButton.spec.js +2 -2
- package/src/components/__tests__/GrantApprovalRuleForm.spec.js +9 -7
- package/src/components/__tests__/GrantApprovalRules.spec.js +3 -3
- package/src/components/__tests__/GrantRemoval.spec.js +4 -4
- package/src/components/__tests__/GrantRemovalDirectButton.spec.js +8 -8
- package/src/components/__tests__/GrantRemovalWorkflow.spec.js +8 -8
- package/src/components/__tests__/GrantRequest.spec.js +1 -1
- package/src/components/__tests__/GrantRequestApprovalForm.spec.js +6 -6
- package/src/components/__tests__/GrantRequestApprovalPopup.spec.js +1 -1
- package/src/components/__tests__/GrantRequestBulkActions.spec.js +8 -8
- package/src/components/__tests__/GrantRequestBulkApprovalForm.spec.js +2 -2
- package/src/components/__tests__/GrantRequestBulkRoleSelector.spec.js +2 -2
- package/src/components/__tests__/GrantRequestCartResult.spec.js +13 -3
- package/src/components/__tests__/GrantRequestHeader.spec.js +2 -2
- package/src/components/__tests__/GrantRequestRow.spec.js +4 -4
- package/src/components/__tests__/GrantRequestSummary.spec.js +1 -1
- package/src/components/__tests__/GrantRequests.spec.js +2 -2
- package/src/components/__tests__/GrantRequestsLabelResults.spec.js +3 -3
- package/src/components/__tests__/GrantRequestsSearchResults.spec.js +2 -2
- package/src/components/__tests__/GrantRequestsTable.spec.js +1 -1
- package/src/components/__tests__/GrantRoutes.spec.js +16 -16
- package/src/components/__tests__/GrantsDownloadButton.spec.js +68 -40
- package/src/components/__tests__/GrantsLabelResults.spec.js +2 -2
- package/src/components/__tests__/GrantsLoader.spec.js +1 -1
- package/src/components/__tests__/GrantsTable.spec.js +4 -4
- package/src/components/__tests__/LineageForm.spec.js +5 -5
- package/src/components/__tests__/LineageGroup.spec.js +6 -6
- package/src/components/__tests__/LineageResource.spec.js +5 -5
- package/src/components/__tests__/LineageRoutes.spec.js +6 -6
- package/src/components/__tests__/PendingStructureNoteRow.spec.js +4 -4
- package/src/components/__tests__/PendingStructureNotes.spec.js +1 -1
- package/src/components/__tests__/PendingStructureNotesLabelResults.spec.js +1 -1
- package/src/components/__tests__/PendingStructureNotesPagination.spec.js +1 -1
- package/src/components/__tests__/PendingStructureNotesTable.spec.js +2 -2
- package/src/components/__tests__/ProfileExecution.spec.js +2 -2
- package/src/components/__tests__/ProfileGroup.spec.js +2 -2
- package/src/components/__tests__/ReferenceDataset.spec.js +7 -5
- package/src/components/__tests__/ReferenceDatasetCreate.spec.js +1 -1
- package/src/components/__tests__/ReferenceDatasetDetail.spec.js +1 -1
- package/src/components/__tests__/ReferenceDatasetFieldSelector.spec.js +9 -9
- package/src/components/__tests__/ReferenceDatasetForm.spec.js +9 -7
- package/src/components/__tests__/ReferenceDatasetRoutes.spec.js +1 -1
- package/src/components/__tests__/StructureFieldRow.spec.js +3 -3
- package/src/components/__tests__/StructureFieldsDropdown.spec.js +5 -5
- package/src/components/__tests__/StructureGrantCartCheckout.spec.js +2 -2
- package/src/components/__tests__/StructureGrantCartInformation.spec.js +1 -1
- package/src/components/__tests__/StructureGrantCartUserSelector.spec.js +4 -4
- package/src/components/__tests__/StructureGrantDropdown.spec.js +3 -3
- package/src/components/__tests__/StructureGrantListButton.spec.js +4 -4
- package/src/components/__tests__/StructureGrantSummaryButton.spec.js +5 -5
- package/src/components/__tests__/StructureItem.spec.js +3 -3
- package/src/components/__tests__/StructureMetadata.spec.js +2 -4
- package/src/components/__tests__/StructureNavClassified.spec.js +1 -1
- package/src/components/__tests__/StructureNoteActions.spec.js +17 -15
- package/src/components/__tests__/StructureNoteLink.spec.js +8 -9
- package/src/components/__tests__/StructureNotes.spec.js +3 -3
- package/src/components/__tests__/StructureNotesDownloadButton.spec.js +15 -15
- package/src/components/__tests__/StructureNotesEdit.spec.js +1 -1
- package/src/components/__tests__/StructureRelationRow.spec.js +2 -2
- package/src/components/__tests__/StructureRelations.spec.js +2 -2
- package/src/components/__tests__/StructureRow.spec.js +2 -2
- package/src/components/__tests__/StructureSelectorInputField.spec.js +2 -2
- package/src/components/__tests__/StructureSelectorInputFieldJoin.spec.js +1 -1
- package/src/components/__tests__/StructureStructureForm.spec.js +1 -1
- package/src/components/__tests__/StructureStructureLinks.spec.js +15 -15
- package/src/components/__tests__/StructureSummary.spec.js +1 -1
- package/src/components/__tests__/StructureTabPane.spec.js +10 -12
- package/src/components/__tests__/StructureTabRoutes.spec.js +1 -1
- package/src/components/__tests__/StructureTabs.spec.js +24 -8
- package/src/components/__tests__/StructureTag.spec.js +11 -11
- package/src/components/__tests__/StructureTagForm.spec.js +17 -17
- package/src/components/__tests__/StructureTypesRoutes.spec.js +4 -4
- package/src/components/__tests__/StructureVersions.spec.js +0 -1
- package/src/components/__tests__/StructuresBulkUpdate.spec.js +3 -3
- package/src/components/__tests__/StructuresDownloadOption.spec.js +3 -3
- package/src/components/__tests__/StructuresEditableDownloadOption.spec.js +2 -2
- package/src/components/__tests__/StructuresGrantRequestView.spec.js +2 -2
- package/src/components/__tests__/StructuresLabelResults.spec.js +1 -1
- package/src/components/__tests__/StructuresLoader.spec.js +1 -1
- package/src/components/__tests__/StructuresOptions.spec.js +15 -9
- package/src/components/__tests__/StructuresRoutes.spec.js +1 -1
- package/src/components/__tests__/StructuresSearchResults.spec.js +2 -2
- package/src/components/__tests__/StructuresTable.spec.js +5 -5
- package/src/components/__tests__/StructuresUpdateOption.spec.js +2 -2
- package/src/components/__tests__/StructuresUploadOption.spec.js +2 -2
- package/src/components/__tests__/StructuresView.spec.js +6 -6
- package/src/components/__tests__/SystemCards.spec.js +2 -2
- package/src/components/__tests__/SystemFilteredNav.spec.js +1 -1
- package/src/components/__tests__/SystemStructuresLoader.spec.js +1 -1
- package/src/components/__tests__/SystemsRoutes.spec.js +1 -1
- package/src/components/__tests__/TagForm.spec.js +7 -5
- package/src/components/__tests__/TagsRoutes.spec.js +1 -1
- package/src/components/__tests__/Tasks.spec.js +9 -9
- package/src/components/__tests__/TasksRoutes.spec.js +1 -1
- package/src/components/__tests__/ValueConditionStructure.spec.js +2 -2
- package/src/hooks/useBucketPaths.js +1 -1
- package/src/hooks/useBucketStructures.js +1 -1
- package/src/hooks/useCustomTabs.js +1 -1
- package/src/hooks/useGrant.js +7 -3
- package/src/hooks/useGrantRequest.js +4 -4
- package/src/hooks/useStructures.js +4 -5
- package/src/hooks/useTemplatesByIds.js +10 -5
- package/src/messages/en.js +1 -2
- package/src/messages/es.js +1 -2
- package/src/messages/index.js +1 -1
- package/src/reducers/__tests__/bulkUpdateStructuresLoading.spec.js +5 -5
- package/src/reducers/__tests__/creatingGrantRequestApproval.spec.js +3 -3
- package/src/reducers/__tests__/csvGraphDownloading.spec.js +4 -4
- package/src/reducers/__tests__/ddMessage.spec.js +3 -3
- package/src/reducers/__tests__/grantFilters.spec.js +1 -1
- package/src/reducers/__tests__/grantQuery.spec.js +6 -6
- package/src/reducers/__tests__/grantRequests.spec.js +2 -2
- package/src/reducers/__tests__/grantRequestsCart.spec.js +31 -31
- package/src/reducers/__tests__/grantRequestsLoading.spec.js +3 -3
- package/src/reducers/__tests__/grantRequestsQuery.spec.js +2 -2
- package/src/reducers/__tests__/grants.spec.js +2 -2
- package/src/reducers/__tests__/graph.spec.js +1 -1
- package/src/reducers/__tests__/graphLoading.spec.js +6 -4
- package/src/reducers/__tests__/graphRedirect.spec.js +11 -7
- package/src/reducers/__tests__/lineageEventsLoading.spec.js +2 -2
- package/src/reducers/__tests__/lineageQuery.spec.js +6 -6
- package/src/reducers/__tests__/nodes.spec.js +1 -1
- package/src/reducers/__tests__/nodesLoading.spec.js +2 -2
- package/src/reducers/__tests__/profileExecution.spec.js +6 -6
- package/src/reducers/__tests__/profileExecutionLoading.spec.js +5 -3
- package/src/reducers/__tests__/profileGroup.spec.js +12 -12
- package/src/reducers/__tests__/profileGroupLoading.spec.js +6 -6
- package/src/reducers/__tests__/referenceDatasetSaving.spec.js +8 -4
- package/src/reducers/__tests__/selectedGroups.spec.js +2 -2
- package/src/reducers/__tests__/selectedNode.spec.js +5 -5
- package/src/reducers/__tests__/selectedResources.spec.js +5 -5
- package/src/reducers/__tests__/selectedUserSearchFilter.spec.js +3 -3
- package/src/reducers/__tests__/structure.spec.js +2 -2
- package/src/reducers/__tests__/structureActions.spec.js +4 -4
- package/src/reducers/__tests__/structureAncestry.spec.js +6 -6
- package/src/reducers/__tests__/structureChildren.spec.js +2 -2
- package/src/reducers/__tests__/structureFields.spec.js +5 -5
- package/src/reducers/__tests__/structureImpactGraph.spec.js +6 -6
- package/src/reducers/__tests__/structureImpactId.spec.js +7 -7
- package/src/reducers/__tests__/structureLineageGraph.spec.js +7 -7
- package/src/reducers/__tests__/structureLineageId.spec.js +7 -7
- package/src/reducers/__tests__/structureLinks.spec.js +6 -6
- package/src/reducers/__tests__/structureLoading.spec.js +2 -2
- package/src/reducers/__tests__/structureNotes.spec.js +1 -1
- package/src/reducers/__tests__/structureParents.spec.js +2 -2
- package/src/reducers/__tests__/structureProfile.spec.js +9 -6
- package/src/reducers/__tests__/structureQuery.spec.js +4 -4
- package/src/reducers/__tests__/structureRedirect.spec.js +9 -9
- package/src/reducers/__tests__/structureRelations.spec.js +4 -4
- package/src/reducers/__tests__/structureSiblings.spec.js +2 -2
- package/src/reducers/__tests__/structureSystem.spec.js +3 -3
- package/src/reducers/__tests__/structureTagSaving.spec.js +2 -2
- package/src/reducers/__tests__/structureType.spec.js +2 -2
- package/src/reducers/__tests__/structureTypeLoading.spec.js +6 -6
- package/src/reducers/__tests__/structureVersion.spec.js +4 -4
- package/src/reducers/__tests__/structureVersions.spec.js +9 -5
- package/src/reducers/__tests__/structures.spec.js +3 -3
- package/src/reducers/__tests__/structuresAliasNameMode.spec.js +5 -5
- package/src/reducers/__tests__/structuresUploadEvents.spec.js +1 -1
- package/src/reducers/__tests__/structuresUploadEventsLoading.spec.js +4 -4
- package/src/reducers/__tests__/system.spec.js +2 -2
- package/src/reducers/__tests__/systemId.spec.js +3 -3
- package/src/reducers/__tests__/systemStructures.spec.js +3 -3
- package/src/reducers/__tests__/systemStructuresLoading.spec.js +2 -2
- package/src/reducers/ddMessage.js +1 -1
- package/src/reducers/grantFilters.js +1 -1
- package/src/reducers/grantRequestsCart.js +16 -13
- package/src/reducers/grantSelectedFilter.js +1 -1
- package/src/reducers/profileGroup.js +1 -1
- package/src/reducers/selectedResources.js +1 -1
- package/src/reducers/selectedUserSearchFilter.js +1 -1
- package/src/reducers/structure.js +2 -1
- package/src/reducers/structureImpactGraph.js +1 -1
- package/src/reducers/structureLineageGraph.js +1 -1
- package/src/reducers/structureRedirect.js +1 -1
- package/src/reducers/structuresAliasNameMode.js +1 -1
- package/src/reducers/structuresUploadEvents.js +1 -1
- package/src/reducers/systemId.js +1 -1
- package/src/reducers/userSearchFilters.js +1 -1
- package/src/routines.js +31 -32
- package/src/sagas/__tests__/createGrantApprovalRule.spec.js +1 -1
- package/src/sagas/__tests__/createGrantRequestApproval.spec.js +1 -1
- package/src/sagas/__tests__/createGrantRequestStatus.spec.js +1 -1
- package/src/sagas/__tests__/createGraph.spec.js +5 -5
- package/src/sagas/__tests__/createProfileGroup.spec.js +10 -10
- package/src/sagas/__tests__/deleteGrantApprovalRule.spec.js +1 -1
- package/src/sagas/__tests__/deleteStructureStructureLink.spec.js +1 -1
- package/src/sagas/__tests__/doStructureNoteAction.spec.js +6 -6
- package/src/sagas/__tests__/downloadCsvGraph.spec.js +2 -2
- package/src/sagas/__tests__/fetchGrantFilters.spec.js +1 -1
- package/src/sagas/__tests__/fetchGrantRequestsFilters.spec.js +3 -3
- package/src/sagas/__tests__/fetchProfileExecution.spec.js +3 -3
- package/src/sagas/__tests__/fetchProfileGroup.spec.js +6 -6
- package/src/sagas/__tests__/fetchStructureNotes.spec.js +3 -3
- package/src/sagas/__tests__/fetchStructures.spec.js +2 -2
- package/src/sagas/__tests__/fetchStructuresUploadEvents.spec.js +1 -1
- package/src/sagas/__tests__/fetchSystemStructures.spec.js +4 -4
- package/src/sagas/__tests__/requestGrantRemoval.spec.js +2 -2
- package/src/sagas/__tests__/updateGrantApprovalRule.spec.js +1 -1
- package/src/sagas/__tests__/updateStructure.spec.js +1 -1
- package/src/sagas/__tests__/uploadStructuresDomains.spec.js +3 -3
- package/src/sagas/bulkUpdateStructures.js +1 -1
- package/src/sagas/createGrantApprovalRule.js +1 -1
- package/src/sagas/createGrantRequestApproval.js +1 -1
- package/src/sagas/createGrantRequestStatus.js +2 -2
- package/src/sagas/createGraph.js +3 -3
- package/src/sagas/createProfileGroup.js +1 -1
- package/src/sagas/createSystem.js +2 -2
- package/src/sagas/deleteCatalogViewConfig.js +1 -1
- package/src/sagas/deleteGrantApprovalRule.js +1 -1
- package/src/sagas/deleteStructureStructureLink.js +1 -1
- package/src/sagas/doStructureNoteAction.js +9 -4
- package/src/sagas/downloadCsvGraph.js +2 -2
- package/src/sagas/downloadReferenceDataset.js +1 -1
- package/src/sagas/fetchGrantRequestsFilters.js +1 -1
- package/src/sagas/fetchGraph.js +1 -1
- package/src/sagas/fetchStructuresUploadEvents.js +1 -1
- package/src/sagas/graph/polling.js +4 -4
- package/src/sagas/linkStructureToStructure.js +2 -2
- package/src/sagas/requestGrantRemoval.js +1 -1
- package/src/sagas/updateGrantApprovalRule.js +1 -1
- package/src/sagas/updateStructure.js +1 -1
- package/src/sagas/uploadStructuresDomains.js +2 -2
- package/src/sagas/upsertCatalogViewConfig.js +1 -1
- package/src/selectors/__tests__/getActiveTab.spec.js +99 -28
- package/src/selectors/__tests__/getBusinessConceptsLinksToStructuresColumnsSelector.spec.js +1 -1
- package/src/selectors/__tests__/getGrantRequestsColumns.spec.js +2 -2
- package/src/selectors/__tests__/getGrantRequestsSearchColumns.spec.js +1 -1
- package/src/selectors/__tests__/getGrantsColumns.spec.js +4 -4
- package/src/selectors/__tests__/getParsedEvents.spec.js +1 -1
- package/src/selectors/__tests__/getSortedRelations.spec.js +5 -5
- package/src/selectors/__tests__/getStructureFieldColumns.spec.js +1 -1
- package/src/selectors/__tests__/getStructureRelations.spec.js +1 -1
- package/src/selectors/__tests__/getTabVisibility.spec.js +49 -38
- package/src/selectors/__tests__/messages.spec.js +4 -4
- package/src/selectors/getActiveTab.js +16 -4
- package/src/selectors/getBusinessConceptsLinksToStructuresColumnsSelector.js +1 -1
- package/src/selectors/getGrantAvailableFilters.js +2 -2
- package/src/selectors/getGrantRequestTemplate.js +1 -1
- package/src/selectors/getGrantRequests.js +2 -2
- package/src/selectors/getGrantRequestsColumns.js +6 -6
- package/src/selectors/getGrantRequestsQuery.js +1 -1
- package/src/selectors/getGrantRequestsSearchColumns.js +2 -2
- package/src/selectors/getGrantSelectedFilters.js +1 -1
- package/src/selectors/getGrantsColumns.js +5 -5
- package/src/selectors/getLineageLevels.js +1 -1
- package/src/selectors/getLinkedImplementationsToStructuresColumns.js +1 -1
- package/src/selectors/getRelationSortingCriteria.js +1 -1
- package/src/selectors/getSortedRelations.js +5 -5
- package/src/selectors/getSortedStructureNotes.js +4 -4
- package/src/selectors/getStructureDeletedAt.js +2 -2
- package/src/selectors/getStructureFieldColumns.js +1 -1
- package/src/selectors/getStructureLinks.js +1 -1
- package/src/selectors/getStructureParent.js +2 -2
- package/src/selectors/getStructureProperties.js +1 -1
- package/src/selectors/getStructureRelations.js +4 -4
- package/src/selectors/getStructureSortingCriteria.js +1 -1
- package/src/selectors/getStructureUpdatedAt.js +1 -1
- package/src/selectors/getStructuresFields.js +5 -5
- package/src/selectors/getStructuresUploadEventColumns.js +1 -1
- package/src/selectors/getSystem.js +1 -1
- package/src/selectors/getSystemTemplate.js +1 -1
- package/src/selectors/getTabVisibility.js +5 -6
- package/src/selectors/groupOptionsSelector.js +2 -2
- package/src/selectors/leafClassesSelector.js +1 -1
- package/src/selectors/messages.js +1 -1
- package/src/selectors/metadataViewsSelector.js +6 -6
- package/src/selectors/resourceOptionsSelector.js +2 -2
- package/src/selectors/structureColumnsSelector.js +2 -2
- package/src/selectors/structureNotesColumnsSelector.js +1 -1
- package/src/selectors/templateNamesSelector.js +1 -1
- package/src/selectors/utils/decorators.js +32 -20
|
@@ -24,7 +24,7 @@ export const LineageDownloadButton = ({
|
|
|
24
24
|
const { formatMessage } = useIntl();
|
|
25
25
|
const headerLabels = _.flow(
|
|
26
26
|
_.map((l) => [l, formatMessage({ id: `graph.header.${l}` })]),
|
|
27
|
-
_.fromPairs
|
|
27
|
+
_.fromPairs,
|
|
28
28
|
)(staticLabels);
|
|
29
29
|
const messagePopup = _.negate(_.isEmpty)(graph)
|
|
30
30
|
? formatMessage({ id: "graph.actions.download.tooltip" })
|
|
@@ -66,5 +66,5 @@ const mapStateToProps = (state, ownProps) => ({
|
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
export default connect(mapStateToProps, { downloadCsvGraph })(
|
|
69
|
-
LineageDownloadButton
|
|
69
|
+
LineageDownloadButton,
|
|
70
70
|
);
|
|
@@ -133,8 +133,7 @@ export const LineageGraph = ({
|
|
|
133
133
|
}
|
|
134
134
|
try {
|
|
135
135
|
svg.destroy();
|
|
136
|
-
} catch (_error) {
|
|
137
|
-
}
|
|
136
|
+
} catch (_error) {}
|
|
138
137
|
};
|
|
139
138
|
}
|
|
140
139
|
}, [resources]);
|
|
@@ -143,6 +142,7 @@ export const LineageGraph = ({
|
|
|
143
142
|
useEffect(() => {
|
|
144
143
|
if (!svg) return;
|
|
145
144
|
|
|
145
|
+
// eslint-disable-next-line fp/no-let
|
|
146
146
|
let isResizeEffectActive = true;
|
|
147
147
|
const onResize = () => {
|
|
148
148
|
if (!isResizeEffectActive || !isAliveRef.current) return;
|
|
@@ -160,6 +160,7 @@ export const LineageGraph = ({
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
return () => {
|
|
163
|
+
// eslint-disable-next-line fp/no-mutation
|
|
163
164
|
isResizeEffectActive = false;
|
|
164
165
|
window.removeEventListener("resize", onResize);
|
|
165
166
|
if (resizeObserver) resizeObserver.disconnect();
|
|
@@ -238,7 +239,7 @@ export const LineageGraph = ({
|
|
|
238
239
|
{loadingInfo?.data?.retry &&
|
|
239
240
|
formatMessage(
|
|
240
241
|
{ id: "lineage.graph.loading.polling" },
|
|
241
|
-
{ retry: loadingInfo?.data?.retry }
|
|
242
|
+
{ retry: loadingInfo?.data?.retry },
|
|
242
243
|
)}
|
|
243
244
|
</p>
|
|
244
245
|
</Loader>
|
|
@@ -321,7 +322,7 @@ LineageGraph.propTypes = {
|
|
|
321
322
|
|
|
322
323
|
const mapStateToProps = (
|
|
323
324
|
{ graph = {}, graphLoading, selectedNode },
|
|
324
|
-
ownProps
|
|
325
|
+
ownProps,
|
|
325
326
|
) => {
|
|
326
327
|
return {
|
|
327
328
|
paths: _.prop("paths")(_.propOr(graph, "graph")(ownProps)),
|
|
@@ -334,7 +335,7 @@ const mapStateToProps = (
|
|
|
334
335
|
};
|
|
335
336
|
|
|
336
337
|
export default connect(mapStateToProps, { clearNode, cancelPoll })(
|
|
337
|
-
LineageGraph
|
|
338
|
+
LineageGraph,
|
|
338
339
|
);
|
|
339
340
|
|
|
340
341
|
export const LinageMetadata = ({ metadata, onClose }) => {
|
|
@@ -347,7 +348,7 @@ export const LinageMetadata = ({ metadata, onClose }) => {
|
|
|
347
348
|
<p>{value}</p>
|
|
348
349
|
<Divider fitted />
|
|
349
350
|
</div>
|
|
350
|
-
))
|
|
351
|
+
)),
|
|
351
352
|
)(metadata);
|
|
352
353
|
|
|
353
354
|
return (
|
|
@@ -35,12 +35,7 @@ export const LineageGroup = ({
|
|
|
35
35
|
{_.truncate(truncateOptions)(name)}
|
|
36
36
|
</text>
|
|
37
37
|
);
|
|
38
|
-
const trigger =
|
|
39
|
-
z === 0 ? null : handleClick ? (
|
|
40
|
-
<a>{text}</a>
|
|
41
|
-
) : (
|
|
42
|
-
text
|
|
43
|
-
);
|
|
38
|
+
const trigger = z === 0 ? null : handleClick ? <a>{text}</a> : text;
|
|
44
39
|
const content = selected ? (
|
|
45
40
|
<Popup
|
|
46
41
|
size="small"
|
|
@@ -60,7 +55,7 @@ export const LineageGroup = ({
|
|
|
60
55
|
);
|
|
61
56
|
const classNames = _.flow(
|
|
62
57
|
_.flatten,
|
|
63
|
-
_.join(" ")
|
|
58
|
+
_.join(" "),
|
|
64
59
|
)([
|
|
65
60
|
["group", `z${z}`],
|
|
66
61
|
type ? [lowerDeburr(type)] : [],
|
|
@@ -62,7 +62,7 @@ const ExecutionLink = ({ id, profileGroup, _embedded }) => {
|
|
|
62
62
|
const event = flow(
|
|
63
63
|
sortBy("inserted_at"),
|
|
64
64
|
last,
|
|
65
|
-
prop("type")
|
|
65
|
+
prop("type"),
|
|
66
66
|
)(_embedded.profile_events);
|
|
67
67
|
const icon = icons[event] || { name: "question circle outline" };
|
|
68
68
|
return (
|
|
@@ -149,7 +149,7 @@ export const ProfileGroup = ({ profileGroup, profileGroupLoading }) => {
|
|
|
149
149
|
const { formatMessage } = useIntl();
|
|
150
150
|
const executions = flow(
|
|
151
151
|
sortBy("_embedded.data_structure.external_id"),
|
|
152
|
-
map((e) => ({ ...e, profileGroup }))
|
|
152
|
+
map((e) => ({ ...e, profileGroup })),
|
|
153
153
|
)(profileGroup?._embedded?.executions);
|
|
154
154
|
const count = size(executions);
|
|
155
155
|
const pendingCount = flow(reject("_embedded.profile"), size)(executions);
|
|
@@ -28,7 +28,7 @@ export const ConfirmDeleteModal = ({ onConfirm, name, id }) => {
|
|
|
28
28
|
size="small"
|
|
29
29
|
content={formatMessage(
|
|
30
30
|
{ id: "referenceDataset.actions.delete.confirmation.content" },
|
|
31
|
-
{ name: <i>{name}</i> }
|
|
31
|
+
{ name: <i>{name}</i> },
|
|
32
32
|
)}
|
|
33
33
|
onConfirm={() => onConfirm({ id })}
|
|
34
34
|
/>
|
|
@@ -39,13 +39,13 @@ const onReferenceDatasetChange =
|
|
|
39
39
|
name: null,
|
|
40
40
|
referenceDataset: { id: refDatasetId },
|
|
41
41
|
},
|
|
42
|
-
null
|
|
42
|
+
null,
|
|
43
43
|
);
|
|
44
44
|
setSelectedRefDataset(_.find({ id: refDatasetId })(referenceDatasets));
|
|
45
45
|
_.flow(
|
|
46
46
|
_.find({ id: refDatasetId }),
|
|
47
47
|
_.prop("headers"),
|
|
48
|
-
setHeaders
|
|
48
|
+
setHeaders,
|
|
49
49
|
)(referenceDatasets);
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -57,7 +57,7 @@ export const ReferenceDatasetFieldSelector = ({
|
|
|
57
57
|
}) => {
|
|
58
58
|
const { formatMessage } = useIntl();
|
|
59
59
|
const [headers, setHeaders] = useState(
|
|
60
|
-
_.find({ id: referenceDataset?.id })(referenceDatasets)?.headers || []
|
|
60
|
+
_.find({ id: referenceDataset?.id })(referenceDatasets)?.headers || [],
|
|
61
61
|
);
|
|
62
62
|
const [selectedRefDataset, setSelectedRefDataset] =
|
|
63
63
|
useState(referenceDataset);
|
|
@@ -92,7 +92,7 @@ export const ReferenceDatasetFieldSelector = ({
|
|
|
92
92
|
referenceDatasets,
|
|
93
93
|
setHeaders,
|
|
94
94
|
setSelectedRefDataset,
|
|
95
|
-
onChange
|
|
95
|
+
onChange,
|
|
96
96
|
)}
|
|
97
97
|
/>
|
|
98
98
|
<Dropdown
|
|
@@ -112,7 +112,7 @@ export const ReferenceDatasetFieldSelector = ({
|
|
|
112
112
|
name: newHeader,
|
|
113
113
|
type: "reference_dataset_field",
|
|
114
114
|
},
|
|
115
|
-
null
|
|
115
|
+
null,
|
|
116
116
|
);
|
|
117
117
|
}}
|
|
118
118
|
/>
|
|
@@ -16,7 +16,7 @@ const datasetValidator = (formatMessage) => (value) =>
|
|
|
16
16
|
: value.size > MAX_SIZE
|
|
17
17
|
? formatMessage(
|
|
18
18
|
{ id: "widget.image.error.too_big" },
|
|
19
|
-
{ size_mb: MAX_SIZE_MB }
|
|
19
|
+
{ size_mb: MAX_SIZE_MB },
|
|
20
20
|
)
|
|
21
21
|
: true;
|
|
22
22
|
|
|
@@ -56,7 +56,7 @@ export const ReferenceDatasetForm = ({ saving, dataset = {}, onSubmit }) => {
|
|
|
56
56
|
rules={{
|
|
57
57
|
required: formatMessage(
|
|
58
58
|
{ id: "form.validation.required" },
|
|
59
|
-
{ prop: formatMessage({ id: "referenceDataset.name" }) }
|
|
59
|
+
{ prop: formatMessage({ id: "referenceDataset.name" }) },
|
|
60
60
|
),
|
|
61
61
|
}}
|
|
62
62
|
render={({
|
|
@@ -83,7 +83,7 @@ export const ReferenceDatasetForm = ({ saving, dataset = {}, onSubmit }) => {
|
|
|
83
83
|
? false
|
|
84
84
|
: formatMessage(
|
|
85
85
|
{ id: "form.validation.required" },
|
|
86
|
-
{ prop: formatMessage({ id: "referenceDataset.file" }) }
|
|
86
|
+
{ prop: formatMessage({ id: "referenceDataset.file" }) },
|
|
87
87
|
),
|
|
88
88
|
}}
|
|
89
89
|
render={({ field: { onBlur, onChange }, fieldState: { error } }) => (
|
|
@@ -32,16 +32,16 @@ export const ReferenceDatasetSelectorInputField = ({
|
|
|
32
32
|
type: "reference_dataset",
|
|
33
33
|
id,
|
|
34
34
|
},
|
|
35
|
-
})(structures) && id !== selectedStructure?.structure?.id
|
|
35
|
+
})(structures) && id !== selectedStructure?.structure?.id,
|
|
36
36
|
),
|
|
37
37
|
_.cond([
|
|
38
38
|
[() => _.isEmpty(searchTerm), _.identity],
|
|
39
39
|
[_.stubTrue, matchSorterFp],
|
|
40
|
-
])
|
|
40
|
+
]),
|
|
41
41
|
)(referenceDatasets);
|
|
42
42
|
|
|
43
43
|
const options = _.map(({ id, name }) => ({ key: id, value: id, text: name }))(
|
|
44
|
-
datasets
|
|
44
|
+
datasets,
|
|
45
45
|
);
|
|
46
46
|
|
|
47
47
|
const handleChange = (_e, { value }) =>
|
|
@@ -24,7 +24,7 @@ const mapStateToProps = (state, ownProps) => ({
|
|
|
24
24
|
relations: getSortedChildrenRelations(state),
|
|
25
25
|
columns: filterColumns(
|
|
26
26
|
_.propOr(getChildrenRelationColumns(state), "columns")(ownProps),
|
|
27
|
-
state.childrenRelations
|
|
27
|
+
state.childrenRelations,
|
|
28
28
|
),
|
|
29
29
|
});
|
|
30
30
|
|
|
@@ -22,7 +22,7 @@ const filterQueryParams = _.flow(
|
|
|
22
22
|
propertyPath,
|
|
23
23
|
propertyValue,
|
|
24
24
|
}),
|
|
25
|
-
(queryParams) => new URLSearchParams(queryParams)
|
|
25
|
+
(queryParams) => new URLSearchParams(queryParams),
|
|
26
26
|
);
|
|
27
27
|
|
|
28
28
|
export const SystemCrumb = ({ id, name, navFilter }) => {
|
|
@@ -52,7 +52,7 @@ export const SystemCrumb = ({ id, name, navFilter }) => {
|
|
|
52
52
|
<Breadcrumb.Section
|
|
53
53
|
as={Link}
|
|
54
54
|
to={`${linkTo.BUCKET_VIEW()}?${filterQueryParams(
|
|
55
|
-
navFilter.filter
|
|
55
|
+
navFilter.filter,
|
|
56
56
|
)}`}
|
|
57
57
|
active={false}
|
|
58
58
|
>
|
|
@@ -73,7 +73,7 @@ SystemCrumb.propTypes = {
|
|
|
73
73
|
|
|
74
74
|
const SystemCrumbConnected = connect(
|
|
75
75
|
({ navFilter }) => ({ navFilter }),
|
|
76
|
-
null
|
|
76
|
+
null,
|
|
77
77
|
)(SystemCrumb);
|
|
78
78
|
|
|
79
79
|
export const AncestorCrumb = ({ name, id }) => (
|
|
@@ -157,11 +157,11 @@ export const StructureFields = ({
|
|
|
157
157
|
const emptyFields = _.isEmpty(fields);
|
|
158
158
|
|
|
159
159
|
const columns = useSelector((state) =>
|
|
160
|
-
getColumns(getStructureFieldColumns(state), fields)
|
|
160
|
+
getColumns(getStructureFieldColumns(state), fields),
|
|
161
161
|
);
|
|
162
162
|
|
|
163
163
|
const allCheckedInPage = _.every((structureId) =>
|
|
164
|
-
_.contains(structureId)(checkedFields)
|
|
164
|
+
_.contains(structureId)(checkedFields),
|
|
165
165
|
)(pageStructureIds);
|
|
166
166
|
|
|
167
167
|
const debounceSearch = _.debounce(300)((value) => {
|
|
@@ -170,7 +170,7 @@ export const StructureFields = ({
|
|
|
170
170
|
pathname: pathname,
|
|
171
171
|
search: queryString.stringify({ q: value }),
|
|
172
172
|
},
|
|
173
|
-
{ replace: true }
|
|
173
|
+
{ replace: true },
|
|
174
174
|
);
|
|
175
175
|
});
|
|
176
176
|
|
|
@@ -26,7 +26,7 @@ export const StructureFieldsDropdown = ({
|
|
|
26
26
|
const onChangeStructureFieldsDropdown = (valueOrValues) =>
|
|
27
27
|
_.flow(
|
|
28
28
|
_.map(dropdownItemToField),
|
|
29
|
-
multiple ? onSelectFields : onSelectField
|
|
29
|
+
multiple ? onSelectFields : onSelectField,
|
|
30
30
|
)(Array.isArray(valueOrValues) ? valueOrValues : [valueOrValues]);
|
|
31
31
|
|
|
32
32
|
const dropdownItemToField = (value) => {
|
|
@@ -35,7 +35,7 @@ export const StructureFieldsDropdown = ({
|
|
|
35
35
|
: [value, undefined];
|
|
36
36
|
return _.isNil(parentIndex)
|
|
37
37
|
? _.find({ data_structure_id: Number(fieldIdentifier) })(
|
|
38
|
-
structureFields
|
|
38
|
+
structureFields,
|
|
39
39
|
) || _.find({ data_structure_id: fieldIdentifier })(structureFields)
|
|
40
40
|
: _.any({
|
|
41
41
|
type: "reference_dataset_field",
|
|
@@ -62,7 +62,7 @@ export const StructureFieldsDropdown = ({
|
|
|
62
62
|
? `${field.name}/${field.parent_index}`
|
|
63
63
|
: `${field.data_structure_id}/${field.parent_index}`;
|
|
64
64
|
const modifiers = _.filter({ sourceType: field.field_type })(
|
|
65
|
-
typeCastModifiers
|
|
65
|
+
typeCastModifiers,
|
|
66
66
|
);
|
|
67
67
|
const fieldsWithModifiers = _.map((modifier) => ({
|
|
68
68
|
key: `${value}#${modifier.name}`,
|
|
@@ -116,27 +116,27 @@ export const StructureFieldsDropdown = ({
|
|
|
116
116
|
label: k,
|
|
117
117
|
options: v,
|
|
118
118
|
isReferenceDataset: _.any({ type: "reference_dataset_field" })(
|
|
119
|
-
v
|
|
119
|
+
v,
|
|
120
120
|
),
|
|
121
121
|
},
|
|
122
122
|
],
|
|
123
|
-
[]
|
|
123
|
+
[],
|
|
124
124
|
),
|
|
125
|
-
_.map(toFieldOption)
|
|
125
|
+
_.map(toFieldOption),
|
|
126
126
|
);
|
|
127
127
|
|
|
128
128
|
const castSourceTypes = _.flow(
|
|
129
129
|
_.map(({ sourceType }) => sourceType),
|
|
130
|
-
_.uniq
|
|
130
|
+
_.uniq,
|
|
131
131
|
)(typeCastModifiers);
|
|
132
132
|
const options = _.flow(
|
|
133
133
|
_.filter(
|
|
134
134
|
(f) =>
|
|
135
135
|
_.every.convert({ cap: false })((v, k) => v.includes(_.prop(k)(f)))(
|
|
136
|
-
filters
|
|
137
|
-
) || castSourceTypes.includes(f.field_type)
|
|
136
|
+
filters,
|
|
137
|
+
) || castSourceTypes.includes(f.field_type),
|
|
138
138
|
),
|
|
139
|
-
getOptions
|
|
139
|
+
getOptions,
|
|
140
140
|
)(structureFields);
|
|
141
141
|
|
|
142
142
|
return (
|
|
@@ -63,9 +63,9 @@ export const StructureGrantCart = ({
|
|
|
63
63
|
|
|
64
64
|
const setRowValue =
|
|
65
65
|
(structureId) =>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
({ index, value }) => {
|
|
67
|
+
updateGrantRequestFilter({ index, value, structureId });
|
|
68
|
+
};
|
|
69
69
|
|
|
70
70
|
return (
|
|
71
71
|
<div className="ui segment structure-grant-cart">
|
|
@@ -7,6 +7,8 @@ import { connect, useDispatch } from "react-redux";
|
|
|
7
7
|
import { HistoryBackButton } from "@truedat/core/components";
|
|
8
8
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
9
9
|
import { lazy } from "react";
|
|
10
|
+
import { useWebContext } from "@truedat/core/webContext";
|
|
11
|
+
import { useTemplateRelations } from "@truedat/df/hooks/useTemplateRelations";
|
|
10
12
|
import {
|
|
11
13
|
checkoutGrantRequest,
|
|
12
14
|
initGroupTemplates,
|
|
@@ -14,13 +16,11 @@ import {
|
|
|
14
16
|
selectGrantRequestTemplateForGroup,
|
|
15
17
|
updateGrantRequestTemplateContentForGroup,
|
|
16
18
|
} from "../routines";
|
|
19
|
+
import { useCheckoutGrantRequest } from "../hooks/useCheckoutGrantRequest";
|
|
20
|
+
import { useTemplatesByIds } from "../hooks/useTemplatesByIds";
|
|
17
21
|
import StructureGrantCart from "./StructureGrantCart";
|
|
18
22
|
import StructureGrantCartInformation from "./StructureGrantCartInformation";
|
|
19
23
|
import StructureGrantCartUserSelector from "./StructureGrantCartUserSelector";
|
|
20
|
-
import { useWebContext } from "@truedat/core/webContext";
|
|
21
|
-
import { useTemplateRelations } from "@truedat/df/hooks/useTemplateRelations";
|
|
22
|
-
import { useCheckoutGrantRequest } from "../hooks/useCheckoutGrantRequest";
|
|
23
|
-
import { useTemplatesByIds } from "../hooks/useTemplatesByIds";
|
|
24
24
|
|
|
25
25
|
const SelectableDynamicForm = lazy(
|
|
26
26
|
() => import("@truedat/df/components/SelectableDynamicForm"),
|
|
@@ -210,6 +210,7 @@ export const StructureGrantCartCheckout = ({
|
|
|
210
210
|
const tid = effectiveTemplateIdByKey[k];
|
|
211
211
|
const t =
|
|
212
212
|
tid != null ? (templatesById[String(tid)] ?? templatesById[tid]) : null;
|
|
213
|
+
// eslint-disable-next-line fp/no-mutation
|
|
213
214
|
if (t) next[k] = t;
|
|
214
215
|
});
|
|
215
216
|
return next;
|
|
@@ -308,6 +309,7 @@ export const StructureGrantCartCheckout = ({
|
|
|
308
309
|
if (domain?.id != null) {
|
|
309
310
|
const key = String(domain.id);
|
|
310
311
|
if (!domainIdToName[key]) {
|
|
312
|
+
// eslint-disable-next-line fp/no-mutation
|
|
311
313
|
domainIdToName[key] = domain.name;
|
|
312
314
|
}
|
|
313
315
|
}
|
|
@@ -332,6 +334,7 @@ export const StructureGrantCartCheckout = ({
|
|
|
332
334
|
}, [groupKeys.join(","), structures, groupedStructures]);
|
|
333
335
|
|
|
334
336
|
const checkout = () => {
|
|
337
|
+
// eslint-disable-next-line fp/no-let
|
|
335
338
|
let payload;
|
|
336
339
|
if (isMultiGroup) {
|
|
337
340
|
const grant_request_groups = groupKeys
|
|
@@ -352,6 +355,7 @@ export const StructureGrantCartCheckout = ({
|
|
|
352
355
|
created_by_id: user?.id,
|
|
353
356
|
});
|
|
354
357
|
});
|
|
358
|
+
// eslint-disable-next-line fp/no-mutation
|
|
355
359
|
payload = { grant_request_groups };
|
|
356
360
|
} else {
|
|
357
361
|
const requests = _.map((structure) => ({
|
|
@@ -359,6 +363,7 @@ export const StructureGrantCartCheckout = ({
|
|
|
359
363
|
filters: { rows: structure.filters },
|
|
360
364
|
metadata: templateContent,
|
|
361
365
|
}))(structures);
|
|
366
|
+
// eslint-disable-next-line fp/no-mutation
|
|
362
367
|
payload = {
|
|
363
368
|
grant_request_group: _.omitBy(_.isNil)({
|
|
364
369
|
requests,
|
|
@@ -13,16 +13,11 @@ import {
|
|
|
13
13
|
import StructureGrantCartUserSelector from "./StructureGrantCartUserSelector";
|
|
14
14
|
|
|
15
15
|
const SelectableDynamicForm = lazy(
|
|
16
|
-
() => import("@truedat/df/components/SelectableDynamicForm")
|
|
16
|
+
() => import("@truedat/df/components/SelectableDynamicForm"),
|
|
17
17
|
);
|
|
18
18
|
|
|
19
19
|
const getUniqueDomainIds = (structures) =>
|
|
20
|
-
_.flow(
|
|
21
|
-
_.map("domain_ids"),
|
|
22
|
-
_.flatten,
|
|
23
|
-
_.compact,
|
|
24
|
-
_.uniq
|
|
25
|
-
)(structures ?? []);
|
|
20
|
+
_.flow(_.map("domain_ids"), _.flatten, _.compact, _.uniq)(structures ?? []);
|
|
26
21
|
|
|
27
22
|
export const StructureGrantCartInformation = ({
|
|
28
23
|
grantRequestsCart,
|
|
@@ -56,21 +56,21 @@ StructureGrantListButton.propTypes = {
|
|
|
56
56
|
|
|
57
57
|
const mapStateToProps = (
|
|
58
58
|
{ structureGrantPopup, grantRequestsCart },
|
|
59
|
-
{ structure }
|
|
59
|
+
{ structure },
|
|
60
60
|
) => ({
|
|
61
61
|
structureGrantPopup,
|
|
62
62
|
requested: _.flow(
|
|
63
63
|
_.pathOr([], "structures"),
|
|
64
64
|
_.find({ id: structure.id + "" }),
|
|
65
|
-
_.negate(_.isUndefined)
|
|
65
|
+
_.negate(_.isUndefined),
|
|
66
66
|
)(grantRequestsCart),
|
|
67
67
|
authorized_dropdown: _.pathOr(
|
|
68
68
|
false,
|
|
69
|
-
"create_foreign_grant_request"
|
|
69
|
+
"create_foreign_grant_request",
|
|
70
70
|
)(structure.user_permissions),
|
|
71
71
|
authorized_request: _.pathOr(
|
|
72
72
|
false,
|
|
73
|
-
"request_grant"
|
|
73
|
+
"request_grant",
|
|
74
74
|
)(structure.user_permissions),
|
|
75
75
|
structure: {
|
|
76
76
|
...structure,
|
|
@@ -78,7 +78,7 @@ const mapStateToProps = (
|
|
|
78
78
|
hasDataFields: _.negate(_.isEmpty)(structure?.data_fields),
|
|
79
79
|
structureFields: _.flow(
|
|
80
80
|
_.get("data_fields"),
|
|
81
|
-
_.map((dataField) => ({ ...dataField, data_structure_id: dataField.id }))
|
|
81
|
+
_.map((dataField) => ({ ...dataField, data_structure_id: dataField.id })),
|
|
82
82
|
)(structure),
|
|
83
83
|
},
|
|
84
84
|
});
|
|
@@ -74,11 +74,11 @@ const mapStateToProps = ({
|
|
|
74
74
|
requested: _.flow(
|
|
75
75
|
_.pathOr([], "structures"),
|
|
76
76
|
_.find({ id: structure.id }),
|
|
77
|
-
_.negate(_.isUndefined)
|
|
77
|
+
_.negate(_.isUndefined),
|
|
78
78
|
)(grantRequestsCart),
|
|
79
79
|
authorizedDropdown: _.pathOr(
|
|
80
80
|
false,
|
|
81
|
-
"create_foreign_grant_request"
|
|
81
|
+
"create_foreign_grant_request",
|
|
82
82
|
)(userPermissions),
|
|
83
83
|
authorizedRequest: _.pathOr(false, "request_grant")(userPermissions),
|
|
84
84
|
});
|
|
@@ -6,10 +6,10 @@ import { connect } from "react-redux";
|
|
|
6
6
|
import { useNavigate } from "react-router";
|
|
7
7
|
import { columnDecorator } from "@truedat/core/services";
|
|
8
8
|
import { linkTo } from "@truedat/core/routes";
|
|
9
|
-
import { getGrantsColumns } from "../selectors";
|
|
10
|
-
import GrantRemoval from "./GrantRemoval";
|
|
11
9
|
import { useQuery } from "@apollo/client";
|
|
10
|
+
import { getGrantsColumns } from "../selectors";
|
|
12
11
|
import { DATA_STRUCTURE_VERSION_GRANTS_QUERY } from "../api/queries";
|
|
12
|
+
import GrantRemoval from "./GrantRemoval";
|
|
13
13
|
|
|
14
14
|
const matchesStructure = ({ id }) => _.pathEq("data_structure.id", id);
|
|
15
15
|
|
|
@@ -24,7 +24,7 @@ const filterQueryParams = _.flow(
|
|
|
24
24
|
propertyPath,
|
|
25
25
|
propertyValue,
|
|
26
26
|
}),
|
|
27
|
-
(queryParams) => new URLSearchParams(queryParams)
|
|
27
|
+
(queryParams) => new URLSearchParams(queryParams),
|
|
28
28
|
);
|
|
29
29
|
|
|
30
30
|
const bucketToBreadcrumbs = ({ filter, formatMessage }) => {
|
|
@@ -74,9 +74,9 @@ export const StructureItem = ({
|
|
|
74
74
|
...acc,
|
|
75
75
|
]
|
|
76
76
|
: acc,
|
|
77
|
-
[]
|
|
77
|
+
[],
|
|
78
78
|
),
|
|
79
|
-
_.join(" ")
|
|
79
|
+
_.join(" "),
|
|
80
80
|
);
|
|
81
81
|
|
|
82
82
|
return (
|
|
@@ -127,7 +127,7 @@ StructureItem.propTypes = {
|
|
|
127
127
|
|
|
128
128
|
export const mapStateToProps = (
|
|
129
129
|
{ structure, navFilter },
|
|
130
|
-
{ data_structure_id, id: structureId, type, name, alias }
|
|
130
|
+
{ data_structure_id, id: structureId, type, name, alias },
|
|
131
131
|
) => {
|
|
132
132
|
const id = data_structure_id || structureId;
|
|
133
133
|
return {
|
|
@@ -2,9 +2,8 @@ import { useEffect } from "react";
|
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { useParams } from "react-router";
|
|
5
|
-
import { clearStructure, fetchStructure } from "../routines";
|
|
6
|
-
|
|
7
5
|
import { useWebContext } from "@truedat/core/webContext";
|
|
6
|
+
import { clearStructure, fetchStructure } from "../routines";
|
|
8
7
|
|
|
9
8
|
export const StructureLoader = ({ fetchStructure, clearStructure }) => {
|
|
10
9
|
const { id, version } = useParams();
|