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