gristlabs_grist-core/sandbox
Dmitry S fb1332d529 (core) Fix bug with renaming when a formula uses a local name for a user table.
Summary:
When a formula used a local variable referring to a user table (which is
a global name), e.g. `myvar = MyTable; myvar.lookupOne(...)`, renaming
logic mistakenly used the inferred name (`MyTable`) in places where the
actual variable name (`myvar`) should have been used.

Additionally, we should not rename local variables, even if they match a
global name.

This fixes both issues.

Test Plan: Added a test case that checks that local variables aren't renamed.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3846
2023-04-02 22:57:38 -04:00
..
docker (core) support python3 in grist-core, and running engine via docker and/or gvisor 2021-07-28 09:02:32 -04:00
grist (core) Fix bug with renaming when a formula uses a local name for a user table. 2023-04-02 22:57:38 -04:00
gvisor (core) control the distribution of attachment metadata 2022-12-22 09:10:30 -05:00
pyodide add a pyodide-based "sandbox" flavor (#437) 2023-03-06 16:56:25 -05:00
gen_js_schema.py add a script for copying schema information from python to typescript 2023-01-17 15:54:41 -05:00
install_tz.js (core) apply some dependabot suggestions 2022-09-07 14:15:34 -04:00
requirements3.txt add a pyodide-based "sandbox" flavor (#437) 2023-03-06 16:56:25 -05:00
requirements.txt (core) Add PHONE_FORMAT function using the phonenumberslight library 2022-10-21 08:13:18 -04:00
run.sh (core) add machinery for self-managed flavor of Grist 2022-05-12 12:39:52 -04:00
watch.sh remove watch flag no longer available under newer webpack (#229) 2022-07-28 13:07:58 -04:00