Repository navigation
Keep a duplicated expense unreported when the source is unreported - #98396
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
I added myself as reviewer since I reviewed this PR's partner PR. Let me know when. this one is ready @allgandalf. |
I'll open this PR up for review when the Web-E PR is deployed to production https://github.com/Expensify/Web-Expensify/pull/55303 |
|
@nyomanjyotisa 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: a5a9ba32de
ℹ️ 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".
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 deetergp 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! 🧪🧪
|
|
✋ 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/deetergp in version: 9.4.58-0 🚀
|
Help site changes required ✅This PR changes user-facing behavior: duplicating an Unreported expense now keeps the copy unreported instead of putting it on a report. The existing help article How to duplicate an expense contradicted this — it stated the duplicate "generates new expenses on your primary workspace," which is only true for reported expenses. I created a draft help site PR to correct it: #99127 What changed in the docs:
The PR has the @allgandalf, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.4.58-4 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
duplicateExpenseTransactionchosetrackExpensevsrequestMoneyfromtargetPolicyalone, and every caller passes the default workspace, so duplicating an unreported expense always put the copy on a report. It now checks the source too, so an unreported source stays unreported. The backend half is https://github.com/Expensify/Web-Expensify/pull/55303.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/664161
PROPOSAL:
Tests
Offline tests
Duplicating offline queues the create and the copy shows as unreported, then stays unreported once it goes online.
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.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