fix: Error when selecting distance rate that no longer has tax rate#49044
Conversation
|
@DylanDylann 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] |
|
FYI, looks like the server send Onyx data of distance rate that still has the deleted tax rate when calling I don't know if this is expected behavior, if it is indeed a bug then we should fix the bug on BE side as well, as mentioned in my proposal |
|
@daledah Changed files ESLint check is failed. Because it is minor, could you also fix this eslint problem? |
|
@MonilBhavsar This PR looks good. But we need to update |
|
Okay, I'll work on it... |
|
Do we need to HOLD on that? or we can proceed with the App PR? |
|
@MonilBhavsar The App PR looks good. Waiting for BE change |
We're holding on backend change? |
|
@MonilBhavsar Yes, we are holding on backend change |
|
Okay thanks! I'll work on it... |
|
@MonilBhavsar Do we have any new updates? |
|
@DylanDylann no update here, sorry. I changed timezones and focussing on some critical issues. I still expected to be done by EOW |
|
@MonilBhavsar Is there any new update? |
|
@daledah @DylanDylann Fix is deployed on staging |
|
@MonilBhavsar FE Looks good now, deleted tax rate is also removed from Onyx
|
|
Thanks! @DylanDylann could you please take a look once |
|
@daledah Please help to merge the latest main |
|
@daledah Currently, when updating to another distance rate (that don't have tax) on distance request, the BE don't return errors anymore and the tax is updated to 0%
So we need to update the test step again, this is my suggestion: Precondition:
|
|
@DylanDylann I updated. |
|
Thanks for quick update |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-10-16.at.17.42.53.movAndroid: mWeb ChromeScreen.Recording.2024-10-16.at.17.38.04.moviOS: NativeScreen.Recording.2024-10-16.at.17.40.09.moviOS: mWeb SafariScreen.Recording.2024-10-16.at.17.37.26.movMacOS: Chrome / SafariScreen.Recording.2024-10-16.at.17.35.45.movMacOS: DesktopScreen.Recording.2024-10-16.at.17.36.21.mov |
|
While reviewing this PR I discovered an error log on Android and IOS when going to distance rate page (this change doesn't cause this) Reported on Slack: https://expensify.slack.com/archives/C049HHMV9SM/p1729075718314489 |
Thank you! 🙌 |
MonilBhavsar
left a comment
There was a problem hiding this comment.
Looks good, thanks!
|
✋ 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/MonilBhavsar in version: 9.0.50-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.50-8 🚀
|



Details
Fixed Issues
$ #47613
PROPOSAL: #47613 (comment)
Tests
Precondition:
Steps:
Offline tests
QA Steps
Precondition:
Steps:
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Screen.Recording.2024-09-12.at.15.08.00.mp4
Android: mWeb Chrome
Screen.Recording.2024-09-12.at.15.00.27.mp4
iOS: Native
Screen.Recording.2024-09-12.at.15.17.01.mp4
iOS: mWeb Safari
Screen.Recording.2024-09-12.at.15.14.53.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-09-12.at.14.27.30.mp4
MacOS: Desktop
Screen.Recording.2024-09-12.at.15.18.52.mp4