Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug: lookup columns is missing after source table copied #8530

Closed
1 task done
lorrod opened this issue May 19, 2024 · 4 comments · Fixed by #8535
Closed
1 task done

🐛 Bug: lookup columns is missing after source table copied #8530

lorrod opened this issue May 19, 2024 · 4 comments · Fixed by #8535
Assignees

Comments

@lorrod
Copy link

lorrod commented May 19, 2024

Please confirm if bug report does NOT exist already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

Create table with linked columns, create lookup columns, rename linked column, then create a clone of source base.

Desired Behavior

Copied table has wrong name of linked column ‘{LOOKUP_TABLE_NAME}s’ and missing linked column.

Project Details

Project Details
Node: v20.12.1
Arch: x64
Platform: linux
Docker: true
RootDB: pg
PackageVersion: 0.207.2
Test email from plugin page is working: yes

Attachments

No response

@ivantey
Copy link

ivantey commented May 20, 2024

Hi there,

Good day! I'm facing a similar issue as described in this ticket (#8530) on my project.

Rolling back to a previous version would be quite difficult for me. Is it possible to fix this issue?

Thanks a lot!

@dstala
Copy link
Member

dstala commented May 20, 2024

@ivantey @lorrod I was able to reproduce this issue for self-links (link relation to same table) -- and issue wasn't seen when connecting to other tables. could you please confirm if your scenario is same?

@dstala
Copy link
Member

dstala commented May 20, 2024

@mertmit error noticed is

[Nest] 59639  - 05/20/2024, 12:14:55 PM   ERROR [JobsEventService] ---- !! JOB FAILED !! ----
id:7
error:Error (Lookup column not found in related table)

stack: Error: Lookup column not found in related table
    at validateLookupPayload (/Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/helpers/columnHelpers.ts:304:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ColumnsService.columnAdd (/Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/services/columns.service.ts:1545:11)
    at async ImportService.importModels (/Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts:885:32)
    at async DuplicateProcessor.duplicateModel (/Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.processor.ts:182:19)
    at async QueueService.jobWrapper (/Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/modules/jobs/fallback/fallback-queue.service.ts:96:22)
    at async run (/Users/rajuudava/NocoDB/nocodb/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js:163:29)

@lorrod
Copy link
Author

lorrod commented May 20, 2024

Hello @dstala,

Yes, the issue related for self links (relation to the same table)

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Closed
Development

Successfully merging a pull request may close this issue.

4 participants