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
ACL-Test.grist
ActiveDoc-sqlite.grist
AllColumns.grist
ApiDataRecordsTest.grist
AttachmentsJsonMigration.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
BlobMigrationV1.grist
BlobMigrationV2.grist
BlobMigrationV3.grist
BlobMigrationV4.grist
BlobMigrationV5.grist
BlobMigrationV6.grist
BlobMigrationV7.grist
BlobMigrationV8.grist
BlobMigrationV16.grist
BlobMigrationV17.grist
CardView.grist
CC_Statement.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
CC_Summaries-v2.grist
CC_Summaries-v6.grist
CC_Summaries.grist
CCTransactions.grist
ChartData.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
Class Enrollment.grist (core) Highlight rows used as a selector in linking, but do not show 'inactive' cursors. 2023-06-21 12:21:19 -04:00
CopyOptions.grist
CopyPaste2.grist
CopyPaste.grist
Countries-Print.grist
Covid-19.grist
Currencies.grist
CustomWidget.grist
DefaultValuesV5.grist
DefaultValuesV6.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
DefaultValuesV7.grist
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 (core) Fix imports into reference columns, and support two ways to import Numeric as a reference. 2023-05-02 10:28:14 -04:00
Favorite_Films_Raw.grist
Favorite_Films_With_Linked_Ref.grist
Favorite_Films.grist
FieldSettings.grist
FilmsWithImages.grist
FilterByComplexCellValues.grist
FilterTest.grist
GristNewUserInfo.grist
Hello.grist
Hooks-v37.grist
ImportReferences.grist (core) Fix imports into reference columns, and support two ways to import Numeric as a reference. 2023-05-02 10:28:14 -04:00
InvalidValues.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
Investment Research.grist
Landlord.grist
LastPosition.grist
LinkChain.grist
LongList.grist
Memos-v34.grist
NumericFormatting.grist
Pages-v19.grist (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
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
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
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 (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
WorldSQLDB.grist
WorldUndo.grist