Skip to content

Wc 129 dataset form redirect fix #6449

Wc 129 dataset form redirect fix

Wc 129 dataset form redirect fix #6449

Triggered via pull request December 10, 2024 19:05
Status Failure
Total duration 1m 47s
Artifacts

main.yml

on: pull_request
Server_Side_Unit_Tests
50s
Server_Side_Unit_Tests
Server_Side_Linting
44s
Server_Side_Linting
Client_Side_Unit_Tests
1m 38s
Client_Side_Unit_Tests
Client_Side_Linting
38s
Client_Side_Linting
Fit to window
Zoom out
Zoom in

Annotations

13 errors
Client_Side_Linting
Process completed with exit code 2.
Server_Side_Linting
Process completed with exit code 1.
Server_Side_Unit_Tests
Process completed with exit code 1.
src/utils/filePermissions.test.js > getFilePermissions utility function > Correctly evaluate rename permission: client/src/utils/filePermissions.js#L35
TypeError: customPermissionCheck is not a function ❯ Module.getFilePermissions [as default] src/utils/filePermissions.js:35:9 ❯ src/utils/filePermissions.test.js:61:32
src/utils/filePermissions.test.js > getFilePermissions utility function > Correctly evaluate download permission: client/src/utils/filePermissions.js#L42
TypeError: customPermissionCheck is not a function ❯ Module.getFilePermissions [as default] src/utils/filePermissions.js:42:9 ❯ src/utils/filePermissions.test.js:61:32
src/utils/filePermissions.test.js > getFilePermissions utility function > Correctly evaluate extract permission: client/src/utils/filePermissions.js#L56
TypeError: customPermissionCheck is not a function ❯ Module.getFilePermissions [as default] src/utils/filePermissions.js:56:9 ❯ src/utils/filePermissions.test.js:61:32
src/utils/filePermissions.test.js > getFilePermissions utility function > Correctly evaluate move permission: client/src/utils/filePermissions.js#L74
TypeError: customPermissionCheck is not a function ❯ Module.getFilePermissions [as default] src/utils/filePermissions.js:74:9 ❯ src/utils/filePermissions.test.js:61:32
src/utils/filePermissions.test.js > getFilePermissions utility function > Correctly evaluate copy permission: client/src/utils/filePermissions.js#L67
TypeError: customPermissionCheck is not a function ❯ Module.getFilePermissions [as default] src/utils/filePermissions.js:67:34 ❯ src/utils/filePermissions.test.js:61:32
src/utils/filePermissions.test.js > getFilePermissions utility function > Correctly evaluate compress permission: client/src/utils/filePermissions.js#L64
TypeError: customPermissionCheck is not a function ❯ Module.getFilePermissions [as default] src/utils/filePermissions.js:64:9 ❯ src/utils/filePermissions.test.js:79:32
src/utils/filePermissions.test.js > getFilePermissions utility function > Correctly evaluate areMultipleFilesOrFolderSelected permission: client/src/utils/filePermissions.js#L48
TypeError: customPermissionCheck is not a function ❯ Module.getFilePermissions [as default] src/utils/filePermissions.js:48:9 ❯ src/utils/filePermissions.test.js:79:32
src/components/SiteSearch/SiteSearch.test.jsx > SiteSearchComponent > dispatches action and redirects to filter: client/src/components/DataFiles/DataFilesModals/DataFilesPreviewModal.jsx#L40
TypeError: Cannot read properties of undefined (reading 'portalName') ❯ src/components/DataFiles/DataFilesModals/DataFilesPreviewModal.jsx:40:61 ❯ useSelectorWithStoreAndSubscription node_modules/react-redux/lib/hooks/useSelector.js:39:30 ❯ Proxy.useSelector node_modules/react-redux/lib/hooks/useSelector.js:139:25 ❯ DataFilesPreviewModal src/components/DataFiles/DataFilesModals/DataFilesPreviewModal.jsx:40:22 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:14985:18 ❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:17811:13 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:19049:16 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:3945:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25
src/components/Workbench/index.test.jsx > AppRouter > renders AppRouter and dispatches events: client/src/components/Workbench/AppRouter.jsx#L20
TypeError: Cannot read properties of undefined (reading 'config') ❯ src/components/Workbench/AppRouter.jsx:20:32 ❯ useSelectorWithStoreAndSubscription node_modules/react-redux/lib/hooks/useSelector.js:39:30 ❯ Proxy.useSelector node_modules/react-redux/lib/hooks/useSelector.js:139:25 ❯ AppRouter src/components/Workbench/AppRouter.jsx:19:26 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:14985:18 ❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:17811:13 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:19049:16 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:3945:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25
src/redux/sagas/datafiles.sagas.test.js > copyFiles > copy util works when src/dest APIs match: client/src/redux/sagas/datafiles.sagas.test.js#L605
AssertionError: expected "fetch" to be called with arguments: [ …(2) ] Received: 1st fetch call: Array [ - "/api/datafiles/tapis/copy/private/test.system/testpath/", - Object { - "body": "{\"dest_system\":\"test.system\",\"dest_path\":\"testpath2\",\"file_name\":\"testfilename\",\"filetype\":\"dir\",\"dest_path_name\":\"destname\"}", - "credentials": "same-origin", - "headers": Object { - "X-CSRFToken": undefined, - }, - "method": "PUT", - }, + "/api/datafiles/systems/list/", ] 2nd fetch call: Array [ - "/api/datafiles/tapis/copy/private/test.system/testpath/", - Object { - "body": "{\"dest_system\":\"test.system\",\"dest_path\":\"testpath2\",\"file_name\":\"testfilename\",\"filetype\":\"dir\",\"dest_path_name\":\"destname\"}", - "credentials": "same-origin", - "headers": Object { - "X-CSRFToken": undefined, - }, - "method": "PUT", - }, + "/api/datafiles/tapis/listing/private/test.system/path/to/file?limit=100&nextPageToken&offset=0&query_string=", ] 3rd fetch call: Array [ "/api/datafiles/tapis/copy/private/test.system/testpath/", Object { - "body": "{\"dest_system\":\"test.system\",\"dest_path\":\"testpath2\",\"file_name\":\"testfilename\",\"filetype\":\"dir\",\"dest_path_name\":\"destname\"}", + "body": "{\"dest_system\":\"test.system\",\"dest_path\":\"testpath2\",\"file_name\":\"testfilename\",\"filetype\":\"dir\",\"dest_path_name\":\"destname\",\"metadata\":null}", "credentials": "same-origin", "headers": Object { "X-CSRFToken": undefined, }, "method": "PUT", }, ] Number of calls: 3 ❯ src/redux/sagas/datafiles.sagas.test.js:605:19