From 8e52fa01a1c7f5c262b2e0972f946ba4e326d99b Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 15 Dec 2021 18:40:11 +0530 Subject: [PATCH] fix: table missing from table list Signed-off-by: Pranav C --- .../nc-gui/components/ProjectTreeView.vue | 5 +- .../projectMetadata/disableOrEnableModels.vue | 46 +++++++------- packages/nc-gui/store/tabs.js | 4 +- packages/nocodb/package.json | 1 + packages/nocodb/src/example/dockerRunMysql.ts | 56 +++++++++++++++++ packages/nocodb/src/lib/noco/Noco.ts | 2 +- .../src/lib/noco/common/BaseApiBuilder.ts | 4 +- .../src/lib/noco/common/XcMigrationSource.ts | 6 +- .../common/jobs/ncParentModelTitleUpgrader.ts | 29 +++++++++ .../nocodb/src/lib/noco/meta/NcMetaMgr.ts | 61 +++++++++++++++---- .../nocodb/src/lib/noco/meta/NcMetaMgrEE.ts | 4 ++ .../nc_010_add_parent_title_column.ts | 38 ++++++++++++ 12 files changed, 217 insertions(+), 39 deletions(-) create mode 100644 packages/nocodb/src/example/dockerRunMysql.ts create mode 100644 packages/nocodb/src/lib/noco/common/jobs/ncParentModelTitleUpgrader.ts create mode 100644 packages/nocodb/src/lib/noco/migrations/nc_010_add_parent_title_column.ts diff --git a/packages/nc-gui/components/ProjectTreeView.vue b/packages/nc-gui/components/ProjectTreeView.vue index c4aecfbcce..c9e7688105 100644 --- a/packages/nc-gui/components/ProjectTreeView.vue +++ b/packages/nc-gui/components/ProjectTreeView.vue @@ -1222,7 +1222,10 @@ export default { this.dialogGetFunctionName.dialogShow = true; } else if (action === 'ENV_DB_FUNCTIONS_CREATE') { this.dialogGetFunctionName.dialogShow = true; - } else if (action === 'ENV_DB_VIEWS_REFRESH') { + } else if (action === "ENV_DB_TABLES_REFRESH") { + await this.loadTables(this.menuItem); + this.$toast.success('Tables refreshed').goAway(1000); + }else if (action === 'ENV_DB_VIEWS_REFRESH') { await this.loadViews(this.menuItem); this.$toast.success('Views refreshed').goAway(1000); } else if (action === 'IMPORT_EXCEL') { diff --git a/packages/nc-gui/components/project/projectMetadata/disableOrEnableModels.vue b/packages/nc-gui/components/project/projectMetadata/disableOrEnableModels.vue index de901b7757..f6209196c7 100644 --- a/packages/nc-gui/components/project/projectMetadata/disableOrEnableModels.vue +++ b/packages/nc-gui/components/project/projectMetadata/disableOrEnableModels.vue @@ -1,11 +1,11 @@