Skip to content

🐛 Bug: Wrong baseId is used in QuickImport, when a secondary database is only active. So the Table is created in the hidden DB. #5103

@GentleGhostCoder

Description

@GentleGhostCoder

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

  1. Setup secondary catabase connection
    image

  2. Deactivate base connection
    image

  3. Import a Table from csv, excel, json with the Drag / Load Dialog
    image
    image

Desired Behavior

The Table will be created in the enabled Database not the hidden once.

Project Details

Docker used: false
NocoDB Version: develop
NC_DB: NC_DB="mysql2://<ip>:3306?u=<user>&p=<password>&d=nocodb"

Attachments

Possible Fix:

  1. File: https://github.com/nocodb/nocodb/blob/develop/packages/nc-gui/composables/useProject.ts
    Change:
    image
  2. File: https://github.com/nocodb/nocodb/blob/develop/packages/nc-gui/pages/[projectType]/[projectId]/index/index/index.vue
    Change:
    image

:info: Hurray!: For me it will fix also this issue (that was still an issue): #4633

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions