@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.
Files changed (389) hide show
  1. package/package.json +3 -3
  2. package/src/api/queries.js +1 -0
  3. package/src/components/BucketView.js +2 -2
  4. package/src/components/CatalogCustomViewCards.js +1 -1
  5. package/src/components/DictionaryRoutes.js +3 -3
  6. package/src/components/FilteredNav.js +3 -3
  7. package/src/components/Grant.js +4 -4
  8. package/src/components/GrantApprovalRule.js +1 -1
  9. package/src/components/GrantApprovalRuleConditions.js +1 -1
  10. package/src/components/GrantApprovalRuleDeleteButton.js +1 -1
  11. package/src/components/GrantApprovalRuleEdit.js +1 -1
  12. package/src/components/GrantApprovalRuleForm.js +6 -6
  13. package/src/components/GrantApprovalRules.js +1 -1
  14. package/src/components/GrantFilters.js +1 -1
  15. package/src/components/GrantFiltersLoader.js +1 -1
  16. package/src/components/GrantRemovalDirectButton.js +1 -1
  17. package/src/components/GrantRemovalWorkflow.js +2 -2
  18. package/src/components/GrantRemovalWorkflowDropdown.js +1 -1
  19. package/src/components/GrantRequest.js +3 -3
  20. package/src/components/GrantRequestApprovalForm.js +2 -2
  21. package/src/components/GrantRequestApprovalResults.js +1 -1
  22. package/src/components/GrantRequestBulkActions.js +2 -2
  23. package/src/components/GrantRequestBulkRoleSelector.js +1 -1
  24. package/src/components/GrantRequestCartResult.js +13 -3
  25. package/src/components/GrantRequestSummary.js +1 -1
  26. package/src/components/GrantRequests.js +2 -2
  27. package/src/components/GrantRequestsSearchResults.js +7 -7
  28. package/src/components/GrantRoutes.js +3 -9
  29. package/src/components/Grants.js +14 -4
  30. package/src/components/GrantsDownloadButton.js +1 -1
  31. package/src/components/GrantsLabelResults.js +2 -5
  32. package/src/components/GrantsLoader.js +2 -2
  33. package/src/components/GrantsTable.js +3 -8
  34. package/src/components/GraphLoader.js +1 -1
  35. package/src/components/LineageContextMenu.js +1 -1
  36. package/src/components/LineageDownloadButton.js +2 -2
  37. package/src/components/LineageEventsTable.js +1 -1
  38. package/src/components/LineageGraph.js +7 -6
  39. package/src/components/LineageGroup.js +2 -7
  40. package/src/components/LinkLabelsSelector.js +1 -1
  41. package/src/components/MyGrantRequests.js +1 -1
  42. package/src/components/ProfileGroup.js +2 -2
  43. package/src/components/ReferenceDatasetActions.js +1 -1
  44. package/src/components/ReferenceDatasetCreate.js +1 -1
  45. package/src/components/ReferenceDatasetDetail.js +1 -1
  46. package/src/components/ReferenceDatasetFieldSelector.js +5 -5
  47. package/src/components/ReferenceDatasetForm.js +3 -3
  48. package/src/components/ReferenceDatasetSelectorInputField.js +3 -3
  49. package/src/components/ReferenceDatasetsTable.js +1 -1
  50. package/src/components/StructureChildrenRelations.js +1 -1
  51. package/src/components/StructureConfidentialButton.js +1 -1
  52. package/src/components/StructureCrumbs.js +3 -3
  53. package/src/components/StructureDeleteButton.js +1 -1
  54. package/src/components/StructureFields.js +3 -3
  55. package/src/components/StructureFieldsDropdown.js +10 -10
  56. package/src/components/StructureGrantCart.js +3 -3
  57. package/src/components/StructureGrantCartCheckout.js +9 -4
  58. package/src/components/StructureGrantCartInformation.js +2 -7
  59. package/src/components/StructureGrantListButton.js +5 -5
  60. package/src/components/StructureGrantRequestAddCart.js +1 -1
  61. package/src/components/StructureGrantSummaryButton.js +2 -2
  62. package/src/components/StructureGrants.js +2 -2
  63. package/src/components/StructureItem.js +4 -4
  64. package/src/components/StructureItemRoot.js +1 -1
  65. package/src/components/StructureLoader.js +1 -2
  66. package/src/components/StructureMetadata.js +23 -17
  67. package/src/components/StructureNav.js +1 -1
  68. package/src/components/StructureNavClassified.js +1 -1
  69. package/src/components/StructureNoteActions.js +1 -1
  70. package/src/components/StructureNotes.js +3 -3
  71. package/src/components/StructureNotesEdit.js +4 -4
  72. package/src/components/StructureProfileButton.js +1 -1
  73. package/src/components/StructureProperties.js +1 -1
  74. package/src/components/StructureSelector.js +3 -3
  75. package/src/components/StructureSelectorInputFieldJoin.js +2 -2
  76. package/src/components/StructureStructureForm.js +2 -2
  77. package/src/components/StructureStructureLinks.js +5 -5
  78. package/src/components/StructureTabPane.js +5 -5
  79. package/src/components/StructureTabPaneRoutes.js +92 -80
  80. package/src/components/StructureTabRoutes.js +30 -8
  81. package/src/components/StructureTabs.js +17 -16
  82. package/src/components/StructureTagForm.js +2 -2
  83. package/src/components/StructureTags.js +1 -1
  84. package/src/components/StructureTypeForm.js +3 -3
  85. package/src/components/StructureTypeLoader.js +1 -1
  86. package/src/components/StructureTypesLoader.js +1 -1
  87. package/src/components/StructureTypesRoutes.js +1 -1
  88. package/src/components/StructureVersions.js +17 -16
  89. package/src/components/StructureView.js +1 -1
  90. package/src/components/StructuresBulkUpdate.js +4 -4
  91. package/src/components/StructuresDomainsUploadOption.js +1 -1
  92. package/src/components/StructuresDownloadOption.js +1 -1
  93. package/src/components/StructuresGrantRequestView.js +1 -1
  94. package/src/components/StructuresLoader.js +1 -1
  95. package/src/components/StructuresRoutes.js +2 -2
  96. package/src/components/StructuresTable.js +4 -4
  97. package/src/components/StructuresUpdateOption.js +3 -3
  98. package/src/components/StructuresUploadEventsTable.js +9 -9
  99. package/src/components/StructuresUploadOption.js +14 -14
  100. package/src/components/StructuresView.js +1 -1
  101. package/src/components/SystemCards.js +7 -7
  102. package/src/components/SystemForm.js +2 -2
  103. package/src/components/SystemLoader.js +1 -1
  104. package/src/components/SystemStructures.js +2 -2
  105. package/src/components/SystemView.js +3 -3
  106. package/src/components/Task.js +6 -6
  107. package/src/components/Tasks.js +1 -1
  108. package/src/components/ValueConditionStructure.js +2 -2
  109. package/src/components/__tests__/BucketView.spec.js +2 -2
  110. package/src/components/__tests__/CatalogCustomViewCards.spec.js +1 -1
  111. package/src/components/__tests__/CatalogViewConfigForm.spec.js +2 -2
  112. package/src/components/__tests__/CatalogViewConfigs.spec.js +2 -2
  113. package/src/components/__tests__/DictionaryRoutes.spec.js +7 -3
  114. package/src/components/__tests__/EditDomainForm.spec.js +3 -3
  115. package/src/components/__tests__/FilteredNav.spec.js +4 -4
  116. package/src/components/__tests__/Grant.spec.js +4 -4
  117. package/src/components/__tests__/GrantApprovalRuleConditions.spec.js +6 -6
  118. package/src/components/__tests__/GrantApprovalRuleDeleteButton.spec.js +2 -2
  119. package/src/components/__tests__/GrantApprovalRuleForm.spec.js +9 -7
  120. package/src/components/__tests__/GrantApprovalRules.spec.js +3 -3
  121. package/src/components/__tests__/GrantRemoval.spec.js +4 -4
  122. package/src/components/__tests__/GrantRemovalDirectButton.spec.js +8 -8
  123. package/src/components/__tests__/GrantRemovalWorkflow.spec.js +8 -8
  124. package/src/components/__tests__/GrantRequest.spec.js +1 -1
  125. package/src/components/__tests__/GrantRequestApprovalForm.spec.js +6 -6
  126. package/src/components/__tests__/GrantRequestApprovalPopup.spec.js +1 -1
  127. package/src/components/__tests__/GrantRequestBulkActions.spec.js +8 -8
  128. package/src/components/__tests__/GrantRequestBulkApprovalForm.spec.js +2 -2
  129. package/src/components/__tests__/GrantRequestBulkRoleSelector.spec.js +2 -2
  130. package/src/components/__tests__/GrantRequestCartResult.spec.js +13 -3
  131. package/src/components/__tests__/GrantRequestHeader.spec.js +2 -2
  132. package/src/components/__tests__/GrantRequestRow.spec.js +4 -4
  133. package/src/components/__tests__/GrantRequestSummary.spec.js +1 -1
  134. package/src/components/__tests__/GrantRequests.spec.js +2 -2
  135. package/src/components/__tests__/GrantRequestsLabelResults.spec.js +3 -3
  136. package/src/components/__tests__/GrantRequestsSearchResults.spec.js +2 -2
  137. package/src/components/__tests__/GrantRequestsTable.spec.js +1 -1
  138. package/src/components/__tests__/GrantRoutes.spec.js +16 -16
  139. package/src/components/__tests__/GrantsDownloadButton.spec.js +68 -40
  140. package/src/components/__tests__/GrantsLabelResults.spec.js +2 -2
  141. package/src/components/__tests__/GrantsLoader.spec.js +1 -1
  142. package/src/components/__tests__/GrantsTable.spec.js +4 -4
  143. package/src/components/__tests__/LineageForm.spec.js +5 -5
  144. package/src/components/__tests__/LineageGroup.spec.js +6 -6
  145. package/src/components/__tests__/LineageResource.spec.js +5 -5
  146. package/src/components/__tests__/LineageRoutes.spec.js +6 -6
  147. package/src/components/__tests__/PendingStructureNoteRow.spec.js +4 -4
  148. package/src/components/__tests__/PendingStructureNotes.spec.js +1 -1
  149. package/src/components/__tests__/PendingStructureNotesLabelResults.spec.js +1 -1
  150. package/src/components/__tests__/PendingStructureNotesPagination.spec.js +1 -1
  151. package/src/components/__tests__/PendingStructureNotesTable.spec.js +2 -2
  152. package/src/components/__tests__/ProfileExecution.spec.js +2 -2
  153. package/src/components/__tests__/ProfileGroup.spec.js +2 -2
  154. package/src/components/__tests__/ReferenceDataset.spec.js +7 -5
  155. package/src/components/__tests__/ReferenceDatasetCreate.spec.js +1 -1
  156. package/src/components/__tests__/ReferenceDatasetDetail.spec.js +1 -1
  157. package/src/components/__tests__/ReferenceDatasetFieldSelector.spec.js +9 -9
  158. package/src/components/__tests__/ReferenceDatasetForm.spec.js +9 -7
  159. package/src/components/__tests__/ReferenceDatasetRoutes.spec.js +1 -1
  160. package/src/components/__tests__/StructureFieldRow.spec.js +3 -3
  161. package/src/components/__tests__/StructureFieldsDropdown.spec.js +5 -5
  162. package/src/components/__tests__/StructureGrantCartCheckout.spec.js +2 -2
  163. package/src/components/__tests__/StructureGrantCartInformation.spec.js +1 -1
  164. package/src/components/__tests__/StructureGrantCartUserSelector.spec.js +4 -4
  165. package/src/components/__tests__/StructureGrantDropdown.spec.js +3 -3
  166. package/src/components/__tests__/StructureGrantListButton.spec.js +4 -4
  167. package/src/components/__tests__/StructureGrantSummaryButton.spec.js +5 -5
  168. package/src/components/__tests__/StructureItem.spec.js +3 -3
  169. package/src/components/__tests__/StructureMetadata.spec.js +2 -4
  170. package/src/components/__tests__/StructureNavClassified.spec.js +1 -1
  171. package/src/components/__tests__/StructureNoteActions.spec.js +17 -15
  172. package/src/components/__tests__/StructureNoteLink.spec.js +8 -9
  173. package/src/components/__tests__/StructureNotes.spec.js +3 -3
  174. package/src/components/__tests__/StructureNotesDownloadButton.spec.js +15 -15
  175. package/src/components/__tests__/StructureNotesEdit.spec.js +1 -1
  176. package/src/components/__tests__/StructureRelationRow.spec.js +2 -2
  177. package/src/components/__tests__/StructureRelations.spec.js +2 -2
  178. package/src/components/__tests__/StructureRow.spec.js +2 -2
  179. package/src/components/__tests__/StructureSelectorInputField.spec.js +2 -2
  180. package/src/components/__tests__/StructureSelectorInputFieldJoin.spec.js +1 -1
  181. package/src/components/__tests__/StructureStructureForm.spec.js +1 -1
  182. package/src/components/__tests__/StructureStructureLinks.spec.js +15 -15
  183. package/src/components/__tests__/StructureSummary.spec.js +1 -1
  184. package/src/components/__tests__/StructureTabPane.spec.js +10 -12
  185. package/src/components/__tests__/StructureTabRoutes.spec.js +1 -1
  186. package/src/components/__tests__/StructureTabs.spec.js +24 -8
  187. package/src/components/__tests__/StructureTag.spec.js +11 -11
  188. package/src/components/__tests__/StructureTagForm.spec.js +17 -17
  189. package/src/components/__tests__/StructureTypesRoutes.spec.js +4 -4
  190. package/src/components/__tests__/StructureVersions.spec.js +0 -1
  191. package/src/components/__tests__/StructuresBulkUpdate.spec.js +3 -3
  192. package/src/components/__tests__/StructuresDownloadOption.spec.js +3 -3
  193. package/src/components/__tests__/StructuresEditableDownloadOption.spec.js +2 -2
  194. package/src/components/__tests__/StructuresGrantRequestView.spec.js +2 -2
  195. package/src/components/__tests__/StructuresLabelResults.spec.js +1 -1
  196. package/src/components/__tests__/StructuresLoader.spec.js +1 -1
  197. package/src/components/__tests__/StructuresOptions.spec.js +15 -9
  198. package/src/components/__tests__/StructuresRoutes.spec.js +1 -1
  199. package/src/components/__tests__/StructuresSearchResults.spec.js +2 -2
  200. package/src/components/__tests__/StructuresTable.spec.js +5 -5
  201. package/src/components/__tests__/StructuresUpdateOption.spec.js +2 -2
  202. package/src/components/__tests__/StructuresUploadOption.spec.js +2 -2
  203. package/src/components/__tests__/StructuresView.spec.js +6 -6
  204. package/src/components/__tests__/SystemCards.spec.js +2 -2
  205. package/src/components/__tests__/SystemFilteredNav.spec.js +1 -1
  206. package/src/components/__tests__/SystemStructuresLoader.spec.js +1 -1
  207. package/src/components/__tests__/SystemsRoutes.spec.js +1 -1
  208. package/src/components/__tests__/TagForm.spec.js +7 -5
  209. package/src/components/__tests__/TagsRoutes.spec.js +1 -1
  210. package/src/components/__tests__/Tasks.spec.js +9 -9
  211. package/src/components/__tests__/TasksRoutes.spec.js +1 -1
  212. package/src/components/__tests__/ValueConditionStructure.spec.js +2 -2
  213. package/src/hooks/useBucketPaths.js +1 -1
  214. package/src/hooks/useBucketStructures.js +1 -1
  215. package/src/hooks/useCustomTabs.js +1 -1
  216. package/src/hooks/useGrant.js +7 -3
  217. package/src/hooks/useGrantRequest.js +4 -4
  218. package/src/hooks/useStructures.js +4 -5
  219. package/src/hooks/useTemplatesByIds.js +10 -5
  220. package/src/messages/en.js +1 -2
  221. package/src/messages/es.js +1 -2
  222. package/src/messages/index.js +1 -1
  223. package/src/reducers/__tests__/bulkUpdateStructuresLoading.spec.js +5 -5
  224. package/src/reducers/__tests__/creatingGrantRequestApproval.spec.js +3 -3
  225. package/src/reducers/__tests__/csvGraphDownloading.spec.js +4 -4
  226. package/src/reducers/__tests__/ddMessage.spec.js +3 -3
  227. package/src/reducers/__tests__/grantFilters.spec.js +1 -1
  228. package/src/reducers/__tests__/grantQuery.spec.js +6 -6
  229. package/src/reducers/__tests__/grantRequests.spec.js +2 -2
  230. package/src/reducers/__tests__/grantRequestsCart.spec.js +31 -31
  231. package/src/reducers/__tests__/grantRequestsLoading.spec.js +3 -3
  232. package/src/reducers/__tests__/grantRequestsQuery.spec.js +2 -2
  233. package/src/reducers/__tests__/grants.spec.js +2 -2
  234. package/src/reducers/__tests__/graph.spec.js +1 -1
  235. package/src/reducers/__tests__/graphLoading.spec.js +6 -4
  236. package/src/reducers/__tests__/graphRedirect.spec.js +11 -7
  237. package/src/reducers/__tests__/lineageEventsLoading.spec.js +2 -2
  238. package/src/reducers/__tests__/lineageQuery.spec.js +6 -6
  239. package/src/reducers/__tests__/nodes.spec.js +1 -1
  240. package/src/reducers/__tests__/nodesLoading.spec.js +2 -2
  241. package/src/reducers/__tests__/profileExecution.spec.js +6 -6
  242. package/src/reducers/__tests__/profileExecutionLoading.spec.js +5 -3
  243. package/src/reducers/__tests__/profileGroup.spec.js +12 -12
  244. package/src/reducers/__tests__/profileGroupLoading.spec.js +6 -6
  245. package/src/reducers/__tests__/referenceDatasetSaving.spec.js +8 -4
  246. package/src/reducers/__tests__/selectedGroups.spec.js +2 -2
  247. package/src/reducers/__tests__/selectedNode.spec.js +5 -5
  248. package/src/reducers/__tests__/selectedResources.spec.js +5 -5
  249. package/src/reducers/__tests__/selectedUserSearchFilter.spec.js +3 -3
  250. package/src/reducers/__tests__/structure.spec.js +2 -2
  251. package/src/reducers/__tests__/structureActions.spec.js +4 -4
  252. package/src/reducers/__tests__/structureAncestry.spec.js +6 -6
  253. package/src/reducers/__tests__/structureChildren.spec.js +2 -2
  254. package/src/reducers/__tests__/structureFields.spec.js +5 -5
  255. package/src/reducers/__tests__/structureImpactGraph.spec.js +6 -6
  256. package/src/reducers/__tests__/structureImpactId.spec.js +7 -7
  257. package/src/reducers/__tests__/structureLineageGraph.spec.js +7 -7
  258. package/src/reducers/__tests__/structureLineageId.spec.js +7 -7
  259. package/src/reducers/__tests__/structureLinks.spec.js +6 -6
  260. package/src/reducers/__tests__/structureLoading.spec.js +2 -2
  261. package/src/reducers/__tests__/structureNotes.spec.js +1 -1
  262. package/src/reducers/__tests__/structureParents.spec.js +2 -2
  263. package/src/reducers/__tests__/structureProfile.spec.js +9 -6
  264. package/src/reducers/__tests__/structureQuery.spec.js +4 -4
  265. package/src/reducers/__tests__/structureRedirect.spec.js +9 -9
  266. package/src/reducers/__tests__/structureRelations.spec.js +4 -4
  267. package/src/reducers/__tests__/structureSiblings.spec.js +2 -2
  268. package/src/reducers/__tests__/structureSystem.spec.js +3 -3
  269. package/src/reducers/__tests__/structureTagSaving.spec.js +2 -2
  270. package/src/reducers/__tests__/structureType.spec.js +2 -2
  271. package/src/reducers/__tests__/structureTypeLoading.spec.js +6 -6
  272. package/src/reducers/__tests__/structureVersion.spec.js +4 -4
  273. package/src/reducers/__tests__/structureVersions.spec.js +9 -5
  274. package/src/reducers/__tests__/structures.spec.js +3 -3
  275. package/src/reducers/__tests__/structuresAliasNameMode.spec.js +5 -5
  276. package/src/reducers/__tests__/structuresUploadEvents.spec.js +1 -1
  277. package/src/reducers/__tests__/structuresUploadEventsLoading.spec.js +4 -4
  278. package/src/reducers/__tests__/system.spec.js +2 -2
  279. package/src/reducers/__tests__/systemId.spec.js +3 -3
  280. package/src/reducers/__tests__/systemStructures.spec.js +3 -3
  281. package/src/reducers/__tests__/systemStructuresLoading.spec.js +2 -2
  282. package/src/reducers/ddMessage.js +1 -1
  283. package/src/reducers/grantFilters.js +1 -1
  284. package/src/reducers/grantRequestsCart.js +16 -13
  285. package/src/reducers/grantSelectedFilter.js +1 -1
  286. package/src/reducers/profileGroup.js +1 -1
  287. package/src/reducers/selectedResources.js +1 -1
  288. package/src/reducers/selectedUserSearchFilter.js +1 -1
  289. package/src/reducers/structure.js +2 -1
  290. package/src/reducers/structureImpactGraph.js +1 -1
  291. package/src/reducers/structureLineageGraph.js +1 -1
  292. package/src/reducers/structureRedirect.js +1 -1
  293. package/src/reducers/structuresAliasNameMode.js +1 -1
  294. package/src/reducers/structuresUploadEvents.js +1 -1
  295. package/src/reducers/systemId.js +1 -1
  296. package/src/reducers/userSearchFilters.js +1 -1
  297. package/src/routines.js +31 -32
  298. package/src/sagas/__tests__/createGrantApprovalRule.spec.js +1 -1
  299. package/src/sagas/__tests__/createGrantRequestApproval.spec.js +1 -1
  300. package/src/sagas/__tests__/createGrantRequestStatus.spec.js +1 -1
  301. package/src/sagas/__tests__/createGraph.spec.js +5 -5
  302. package/src/sagas/__tests__/createProfileGroup.spec.js +10 -10
  303. package/src/sagas/__tests__/deleteGrantApprovalRule.spec.js +1 -1
  304. package/src/sagas/__tests__/deleteStructureStructureLink.spec.js +1 -1
  305. package/src/sagas/__tests__/doStructureNoteAction.spec.js +6 -6
  306. package/src/sagas/__tests__/downloadCsvGraph.spec.js +2 -2
  307. package/src/sagas/__tests__/fetchGrantFilters.spec.js +1 -1
  308. package/src/sagas/__tests__/fetchGrantRequestsFilters.spec.js +3 -3
  309. package/src/sagas/__tests__/fetchProfileExecution.spec.js +3 -3
  310. package/src/sagas/__tests__/fetchProfileGroup.spec.js +6 -6
  311. package/src/sagas/__tests__/fetchStructureNotes.spec.js +3 -3
  312. package/src/sagas/__tests__/fetchStructures.spec.js +2 -2
  313. package/src/sagas/__tests__/fetchStructuresUploadEvents.spec.js +1 -1
  314. package/src/sagas/__tests__/fetchSystemStructures.spec.js +4 -4
  315. package/src/sagas/__tests__/requestGrantRemoval.spec.js +2 -2
  316. package/src/sagas/__tests__/updateGrantApprovalRule.spec.js +1 -1
  317. package/src/sagas/__tests__/updateStructure.spec.js +1 -1
  318. package/src/sagas/__tests__/uploadStructuresDomains.spec.js +3 -3
  319. package/src/sagas/bulkUpdateStructures.js +1 -1
  320. package/src/sagas/createGrantApprovalRule.js +1 -1
  321. package/src/sagas/createGrantRequestApproval.js +1 -1
  322. package/src/sagas/createGrantRequestStatus.js +2 -2
  323. package/src/sagas/createGraph.js +3 -3
  324. package/src/sagas/createProfileGroup.js +1 -1
  325. package/src/sagas/createSystem.js +2 -2
  326. package/src/sagas/deleteCatalogViewConfig.js +1 -1
  327. package/src/sagas/deleteGrantApprovalRule.js +1 -1
  328. package/src/sagas/deleteStructureStructureLink.js +1 -1
  329. package/src/sagas/doStructureNoteAction.js +9 -4
  330. package/src/sagas/downloadCsvGraph.js +2 -2
  331. package/src/sagas/downloadReferenceDataset.js +1 -1
  332. package/src/sagas/fetchGrantRequestsFilters.js +1 -1
  333. package/src/sagas/fetchGraph.js +1 -1
  334. package/src/sagas/fetchStructuresUploadEvents.js +1 -1
  335. package/src/sagas/graph/polling.js +4 -4
  336. package/src/sagas/linkStructureToStructure.js +2 -2
  337. package/src/sagas/requestGrantRemoval.js +1 -1
  338. package/src/sagas/updateGrantApprovalRule.js +1 -1
  339. package/src/sagas/updateStructure.js +1 -1
  340. package/src/sagas/uploadStructuresDomains.js +2 -2
  341. package/src/sagas/upsertCatalogViewConfig.js +1 -1
  342. package/src/selectors/__tests__/getActiveTab.spec.js +99 -28
  343. package/src/selectors/__tests__/getBusinessConceptsLinksToStructuresColumnsSelector.spec.js +1 -1
  344. package/src/selectors/__tests__/getGrantRequestsColumns.spec.js +2 -2
  345. package/src/selectors/__tests__/getGrantRequestsSearchColumns.spec.js +1 -1
  346. package/src/selectors/__tests__/getGrantsColumns.spec.js +4 -4
  347. package/src/selectors/__tests__/getParsedEvents.spec.js +1 -1
  348. package/src/selectors/__tests__/getSortedRelations.spec.js +5 -5
  349. package/src/selectors/__tests__/getStructureFieldColumns.spec.js +1 -1
  350. package/src/selectors/__tests__/getStructureRelations.spec.js +1 -1
  351. package/src/selectors/__tests__/getTabVisibility.spec.js +49 -38
  352. package/src/selectors/__tests__/messages.spec.js +4 -4
  353. package/src/selectors/getActiveTab.js +16 -4
  354. package/src/selectors/getBusinessConceptsLinksToStructuresColumnsSelector.js +1 -1
  355. package/src/selectors/getGrantAvailableFilters.js +2 -2
  356. package/src/selectors/getGrantRequestTemplate.js +1 -1
  357. package/src/selectors/getGrantRequests.js +2 -2
  358. package/src/selectors/getGrantRequestsColumns.js +6 -6
  359. package/src/selectors/getGrantRequestsQuery.js +1 -1
  360. package/src/selectors/getGrantRequestsSearchColumns.js +2 -2
  361. package/src/selectors/getGrantSelectedFilters.js +1 -1
  362. package/src/selectors/getGrantsColumns.js +5 -5
  363. package/src/selectors/getLineageLevels.js +1 -1
  364. package/src/selectors/getLinkedImplementationsToStructuresColumns.js +1 -1
  365. package/src/selectors/getRelationSortingCriteria.js +1 -1
  366. package/src/selectors/getSortedRelations.js +5 -5
  367. package/src/selectors/getSortedStructureNotes.js +4 -4
  368. package/src/selectors/getStructureDeletedAt.js +2 -2
  369. package/src/selectors/getStructureFieldColumns.js +1 -1
  370. package/src/selectors/getStructureLinks.js +1 -1
  371. package/src/selectors/getStructureParent.js +2 -2
  372. package/src/selectors/getStructureProperties.js +1 -1
  373. package/src/selectors/getStructureRelations.js +4 -4
  374. package/src/selectors/getStructureSortingCriteria.js +1 -1
  375. package/src/selectors/getStructureUpdatedAt.js +1 -1
  376. package/src/selectors/getStructuresFields.js +5 -5
  377. package/src/selectors/getStructuresUploadEventColumns.js +1 -1
  378. package/src/selectors/getSystem.js +1 -1
  379. package/src/selectors/getSystemTemplate.js +1 -1
  380. package/src/selectors/getTabVisibility.js +5 -6
  381. package/src/selectors/groupOptionsSelector.js +2 -2
  382. package/src/selectors/leafClassesSelector.js +1 -1
  383. package/src/selectors/messages.js +1 -1
  384. package/src/selectors/metadataViewsSelector.js +6 -6
  385. package/src/selectors/resourceOptionsSelector.js +2 -2
  386. package/src/selectors/structureColumnsSelector.js +2 -2
  387. package/src/selectors/structureNotesColumnsSelector.js +1 -1
  388. package/src/selectors/templateNamesSelector.js +1 -1
  389. 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
  );
@@ -90,5 +90,5 @@ const mapStateToProps = (state) => ({
90
90
  });
91
91
 
92
92
  export default connect(mapStateToProps, { fetchLineageEvents })(
93
- LineageEventsTable
93
+ LineageEventsTable,
94
94
  );
@@ -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)] : [],
@@ -12,7 +12,7 @@ const makeOptions = (labels) =>
12
12
  key: id,
13
13
  value: id,
14
14
  text: name,
15
- }))
15
+ })),
16
16
  )(labels);
17
17
 
18
18
  export const LinkLabelsSelector = ({
@@ -104,5 +104,5 @@ MyGrantRequests.propTypes = {
104
104
  };
105
105
 
106
106
  export default connect(mapStateToProps, { setGrantRequestsQuery })(
107
- MyGrantRequests
107
+ MyGrantRequests,
108
108
  );
@@ -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
  />
@@ -37,5 +37,5 @@ ReferenceDatasetCreate.propTypes = {
37
37
  };
38
38
 
39
39
  export default connect(null, { createReferenceDataset })(
40
- ReferenceDatasetCreate
40
+ ReferenceDatasetCreate,
41
41
  );
@@ -32,5 +32,5 @@ ReferenceDatasetDetail.propTypes = {
32
32
  };
33
33
 
34
34
  export default connect(null, { updateReferenceDataset })(
35
- ReferenceDatasetDetail
35
+ ReferenceDatasetDetail,
36
36
  );
@@ -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 }) =>
@@ -82,7 +82,7 @@ export const ReferenceDatasetsTable = ({ datasets }) => {
82
82
  <caption className="text-right">
83
83
  {formatMessage(
84
84
  { id: "referenceDatasets.count" },
85
- { count: _.size(datasets) }
85
+ { count: _.size(datasets) },
86
86
  )}
87
87
  </caption>
88
88
  <Table.Header>
@@ -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
 
@@ -75,5 +75,5 @@ export const mapStateToProps = ({
75
75
 
76
76
  export default compose(
77
77
  injectIntl,
78
- connect(mapStateToProps, { updateStructure })
78
+ connect(mapStateToProps, { updateStructure }),
79
79
  )(StructureConfidentialButton);
@@ -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 }) => (
@@ -39,5 +39,5 @@ const mapStateToProps = ({ structure }) => ({
39
39
  });
40
40
 
41
41
  export default connect(mapStateToProps, { deleteStructure })(
42
- StructureDeleteButton
42
+ StructureDeleteButton,
43
43
  );
@@ -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
- ({ index, value }) => {
67
- updateGrantRequestFilter({ index, value, structureId });
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
  });
@@ -22,5 +22,5 @@ StructureGrantRequestAddCart.propTypes = {
22
22
  };
23
23
 
24
24
  export default connect(null, { addGrantRequestToCart })(
25
- StructureGrantRequestAddCart
25
+ StructureGrantRequestAddCart,
26
26
  );
@@ -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 {
@@ -12,7 +12,7 @@ const filterParams = _.flow(
12
12
  ([propertyPath, propertyValue]) => ({
13
13
  propertyPath,
14
14
  propertyValue,
15
- })
15
+ }),
16
16
  );
17
17
 
18
18
  export const StructureItemRoot = ({ navFilter }) => {
@@ -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();