gristlabs_grist-core/app/server
Paul Fitzpatrick 6f02987d10 (core) allow undos to be partial, if access control prohibits some part of them
Summary:
This is a somewhat experimental change, that will implement permitted parts of an undo if not all parts are permitted.  This is in preparation for trigger columns, where it may become common for a change in a record resulting in a change to an automatic change to another that the user cannot edit directly.  How to undo such an action is somewhat unclear.  One option is to undo the permitted parts, and then the triggers can rerun.

The general case is a bit of a can of worms, and feels adjacent to merging/rebasing etc.

Oh: it would probably be important in general to communicate to the user that an undo was partial, but this diff doesn't do that.  It would need some new plumbing.

Test Plan: added test

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2839
2021-06-10 18:26:11 -04:00
..
lib (core) allow undos to be partial, if access control prohibits some part of them 2021-06-10 18:26:11 -04:00
declarations.d.ts (core) Download as CSV button on sections 2021-05-27 15:48:12 +02:00
devServerMain.ts (core) make SELF_HYPERLINK urls cleaner 2021-05-28 08:54:37 -04:00
mergedServerMain.ts (core) add housekeeping endpoints for cleaning doc snapshots+state 2021-01-05 10:31:14 -05:00
serverMethods.ts (core) Download as CSV button on sections 2021-05-27 15:48:12 +02:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00