gristlabs_grist-core/app
Dmitry S 14cdd47675 (core) When checking for metadata consistency, check for stray column records too
Summary:
Currently, an undo of a non-last action can leave the doc in an inconsistent
state. For example, it may remove a table, but fail to remove all columns of
it from metadata. We normally check that schema corresponds to metadata, but
stray columns were not visible to this check, and instead caused later table
additions to fail.

This diff fixes the check to fail the action that causes stray columns, and
to restore the doc to a consistent state.

Note that this only handles schema-metadata inconsistencies, but an undo of a
non-last action can easily create other surprises.

Test Plan: Added a test case that triggered inconsistency before, and now triggers a failed undo.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2715
2021-01-27 18:10:11 -05:00
..
client (core) When checking for metadata consistency, check for stray column records too 2021-01-27 18:10:11 -05:00
common (core) Add a Users dropdown to AccessRules page. 2021-01-22 09:20:40 -05:00
gen-server (core) provide a way for an administrator to force reload of a document 2021-01-25 14:16:53 -05:00
plugin (core) hide long sequences of unchanged rows in diffs 2020-11-19 18:19:54 -05:00
server (core) Show a clearer message when actions are blocked by ACL rules 2021-01-22 10:21:36 -05:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00