Repository navigation
A whole write on a row a teammate moved waits for the page its row was last shown on - #736
Conversation
… its row was last shown on, so a row a teammate moved to another page is settled by reading that page
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
No picture: this is a change to the cloud queue's package. The store's sender that uses it runs only in desktop driver builds, so no user meets it yet.
A teammate moves an item to another page. This device then makes a field merge on it that lands at a revision the queue didn't predict. Later, after a reconnect, the user makes a whole-row write on that item. That write waits for a result of the item, but the queue asked for it on the page the op was made on, the page the editor still draws the item on. Reading that page can never settle it, so the write waited for good. This is the stall the random model found at seed 375, once the model checks after every step that reading what an op waits for settles it.
The fix: the write waits on the page a result last showed the row on, and falls back to the page the op was made on only when no result has shown the row.
This came out of #732. It's a stall inside one life of a row, with no purge involved, so it gets its own PR ahead of the purged-row rework.
Tests
cloud_model_test.dart:seed 375: a whole write behind this device's own landed work, on a row a teammate moved to another page, waits for that page and is settled by reading itruns seed 375 in both folding modes. It fails without the change (op7 waits for ElementTarget(e2), and reading it from the server now leaves it waiting).cloud_moved_row_test.dart,a whole write behind this device's own landed work waits for the page the row was last shown on, not the page the editor still draws it on: the directed case. It fails without the change.Package:
dart analyzeis clean, infos included. All 1,058 tests pass, and the comments check passes.ci: library
Summary by CodeRabbit