rowyio / rowy

Low-code backend platform. Manage database on spreadsheet-like UI and build cloud functions workflows in JS/TS, all in your browser.
http://rowy.io
Other
5.88k stars 479 forks source link

fix(CSV import): error while using a column as row id #1514

Closed iamanishroy closed 8 months ago

iamanishroy commented 8 months ago

User's issue: User have reported an issue with batch importing CSV files when selecting a custom column for Document IDs. Although importing the same CSV with auto-generated Document IDs works, choosing a specific column as Document IDs leads to an error: "n.charAt is not a function."

Cause: Column types like reference and image, require custom parsers. Previously, these parsers were stored in an object with the column index as the key. However, when using a custom document ID, the explicit setting of the document ID resulted in a change to the column index reference.

Fix: The fix involves using the column key as the key to store the parsers, rather than relying on the column index.

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment | Name | Status | Preview | Updated (UTC) | | :--- | :----- | :------ | :------ | | **rowy-typedoc** | ⬜️ Ignored ([Inspect](https://vercel.com/rowy/rowy-typedoc/AiawkggDrjx1P5rBfVA3q2KB4p8f)) | [Visit Preview](https://rowy-typedoc-git-fork-iamanishroy-fix-csv-import-bug-rowy.vercel.app) | Dec 21, 2023 0:41am |
vercel[bot] commented 8 months ago

@iamanishroy is attempting to deploy a commit to the Rowy Team on Vercel.

A member of the Team first needs to authorize it.