Files
gristlabs_grist-core/app/server/lib
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
..
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2023-04-06 12:34:54 -04:00
2023-04-06 12:34:54 -04:00
2022-09-29 18:02:09 +02:00
2023-04-06 12:34:54 -04:00
2023-01-26 09:47:14 +01:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2023-04-06 12:34:54 -04:00
2022-07-04 10:42:40 -04:00
2023-04-06 12:34:54 -04:00
2022-06-17 21:53:20 +02:00
2022-12-22 12:58:39 -05:00
2023-02-20 22:46:36 -05:00
2023-04-06 12:34:54 -04:00
2022-07-04 10:42:40 -04:00
2023-04-03 13:29:35 -04:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2022-04-01 15:24:19 -07:00
2022-07-04 10:42:40 -04:00
2023-04-06 12:34:54 -04:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-08-25 12:38:36 -07:00
2022-04-27 22:21:55 +02:00
2023-04-06 12:34:54 -04:00