gristlabs_grist-core/app
Dmitry S faa0d9988e (core) When changing a table for a page widget, unset widget-linking to avoid invalid values.
Summary:
Previously, using "Change Widget" allowed one to change the underlying table,
but would keep the linking settings. This could allow invalid settings which
would sometimes lead to JS errors. These manifested in production as
"UserError: Query error: n is not a function".

- Unset linking settings in this case, to avoid invalid values.
- In case invalid values are encountered (e.g. saved previously), treat them as
  unset, to avoid JS errors.
- If an error does occur, report it with a stack trace.

Also, for testing, added 'selectBy' option to gristUtils helpers for using page-widget-picker.

Test Plan: Added test cases for resetting linking, and for ignoring invalid link settings.

Reviewers: alexmojaki

Reviewed By: alexmojaki

Differential Revision: https://phab.getgrist.com/D2993
2021-08-25 12:53:46 -04:00
..
client (core) When changing a table for a page widget, unset widget-linking to avoid invalid values. 2021-08-25 12:53:46 -04:00
common (core) Suggest correct table when converting to RefList 2021-08-20 23:04:48 +02:00
gen-server (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
plugin (core) Suggest correct table when converting to RefList 2021-08-20 23:04:48 +02:00
server (core) Report memos consistently for blocked actions involving schema 2021-08-24 08:03:58 -04:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00