[sync] fix: refresh schema after field type conversion#3440
Conversation
Synced from teableio/teable-ee@9b7b26f Co-authored-by: Aries X <caoxing9@gmail.com> Co-authored-by: Bieber <artist@teable.io> Co-authored-by: Boris <boris2code@outlook.com> Co-authored-by: Jocky Zhou <jocky@teable.ai> Co-authored-by: Jun Lu <hammond@teable.io> Co-authored-by: Pengap <penganpingprivte@gmail.com> Co-authored-by: SkyHuang <sky.huang.fe@gmail.com> Co-authored-by: Uno <uno@teable.ai> Co-authored-by: nichenqin <nichenqin@hotmail.com>
|
|
1 similar comment
|
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c978947093
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| private resolveFieldType(type: string | undefined): InferredCsvFieldType | undefined { | ||
| switch (type) { | ||
| case 'checkbox': | ||
| case 'number': | ||
| case 'date': | ||
| case 'longText': | ||
| case 'singleLineText': | ||
| return type; | ||
| default: | ||
| return undefined; | ||
| } |
There was a problem hiding this comment.
Honor all supported import column types
When the new V2 CSV import path receives a user-selected column type such as singleSelect, multipleSelect, attachment, or user (all exposed by IMPORT_SUPPORTED_TYPES in the import UI), this switch falls through to undefined, and resolveImportColumns silently falls back to inferred/singleLineText. In V2-enabled imports that means the created table schema no longer matches the user's import configuration, corrupting those imported columns instead of preserving or rejecting the requested type.
Useful? React with 👍 / 👎.
🧹 Preview Environment Cleanup
|
🔄 Automated sync from EE repository.
205 commit(s) synced since last sync.
Authors
Included commits
ai-agent-engineT5222 T3933 (Pengap)Latest source commit: teableio/teable-ee@9b7b26f
This PR was automatically created by the sync workflow.