Only get outstanding reports for current report owner#60857
Only get outstanding reports for current report owner#60857MarioExpensify merged 10 commits intomainfrom
Conversation
|
@MarioExpensify 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] |
|
Code looks good, @rayane-d would you take a look and fill in the checklist please? |
|
Btw, @luacmartins looks like we have a conflict. |
|
@MarioExpensify conflicts resolved |
Reviewer Checklist
Screen.Recording.2025-04-25.at.9.36.16.PM.2.movScreen.Recording.2025-04-25.at.9.42.34.PM.mov |
|
@youssef-lr 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] |
|
@luacmartins, can you please merge main to make the tests pass? |
|
Updated! Bump @youssef-lr @MarioExpensify for review |
|
✋ 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/MarioExpensify in version: 9.1.33-0 🚀
|
|
🚀 Deployed to staging by https://github.com/MarioExpensify in version: 9.1.35-1 🚀
|
|
🚀 Deployed to staging by https://github.com/MarioExpensify in version: 9.1.36-3 🚀
|
|
🚀 Deployed to staging by https://github.com/MarioExpensify in version: 9.1.37-1 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.37-3 🚀
|
Explanation of Change
Coming from this PR, we were checking for any outstanding reports on the policy which for admins, includes reports from other users. However, admins can only move expenses from/to reports belonging to the same user. This PR fixes that by adding a check for
policyIDandownerAccountIDcc @waterim @rayane-d
Fixed Issues
$ #60295
$ #60388
Tests
Prerequisite: an admin and an employee in the workspace
Prerequisite 2: Delayed submissions disabled for workspace.
Case 1 - Moving reports
Show morebuttonCase 2 - Creating expenses
Show morebuttonOffline tests
N/A
QA Steps
Same as tests
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
Screen.Recording.2025-04-24.at.12.19.41.PM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop