-
Notifications
You must be signed in to change notification settings - Fork 486
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
CSV import for a DATE column results in "Something went wrong" displayed in firetable #219
Comments
I stumbled upon same issue while trying to import dates. Eg.:
|
@notsidney I think, all the fields are being imported as strings in the Firestore, and hence the Data Parser shows I tried importing the following fields:
with following csv:
Data Key Mapping Screen: Firetable Post Import Screen Actual Firestore Data Stored: All the fields were directly added to Firestore as strings. I think this could be the function which needs modification for type aware data importing. |
Hi everyone, thanks for letting us know about this bug. I’m working on a new Import CSV wizard UI, which includes parsing date columns. We’ll be using date-fns’ 👉 So before using the Import CSV feature, you must convert dates to UTC time and a supported format. When rows are added, it will store dates as Firestore Timestamps, similar to adding a new row & inputting a date through the picker. The new Import CSV wizard will be available as part of the next PR from develop to master. |
* feature/import-csv-v2: add date import warning update date-fns import CSV: parse dates (#219) show side drawer above import csv popover import, export: sort columns by index ImportCsvWizard: unmount on close finish ImportCsv wizard import CSV: step 2 import CSV: step 1 fix filename capitalisation import csv step 1 add new ImportCSV upload/paste/url UI clean up ImportCSV
* develop: v1.1.5 cli: fix multiple commands not running on windows (#192) v1.1.5-0 fix spawn yarn ENOENT? add date import warning update date-fns import CSV: parse dates (#219) show side drawer above import csv popover import, export: sort columns by index ImportCsvWizard: unmount on close finish ImportCsv wizard import CSV: step 2 import CSV: step 1 fix filename capitalisation fix cloud functions build breaking import csv step 1 add new ImportCSV upload/paste/url UI clean up ImportCSV
Describe the bug
A column in firetable is configured with the DATE type. When importing a CSV file with date data into this field, the result is "Something went wrong" is displayed. Several different date formats have been tried.
To Reproduce
Steps to reproduce the behavior:
After manually entering a record into the firetable, we reviewed the data being stored via firebase and the date value is being stored as a timestamp instead of just a date. Exported the table data to confirm the format from an export and it is yyyy-mm-ddT00:00:00.000Z which is one of the formats listed above that was tried for importing.
Expected behavior
Firetable import will accept any date format, or a defined date format that is supported for import needs to be identified.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: