gristlabs_grist-core/test/fixtures/uploads
Dmitry S 65013331a3 (core) Fix imports into reference columns, and support two ways to import Numeric as a reference.
Summary:
- When importing into a Ref column, use lookupOne() formula for correct previews.
- When selecting columns to import into a Ref column, now a Numeric column like
  'Order' will produce two options: "Order" and "Order (as row ID)".
- Fixes exports to correct the formatting of visible columns. This addresses multiple bugs:
  1. Formatting wasn't used, e.g. a Ref showing a custom-formatted date was still presented as YYYY-MM-DD in CSVs.
  2. Ref showing a Numeric column was formatted as if a row ID (e.g. `Table1[1.5]`), which is very wrong.
- If importing into a table that doesn't have a primary view, don't switch page after import.

Refactorings:
- Generalize GenImporterView to be usable in more cases; removed near-duplicated logic from node side
- Some other refactoring in importing code.
- Fix field/column option selection in ValueParser
- Add NUM() helper to turn integer-valued floats into ints, useful for "as row ID" lookups.

Test Plan: Added test cases for imports into reference columns, updated Exports test fixtures.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3875
2023-05-02 10:28:14 -04:00
..
video (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
BooleanData.xlsx (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
CCTransactions.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
ChartData-Sort_Test.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
ChartData.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
cities_broken.jgrist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
Cities.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
cities.jgrist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
CodeEditor.test.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
ColumnFilterData_A.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
ColumnFilterData_B.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
dirtyNames.json (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
empty_data.jgrist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
empty_excel.xlsx (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
EmptyDate.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
file1.mov (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
file2.mp3 (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
file3.zip (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
FileUploadData.csv (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
formatted_numbers.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
gplaypattern.png (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
grist.png (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
homicide_rates.xlsx (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
htmlfile.html (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
ImportReferences-Tasks.csv (core) Fix imports into reference columns, and support two ways to import Numeric as a reference. 2023-05-02 10:28:14 -04:00
mixed_dates.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
name_references.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
names.json (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
sample.pdf (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
SchoolData.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
simple_array.json (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
spotifyGetSeveralAlbums.json (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
StudentData.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
unicode_headers.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
unicode_headers.xlsx (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
UploadedData1.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
UploadedData1Extended.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
UploadedData2.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
UploadedData2Extended.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
UploadedData3.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
UploadedDataEmpty.csv (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
World-v0.xlsx (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
World-v1.xlsx (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00