Files
gristlabs_grist-core/sandbox/grist
Alex Hall 938928f1b9 (core) Fix renaming columns when iterating over Table.all in comprehension
Summary:
Comprehensions iterating over `Table.all` like `[foo.bar for foo in Table.all]` led to an error when renaming the column `bar`. This diff fixes that so that renaming `bar` does the same thing as for a comprehension over `Table.lookupRecords()`. Note that `next(foo for foo in Table.all).bar` is still not supported, as the same is not supported for `Table.lookupRecords()` either.

Discussion: https://grist.slack.com/archives/C069RUP71/p1658360276762949

Test Plan: Parametrised existing Python test to test the same thing for both `all` and `lookupRecords`

Reviewers: dsagal

Reviewed By: dsagal

Subscribers: dsagal

Differential Revision: https://phab.getgrist.com/D3538
2022-07-21 18:30:16 +02:00
..
2022-06-17 21:53:20 +02:00
2022-06-17 21:53:20 +02:00
2022-07-14 12:09:56 +02:00
2022-07-14 12:09:56 +02:00
2020-07-29 08:57:25 -04:00
2022-06-17 21:53:20 +02:00
2022-06-17 21:53:20 +02:00
2022-07-14 12:09:56 +02:00
2022-07-14 12:09:56 +02:00
2022-07-14 12:09:56 +02:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-06-17 21:53:20 +02:00
2022-05-04 21:41:42 +02:00
2022-07-14 12:09:56 +02:00
2022-07-14 12:09:56 +02:00
2022-05-04 21:41:42 +02:00
2022-05-04 21:41:42 +02:00
2022-07-14 12:09:56 +02:00