gristlabs_grist-core/app
Dmitry S 5deac68315 (core) Update ACL resources/rules when tables/columns get renamed
Summary:
- Placed rule-updating functions in acl.py.
- Reset UI when rules update externally, or alert the user to reset if there
  are pending local changes.
- Removed some unused and distracting bits from client-side DocModel.

A few improvements related to poor error handling:
- In case of missing DocActions (tickled by broken ACL rule handling), don't
  add to confusion by attempting to process bad actions
- In case of missing attributes in ACL formulas, return undefined rather than
  fail; the latter creates more problems.
- In case in invalid rules, fail rather than skip; this feels more correct now
  that we have error checking and recovery option, and helps avoid invalid rules.
- Prevent saving invalid rules with an empty ACL formula.
- Fix bug with rule positions.

Test Plan: Added a python and browser test for table/column renames.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2698
2021-01-04 22:03:01 -05:00
..
client (core) Update ACL resources/rules when tables/columns get renamed 2021-01-04 22:03:01 -05:00
common (core) Update ACL resources/rules when tables/columns get renamed 2021-01-04 22:03:01 -05:00
gen-server (core) implement a safe mode for opening documents with rule problems 2020-12-14 13:04:13 -05:00
plugin (core) hide long sequences of unchanged rows in diffs 2020-11-19 18:19:54 -05:00
server (core) Update ACL resources/rules when tables/columns get renamed 2021-01-04 22:03:01 -05:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00