Stop creating the transaction thread reports optimistically for RequestMoney#60292
Conversation
…mistically for RequestMoney
|
I'll take a look today |
|
Hey @VickyStash For better context, could you explain the RCA of #59998? |
I can't reproduce this issue anymore. But back then the reason for it was that that after |
|
@VickyStash Both issues are fixed, but when I opened the scan request, I can see the avatar while OpenReport is being called. Screen.Recording.2025-04-18.at.18.08.23.mov |
…ating-optimistic-transaction-RequestMoney # Conflicts: # src/pages/home/ReportScreen.tsx
TY, Fixed! |
…ating-optimistic-transaction-RequestMoney
…ating-optimistic-transaction-RequestMoney # Conflicts: # src/libs/ReportActionsUtils.ts
…ating-optimistic-transaction-RequestMoney # Conflicts: # src/pages/home/ReportScreen.tsx
…t wasn't created before
…ating-optimistic-transaction-RequestMoney
…ating-optimistic-transaction-RequestMoney # Conflicts: # src/pages/home/report/ContextMenu/BaseReportActionContextMenu.tsx
…ating-optimistic-transaction-RequestMoney # Conflicts: # src/libs/actions/IOU.ts
|
@hungvu193 During the testing, keep in mind that there are two known issues: one, two. |
|
@hungvu193 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] |
Thanks Vicky. I'll take a look today |
…ating-optimistic-transaction-RequestMoney # Conflicts: # src/pages/TransactionDuplicate/Confirmation.tsx
|
@VickyStash can you merge main again? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-05-09.at.09.02.03.movAndroid: mWeb ChromeScreen.Recording.2025-05-09.at.09.06.38.moviOS: HybridAppios.moviOS: mWeb SafariSafari.movMacOS: Chrome / Safarimain.-.optimistic.mov01.-.scan.mov02.-.1-1.DM.bug.mov03.-.unreported.mov04.-.remaining.expense.mov05.-.Delete.expense.-.hold.-.take2.mov5.-.hold.delete.expense.mov06.-.review.dup.movMacOS: DesktopScreen.Recording.2025-05-09.at.08.52.32.mov |
…ating-optimistic-transaction-RequestMoney # Conflicts: # src/components/ReportActionItem/MoneyRequestAction.tsx
…ating-optimistic-transaction-RequestMoney
|
@hungvu193 Merged the main! |
|
Completed the checklsit. Can you merge main again? 😄 |
…ating-optimistic-transaction-RequestMoney # Conflicts: # src/pages/home/ReportScreen.tsx
Done! |
|
✋ 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/iwiznia in version: 9.1.45-0 🚀
|
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.1.45-0 🚀
|
|
I think this PR might have caused this regression 🤔 #62012 |
|
Oh, bummer! |
|
@VickyStash for step 2.2 in the PR, should we consider the presence of transactionThreadReportID in the RequestMoney API response as a sign that the transaction thread was created at that point? |
@nlemma Yeah, if we have |
|
Thanks for confirming. If that's the case, it seems that step 2.2 is failing, since the |
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.45-21 🚀
|

Explanation of Change
Previous PR was reverted due to regressions: #58825
Fixed Issues
$ #58828
PROPOSAL: N/A
Tests
2.1 In the chat tap FAB -> Create expense. Go through the steps and create a manual expense. It will be the first expense in this 1-1 chat.
2.2 Check that the RequestMoney API call didn't create a transaction thread report.
2.3 Tap on the expense -> the transaction thread report should be created and opened.
tableReportViewbeta so that canUseTableReportView returns true.Regressions that appeared during previous merge try:
1. Scan - Not here page opens when opening Amount field after reset and restart app
Link
2. 1:1 DM with "Auth OpenReport returned an error" appears after reset and restart app
Link
3. Report with RBR appears in LHN after changing unreported expense to reported expense & open it
Link
4. Expense - Only amount of remaining expense can be seen on report after deleting another one
Link
5. Expense - Hold and Delete options are not shown if expense report is not opened first
Link
6. Review duplicates - Nothing happens after clicking Confirm when second expense is selected
Link
Offline tests
Same, as in the Tests section.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same, as in the Tests section.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
android1.mp4
android2.mp4
Android: mWeb Chrome
android_web1.mp4
android_web2.mp4
iOS: Native
ios1.mp4
ios2.mp4
iOS: mWeb Safari
ios_web1.mp4
ios_web2.mp4
MacOS: Chrome / Safari
web.mp4
web_new_ui.mp4
2-web.mp4
3-web.mp4
4-web.mp4
5-web.mp4
MacOS: Desktop
desktop1.mp4
desktop2.mp4