-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Due for payment 2025-02-19] [$250] Distance - Distance and Rate field shows "Pending" after distance rate is deleted #55245
Comments
Triggered auto assignment to @MitchExpensify ( |
Triggered auto assignment to @thienlnam ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@MitchExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
Job added to Upwork: https://www.upwork.com/jobs/~021879305543245512119 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
Probably not a blocker, in both scenarios the user still needs to manually update the rate and the error message is correct. It just doesn't show the deleted rate anymore |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance and Rate field shows "Pending" after distance rate is deleted What is the root cause of that problem?This is a backend issue. When we remove a rate, it should also be removed from the As a result, when we handle App/src/libs/DistanceRequestUtils.ts Line 366 in 9be0b9f
What changes do you think we should make in order to solve the problem?To resolve this issue, we need to update the backend to still return the rates of customUnits, either returning the submitted rate or showing the default value after the rate is removed. Something like that. App/src/libs/DistanceRequestUtils.ts Line 366 in 9be0b9f
update to: const customMileageRate = customUnitRateID ? mileageRates?.[customUnitRateID] ?? defaultMileageRate : defaultMileageRate; POC: What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We updated the test for this case. If mileageRates?.[customUnitRateID] is undefined, the expected value is defaultMileageRate What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance and Rate field shows "Pending" after distance rate is deleted. What is the root cause of that problem?When we delete the distance rate, it no longer exists in policy data. In production, we will display the default rate and the distance accordingly. But why did this happen in staging? It comes from here Previously, we always fallback to Now, we only set App/src/libs/DistanceRequestUtils.ts Line 366 in 7b9e55e
Then as expected App/src/libs/DistanceRequestUtils.ts Lines 160 to 162 in 9be0b9f
What changes do you think we should make in order to solve the problem?We should update the change as we did before this PR
App/src/libs/DistanceRequestUtils.ts Line 366 in 7b9e55e
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
|
@Pujan92, @thienlnam, @MitchExpensify Huh... This is 4 days overdue. Who can take care of this? |
@Pujan92 can you check out these proposals as a next step please? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.96-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2025-02-19. 🎊 For reference, here are some details about the assignees on this issue:
|
@Pujan92 @MitchExpensify @Pujan92 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Payment summary:
|
@Pujan92, @thienlnam, @MitchExpensify, @mkzie2 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:Do we agree 👍 or 👎 |
Can you please complete the BZ steps above @Pujan92 ? |
@mkzie2 is paid with contract ended 👍 |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal
|
@MitchExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Thanks @Pujan92 |
$250 approved for @Pujan92 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.85-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): Mac 15.0 / Chrome
Issue reported by: Applause Internal Team
Device used: applausetester+140105kh@applause.expensifail.com
App Component: Money Requests
Action Performed:
Precondition:
Expected Result:
Distance and Rate field will show the correct value after distance rate is deleted (production behavior).
Actual Result:
Distance and Rate field shows "Pending" after distance rate is deleted.
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @MitchExpensifyThe text was updated successfully, but these errors were encountered: