gristlabs_grist-core/test/fixtures/docs
Alex Hall 9b36fb4dab (core) Fix error in sandbox when removing multiple summary source columns
Summary:
Fixes a very specific bug reported here: https://grist.slack.com/archives/C069RUP71/p1694630242765769

The error occurred when:

1. Removing multiple columns simultaneously
2. Those columns were sources of groupby columns for a summary table (so removing them meant recreating the summary table and thus deleting its columns)
3. There was a display column for one of the columns that got deleted (either directly or indirectly) which was set to be automatically removed since it was no longer needed, but this failed because the column was already deleted as part of earlier table removal.

I fixed this by making `apply_auto_removes` remove table records last, so removing the display column wouldn't be a problem.

That fixed the original error, but then I noticed that trying to undo the removal could lead to another error (under even more specific circumstances). It's hard to see exactly why, but I can see that just 3 `RemoveColumn` user actions generated over 100 doc actions and corresponding undo actions, hence the difficulty in narrowing the problem down. This is partly because removing a single column would recreate a summary table, only for that table to be immediately replaced again when another column was removed. Making the frontend send a single `[BulkRemoveRecord, _grist_Tables_column, ...] ` leads to a more efficient and sensible process with about half as many doc actions and no undo error. I think this alone would also solve the original error, but the data engine change seems more generally helpful and worth keeping.

Test Plan: Added a Python test and an nbrowser test

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D4052
2023-09-27 16:23:49 +02:00
..
video (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
ACL-Test.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
ActiveDoc-sqlite.grist
AllColumns.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
ApiDataRecordsTest.grist
AttachmentsJsonMigration.grist
BlobMigrationV1.grist
BlobMigrationV2.grist
BlobMigrationV3.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
BlobMigrationV4.grist
BlobMigrationV5.grist
BlobMigrationV6.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
BlobMigrationV7.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
BlobMigrationV8.grist
BlobMigrationV16.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
BlobMigrationV17.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
CardView.grist
CC_Statement.grist
CC_Summaries-v2.grist
CC_Summaries-v6.grist
CC_Summaries.grist
CCTransactions.grist
ChartData.grist
Class Enrollment.grist
CopyOptions.grist
CopyPaste2.grist
CopyPaste.grist
Countries-Print.grist
Covid-19.grist
Currencies.grist (core) Currency from grist column is persistent when exporting to excel 2023-05-08 10:39:01 +02:00
CustomWidget.grist (core) Moving widget tests to core 2022-09-06 17:17:14 +02:00
DefaultValuesV5.grist
DefaultValuesV6.grist
DefaultValuesV7.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
DefaultValuesV8.grist
DeleteColumnsUndo.grist
doctour.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
DocTutorial.grist
DownmigrateTest.grist
Excel.grist
Exports.grist
Favorite_Films_Raw.grist
Favorite_Films_With_Linked_Ref.grist
Favorite_Films.grist (core) disentangle some server tests, release to core, add GRIST_PROXY_AUTH_HEADER test 2022-03-24 15:11:32 -04:00
FieldSettings.grist
FilmsWithImages.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
FilterByComplexCellValues.grist
FilterTest.grist
GristNewUserInfo.grist
Hello.grist
Hooks-v37.grist
ImportReferences.grist
InvalidValues.grist
Investment Research.grist
Landlord.grist
LastPosition.grist
LinkChain.grist
LongList.grist
Memos-v34.grist
NumericFormatting.grist
Pages-v19.grist
Pages.grist
PasteParsing.grist
RawSummaryTables.grist
Ref-AC-Test.grist
Ref-List-AC-Test.grist
SchoolsSample.grist
selectBy.grist
SelectByRefList.grist
SelectBySummary.grist
SelectBySummaryRef.grist
SelectionSummary.grist
ShiftSelection.grist
SortDates.grist
SortFilterIconTest.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
SummarizeByRef.grist
SummaryRulesBug.grist
SummaryTableFormula.grist
TabBar.grist
Teams.grist (core) Fixing scrolling for linked sections 2022-11-09 20:39:26 +01:00
TypeConversions.grist
TypeEncoding.grist
Widgets.grist
World-v0.grist
World-v1.grist
World-v3.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
World-v8.grist
World-v10.grist
World-v11.grist
World-v12.grist
World-v13.grist
World-v14.grist
World-v15.grist
World-v18.grist
World-v20.grist
World-v24.grist
World-v25.grist
World-v33.grist
World.grist
WorldSQLDB.grist
WorldUndo.grist