Fix dupe created action when creating a multiple receipts scan request#73634
Conversation
|
@ZhenjaHorbach 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] |
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.
|
| const optimisticChatReportID = generateReportID(); | ||
| const optimisticCreatedReportActionID = rand64(); | ||
| const optimisticIOUReportID = generateReportID(); | ||
| const optimisticIOUCreatedReportActionID = rand64(); |
There was a problem hiding this comment.
I'm a bit confused
We are going to pass a random actionID
But we already use it for buildOptimisticCreatedReportAction by default
Line 7584 in ca0c73b
There was a problem hiding this comment.
Yeah, but it will be different for each expense created, and we want it to be the same.
There was a problem hiding this comment.
Oh
Right
It makes sense
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2025-10-30.10.55.32.movAndroid: mWeb Chrome2025-10-30.10.54.12.moviOS: HybridApp2025-10-30.10.48.27.moviOS: mWeb Safari2025-10-30.10.49.55.movMacOS: Chrome / Safariweb.movMacOS: Desktopweb.mov |
|
@bernhardoj |
…pense-with-multiple-receipts
|
Done |
|
The lint is unrelated. |
|
LGTM! |
|
@srikarparsi @bernhardoj |
|
Hey yes, can you please merge main @bernhardoj |
…pense-with-multiple-receipts
|
@srikarparsi done |
|
Looks like EsLint is still failing but it's unrelated. I couldn't find it flagged on slack but will check on it tomorrow. |
|
It's the SearchReport deprecation |
|
Hmm, I think we need to refactor the multi-scan expenses code from #63848 |
…pense-with-multiple-receipts
|
Fixed |
srikarparsi
left a comment
There was a problem hiding this comment.
From a code perspective, this looks good to me
|
Do you have a new video of the behaviour after the fix? |
1 similar comment
|
Do you have a new video of the behaviour after the fix? |
|
@trjExpensify Here you go: w.mp4 |
|
@srikarparsi |
|
✋ 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/srikarparsi in version: 9.2.59-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.2.59-5 🚀
|


Explanation of Change
Fixed Issues
$ #72075
PROPOSAL: #72075 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4