Refactor: Deprecate getPolicy (part 15)#83160
Conversation
|
@ikevin127 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] |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9793f4aefc
ℹ️ 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/VideosScreen.Recording.2026-02-24.at.16.52.11.mov |
|
Tests are failing |
heyjennahay
left a comment
There was a problem hiding this comment.
Product review not required
|
@justinpersaud Can you merge the PR now? |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @justinpersaud 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/justinpersaud in version: 9.3.27-0 🚀
|
|
Hi @shubham1206agra. Can you please explain how we can create an unreported distance expense with an out-of-policy rate? |
|
@IuliiaHerets I also had some trouble with that - so the way I did it:
Note: I tried this on staging just now and I'm blocked on step 6: adding the unreported distance expense from selfDM to empty workspace chat report does not work (cannot be added). ☝️ Not entirely sure this is caused by the PR itself or another PRs regression that's on staging - as when I tested this locally, all the steps worked / passed for me ✅ |
|
@ikevin127 we are not blocked on step 6. The expense can be added to an empty report in the WS (see screen recording). 3af83738318f10e93e3820e83ee28152.mp4 |
@IuliiaHerets That's weird, when I did the same thing - despite the unreported expense showing like it was reset to default rate (I think this is UI-only, the BE still has the deleted rate set) - it did show the violation on my side (see below).
I think that, when the unreported distance expense is added back to the workspace which had that custom rate before but now it's deleted - it should show the violation despite showing as reset to default rate (UI-wise), like it can be seen in by testing video: Screen.Recording.2026-02-24.at.16.52.11.movℹ️ If that doesn't happen, before reporting as regression - I'd defer to @shubham1206agra as maybe they have different steps to verify whether this fix works as expected ✅ |
|
@ikevin127 I believe someone changed the behaviour from BE. So we need old unreported distance transaction to test this. @IuliiaHerets, do you have any transactions that were created using the steps in #65301 at that time? |
|
@shubham1206agra I have asked our team and we don't have one. |
|
@kavimuru If you can supportal into work.sa1206+travel@gmail.com, you can test this flow |
|
@shubham1206agra I don't think Applause will supportal into any account. |
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.27-8 🚀
|
Explanation of Change
Fixed Issues
$ #66397
Tests
Pre-req - Have an unreported distance expense with rate out of policy
Offline tests
Same as 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))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
Screen.Recording.2026-02-22.at.9.16.41.PM.mov