PreexistingReport: clear stale IOU action on transaction threads#79356
PreexistingReport: clear stale IOU action on transaction threads#79356mollfpr merged 2 commits intoExpensify:mainfrom
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@alitoshmatov 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d58090882a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
FYI, I'm still unable to repro the issue w.mp4 |
|
@bernhardoj Could you check if the |
Nope 1.mp42.mp4 |
|
@bernhardoj Can you try with a high traffic account. I think in your case the |
|
This should be ready for merge |
|
I can finally repro it with this step:
web.mp4 |
| }); | ||
| if ((isMoneyRequestReport(report) || isMoneyRequest(report)) && parentReportID && parentReportActionID) { | ||
| const parentReportAction = allReportActions?.[parentReportID]?.[parentReportActionID]; | ||
| if (parentReportAction?.childReportID === reportID) { |
There was a problem hiding this comment.
Is there any reason we do this?
if (parentReportAction?.childReportID === reportID) {
There was a problem hiding this comment.
Yes! We need to clear IOU action only if it was created optimistically and it's still pointing to the optimistic report that we are clearing.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
Tested on HT account we.mp4 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mollfpr in version: 9.3.4-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.4-6 🚀
|
Explanation of Change
Fixed Issues
$ #78898
PROPOSAL:
Tests
For clarification here is before and after:
Screen.Recording.2026-01-09.at.6.59.37.AM.mov
Screen.Recording.2026-01-09.at.7.01.00.AM.mov
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.ScrollViewcomponent to make it scrollable when more elements are added to the page.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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari