RevertSplitTransaction fails with UNIQUE constraint: App reuses existing reportActionID instead of generating a new one#82315
Conversation
|
@ahmedGaber93 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] |
JmillsExpensify
left a comment
There was a problem hiding this comment.
All looks good from a product perspective.
|
CC @lakchote for review. Please let me know if this PR requires a C+ review. |
|
@ahmedGaber93 yes please can you test it? |
|
@mountiny @ZhenjaHorbach I’m unable to reproduce the main issue on staging. According to the issue OP:
On my end, reverting the split works as expected on staging. Am I missing any specific steps or conditions to reproduce it? 20260215235900365.mp4 |
The same |
For that it works well, nothing have broken. But do we send the updated
|
We are adding splitReportActionID here App/src/libs/actions/IOU/Split.ts Lines 1300 to 1304 in 5d42cd8 And then just pass to BE using the spread operator App/src/libs/actions/IOU/Split.ts Line 1454 in 5d42cd8 |
|
Ahhh, I see that. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari20260216001344018.mp4 |
ahmedGaber93
left a comment
There was a problem hiding this comment.
@mountiny @lakchote The OP solution has been implemented correctly, we now send a unique splitReportActionID to the BE. I’ve tested it and everything is working as expected, and nothing appears to be broken.
That said, we’re still unable to reproduce the original issue on staging to fully confirm it’s resolved.
If needed, we can shift focus back to reproducing it.
All yours!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @lakchote has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/lakchote in version: 9.3.20-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.20-6 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.20-6 🚀
|
Explanation of Change
Fixed Issues
$ #81994
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
2026-02-13.13.04.29.mov