Revert "perf: defer the split-save API.write behind the destination layout" - #99814
Open
Abdukhamid000 wants to merge 1 commit into
Open
Revert "perf: defer the split-save API.write behind the destination layout"#99814Abdukhamid000 wants to merge 1 commit into
Abdukhamid000 wants to merge 1 commit into
Conversation
melvin-bot
Bot
requested review from
flaviadefaria and
ikevin127
and removed request for
a team and
ikevin127
August 29, 2026 05:52
|
@ikevin127 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
This was referenced Aug 29, 2026
Contributor
Reviewer Checklist
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #98012
Explanation of Change
Deploy blocker on staging
9.4.64-0. #98012 deferred the split-save write behind a navigation transition barrier whenisFromSplitExpensesFlowis set - which is exactly the flag the Search exit passes.Reads block on
waitForWrites()->SequentialQueue.waitForIdle(), and that gate is only claimed when a write is actually pushed. With the write deferred, nothing is on the queue at Save time, so the expanded group's focus refetch inGroupChildrenContentreaches the server before the split exists and repopulates the group's snapshot with pre-split data. Optimistic data doesn't cover it: the forward-split branch writes only toSNAPSHOT_${currentSearchHash}, while the expanded group readsSNAPSHOT_${groupItem.transactionsQueryJSON.hash}.Straight revert of the merge commit. All six files are byte-identical to their pre-#98012 state, and none of them - nor
writeWhenReady.ts/API/index.ts- were touched by the 195 commits merged since.I'll re-land with the ordering fixed rather than reapplying as-is.
Note on the checklist below: this is a mechanical revert, so the restored code is what production is running today (
9.4.63). Verification here is CI plus the QA repro below, not fresh per-platform manual runs of unchanged code.Fixed Issues
$ #99805
PROPOSAL: N/A - deploy blocker revert
Tests
group-by:fromOffline steps
QA steps
Same as the Tests section above.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A - revert of unchanged code paths.
Android: mWeb Chrome
N/A - revert of unchanged code paths.
iOS: Native
N/A - revert of unchanged code paths.
iOS: mWeb Safari
N/A - revert of unchanged code paths.
MacOS: Chrome / Safari
N/A - revert of unchanged code paths.
MacOS: Desktop
N/A - revert of unchanged code paths.