Fix Duplicate Review when there are card expenses#64154
Fix Duplicate Review when there are card expenses#64154pecanoro merged 5 commits intoExpensify:mainfrom
Conversation
…d allow only to Keep All when its true
|
@jayeshmangwani 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] |
|
Hi @kubabutkiewicz, how are we creating the duplicate card expenses for testing this PR? Have you mocked the data, or are you using another way? |
|
Hey, so I was using the import onyx state and used @joekaufmanexpensify state which had card expenses. but this way I cannot test the backend integration, so I also asked in the issue if they could test if this is fixing the issue. |
@kubabutkiewicz Sure, so you just want me to test this on an ad-hoc build/after we merge the PR on staging? If so, happy to! |
|
I think the best will be on adhoc build |
|
Hey @joekaufmanexpensify, could you please test this by kicking off an ad-hoc run? I can only test this PR by mocking the data locally, so it’d be great if you could test it with real data. |
|
Kicked off build! I will test once the build is ready. |
|
🚧 @joekaufmanexpensify 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, Desktop, and Web. Happy testing! 🧪🧪
|
|
Confirmed this worked on the ad-hoc 👍 2025-06-20_15-03-54.mp4 |
|
However, resolve duplicates on the report view is still not working. We show a "not here" page. So it only seems to be working when you try to resolve duplicates on an individual expense. 2025-06-20_15-04-45.mp4 |
|
@kubabutkiewicz , could you please take a look at this comment #64154 (comment)? What can we do to handle the "not here" page? Thanks! |
|
Yeah will take a look on this |
|
@joekaufmanexpensify can I ask you again for the new onyx state when after you reproduce that issue? 🙈 I am not able to repro this with the current states which I have from you |
|
@kubabutkiewicz DM'ed to you in Slack! |
|
Hi, didn't have time to work on this yet, will try today/tomorrow. |
|
I found the problem but I am not sure if this is just a Import Onyx state problem or BE problem. App/src/components/MoneyReportHeader.tsx Lines 403 to 410 in 66cbac1 App/src/libs/MoneyRequestReportUtils.ts Lines 47 to 58 in 66cbac1 |
|
@jayeshmangwani Did you have time to review and test the PR? |
@pecanoro , Yes sure. but, we were running into an issue #64154 (comment) , so I was waiting for it to be resolved but It seems to be a backend issue #64154 (comment), so I’m not sure how we want to proceed there. Also, in this PR, I’m testing mock data and manually manipulating it locally to simulate a duplicate card expense. I’m not sure if QA can easily test this, so I’d suggest we do Internal QA for this PR. cc: @kubabutkiewicz |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid-1.movAndroid: mWeb Chromemweb-chrome.moviOS: HybridAppiOS.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
✋ 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/pecanoro in version: 9.1.79-0 🚀
|
|
@kubabutkiewicz This PR is failing with this issue. |
|
@kubabutkiewicz Can you take a look at @nlemma last comment? |
@kubabutkiewicz is OOO till the end of this week, I'll check the mentioned issue tomorrow morning (GMT+2) |
|
Okay, the issue mentioned by @nlemma is also happening on production. It's not caused by this PR and not a deploy blocker, right? So what should be the next steps here? |
|
Ah yes, if it's happening on prod, it's not coming from this. I will comment in the issue, they are probably not getting flagged because credit card expenses have a time besides the date stored in the transaction data |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.1.79-11 🚀
|



Explanation of Change
Fixed Issues
$ #59380
PROPOSAL:
Tests
Offline 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))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
MacOS: Desktop