194 Commits

Author SHA1 Message Date
Bassel
5927db55fe catch and handle error 2023-03-14 11:52:04 +02:00
Convly
75c34a56f7 Fix remote export 2023-03-14 10:24:24 +01:00
Convly
68d1864357 Update typing for the transfer flow interface 2023-03-14 10:22:49 +01:00
Convly
a167d9b3a2 Remove old controller code for data transfer 2023-03-14 10:22:03 +01:00
Convly
717796283e Remove push controller 2023-03-14 10:20:43 +01:00
Christian Capeans
284cc7512f Merge branch 'data-transfer/pull' of https://github.com/strapi/strapi into data-transfer/pull 2023-03-14 09:13:08 +01:00
Christian Capeans
c44df82be3 Fix small issues 2023-03-14 09:11:44 +01:00
Ben Irvin
302ac81ba6
Merge branch 'features/data-transfer' into data-transfer/pull 2023-03-14 09:02:02 +01:00
Convly
5120ae454d Fix build 2023-03-13 17:06:57 +01:00
Ben Irvin
71f01ab868
Merge pull request #15981 from strapi/enh/gracefully-abort-transfers-on-signal 2023-03-13 14:18:59 +01:00
Ben Irvin
46a56a6c0e add throttle option 2023-03-09 17:47:19 +01:00
Bassel
33cbe053cc error handling for timeout in transfer 2023-03-09 11:07:03 +02:00
Christian Capeans
3cb882f7e9 export remote source provider 2023-03-08 13:05:23 +01:00
Christian Capeans
cd13b6cdad Fix failing test 2023-03-08 12:46:47 +01:00
Christian Capeans
6f38062581 Fix typing issues 2023-03-08 11:47:25 +01:00
Christian Capeans
674b13eb23 Merge branch 'features/data-transfer' of https://github.com/strapi/strapi into data-transfer/pull 2023-03-08 11:31:15 +01:00
Christian Capeans
5dc710e819 Remove logs 2023-03-08 11:23:56 +01:00
Christian Capeans
100c8ad767 Finish transfer pull 2023-03-08 11:11:15 +01:00
Ben Irvin
f1f1ec511d fix transfer 2023-03-06 14:11:19 +01:00
Ben Irvin
6d64484535 comments 2023-03-06 10:24:41 +01:00
Ben Irvin
364e5474d4 fix test error 2023-03-06 10:19:04 +01:00
Ben Irvin
6dac618173
Merge branch 'main' into enh/gracefully-abort-transfers-on-signal 2023-03-06 09:56:54 +01:00
Christian Capeans
3093fa32f1 Refactor the push handler for the data transfer
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-03-03 17:16:24 +01:00
Ben Irvin
927e21bde7 refactor and fix tests 2023-03-03 14:40:44 +01:00
Ben Irvin
70013c4a61 remove delay 2023-03-03 12:37:50 +01:00
Ben Irvin
c7bdb421f3 catch signals within transfer process to abort gracefully 2023-03-03 12:18:03 +01:00
Christian Capeans
2892fa55fa Refactor controllers logic to handle pull transfer
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-03-03 09:49:46 +01:00
Alexandre Bodin
dee0e195c1 Fix invalid require using internal paths 2023-03-02 22:16:29 +01:00
Bassel
687c4d0fd6 don't send headers to websocket if it's undefined 2023-03-02 15:22:51 +02:00
Bassel
bf6c00cadd send more details in error message 2023-03-02 14:56:20 +02:00
Bassel
944ddfb190 capture websocket connection error and throw correct error 2023-03-02 13:47:50 +02:00
Ben Irvin
731e2cf4c9 allow sending errors without uuid 2023-02-27 13:49:49 +01:00
Bassel
117579f4c1 replacing map with for, for async functions
Co-authored-by: Christian <christiancp100@gmail.com>
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-02-24 17:30:42 +02:00
Jean-Sébastien Herbaux
fd87132a03
Merge pull request #15902 from strapi/data-transfer/fix-transfer-transaction-close 2023-02-24 15:42:42 +01:00
Convly
163ff97fa7 Send a null payload to force the stream end event on the push controller 2023-02-24 15:41:31 +01:00
Convly
8555ff138f Merge branch 'features/data-transfer' of github.com:strapi/strapi into data-transfer/fix-transfer-transaction-close 2023-02-24 15:29:32 +01:00
Jean-Sébastien Herbaux
acbb752d95
Merge pull request #15912 from strapi/data-transfer/end-transfer 2023-02-24 15:27:43 +01:00
Convly
390897d30d Merge branch 'features/data-transfer' of github.com:strapi/strapi into data-transfer/fix-transfer-transaction-close 2023-02-24 15:26:30 +01:00
Jean-Sébastien Herbaux
2be65be5d0
Merge pull request #15880 from strapi/data-transfer/progress 2023-02-24 15:24:20 +01:00
Convly
baef75dd2e Fix the asset transfer when there are no assets 2023-02-24 15:23:20 +01:00
Convly
5a80534b3f Gracefully end the transfer 2023-02-24 15:18:35 +01:00
Bassel
c0ef863c8a remove unnecessary logs 2023-02-24 15:28:24 +02:00
Bassel
c968b3e2d7 remove console log 2023-02-24 14:51:10 +02:00
Bassel
4f9f0a11cd fix typing 2023-02-24 14:46:58 +02:00
Bassel
2bea33bf67 Batching using the amount of bytes
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-02-24 13:31:58 +02:00
Ben Irvin
1de054d71f always return a message to client instead of throwing error on server and await rollbacks
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-02-24 12:08:25 +01:00
Ben Irvin
5889463574 Merge branch 'data-transfer/progress' into data-transfer/fix-transfer-transaction-close 2023-02-24 10:07:47 +01:00
Ben Irvin
e85b3a18aa cleanup 2023-02-24 09:58:54 +01:00
Ben Irvin
fa6df72fa7 handle errors from ws response
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-02-24 09:46:03 +01:00
Ben Irvin
06aea362c4 close transactions on failed transfer
Co-authored-by: Christian <christiancp100@gmail.com>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-02-23 18:00:06 +01:00