update isReportApprover to compare managerID with current account ID - #67254
Conversation
|
@techievivek 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] |
|
It works well on my side, but I'm using Onyx data from other users, so I don't want to share the screenshots/videos here |
|
@Beamanator could you please review this given you have very good context of how approvers should work |
|
@dukenv0307 can you add test case please albeit manual for the C+ |
|
@mountiny I updated the steps |
|
For the easiest way, we can use the onyx state from Slack |
|
I think @allroundexperts does not have access to that onyx state. Can you suggest Onyx.merge changes that need to run locally? |
|
@Beamanator Also assigned you to the GH since you will be reviewing this, thanks. |
|
Yes, I don't have access. @dukenv0307 Please share the state. |
|
Please share in slack, not here |
|
@allroundexperts DMed to you on Slack |
| } | ||
|
|
||
| const isReportApprover = isApproverUtils(policy, getCurrentUserAccountID()); | ||
| const isReportApprover = report.managerID === getCurrentUserAccountID(); |
There was a problem hiding this comment.
Just curious, should we use ReportUtils.isReportManager here instead?
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppUnable to build android |
allroundexperts
left a comment
There was a problem hiding this comment.
Works great. Before merging, it would be good to incorporate @Beamanator's comment on the use of isReportManager function.
|
@Beamanator Fixed. We're good to merge |
|
✋ 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/Beamanator in version: 9.1.88-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.1.88-3 🚀
|





Explanation of Change
update isReportApprover to compare managerID with current account ID
For more information, please check: https://expensify.slack.com/archives/C05LX9D6E07/p1753430385795529
Fixed Issues
$ #67255
PROPOSAL:
Tests
Review duplicatesbutton is shown in the headerOffline tests
Same as above
QA Steps
Same as above
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