From 6d51ce7bfc5c172f372c81dc08dcc007e4e9b346 Mon Sep 17 00:00:00 2001 From: mertmit Date: Tue, 25 Apr 2023 23:27:30 +0300 Subject: [PATCH] feat: at import background job Signed-off-by: mertmit --- .../nc-gui/components/dlg/AirtableImport.vue | 111 +- packages/nc-gui/pages/index/index/index.vue | 2 +- packages/nc-gui/plugins/jobs.ts | 56 +- .../imports/helpers/readAndProcessData.ts | 5 +- .../jobs/at-import/at-import.controller.ts | 76 + .../jobs/at-import/at-import.processor.ts | 2515 +++++++++++++++++ .../jobs/at-import/helpers/EntityMap.ts | 222 ++ .../modules/jobs/at-import/helpers/fetchAT.ts | 242 ++ .../at-import/helpers/readAndProcessData.ts | 362 +++ .../modules/jobs/at-import/helpers/syncMap.ts | 31 + .../modules/jobs/fallback-queue.service.ts | 6 + .../src/modules/jobs/jobs-event.service.ts | 1 + .../src/modules/jobs/jobs.gateway.ts | 22 +- .../src/modules/jobs/jobs.module.ts | 5 +- .../src/modules/jobs/jobs.service.ts | 6 +- .../src/modules/metas/metas.module.ts | 4 +- .../src/services/socket.gateway.ts | 12 - 17 files changed, 3565 insertions(+), 113 deletions(-) create mode 100644 packages/nocodb-nest/src/modules/jobs/at-import/at-import.controller.ts create mode 100644 packages/nocodb-nest/src/modules/jobs/at-import/at-import.processor.ts create mode 100644 packages/nocodb-nest/src/modules/jobs/at-import/helpers/EntityMap.ts create mode 100644 packages/nocodb-nest/src/modules/jobs/at-import/helpers/fetchAT.ts create mode 100644 packages/nocodb-nest/src/modules/jobs/at-import/helpers/readAndProcessData.ts create mode 100644 packages/nocodb-nest/src/modules/jobs/at-import/helpers/syncMap.ts diff --git a/packages/nc-gui/components/dlg/AirtableImport.vue b/packages/nc-gui/components/dlg/AirtableImport.vue index a86bc63e32..15c0b15e4c 100644 --- a/packages/nc-gui/components/dlg/AirtableImport.vue +++ b/packages/nc-gui/components/dlg/AirtableImport.vue @@ -1,6 +1,4 @@