-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Distance - Distance field does not show "Pending" after changing distance offline #46952
Comments
Triggered auto assignment to @anmurali ( |
Triggered auto assignment to @grgia ( |
👋 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:
|
We think that this bug might be related to #wave-collect - Release 1 |
Discussing with @paultsimura here. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance field does not show "Pending" after changing distance offline What is the root cause of that problem?We don't show "Pending" if App/src/libs/DistanceRequestUtils.ts Lines 164 to 167 in f9306d5
What changes do you think we should make in order to solve the problem?show "Pending" if Add new param on
create new const to store if
Then pass the
Might need to listen to What alternative solutions did you explore? (Optional) |
I believe this is a regression from #46165 – we changed the way we calculate the distance in |
Thanks! Under the regression period, assigning back to @parasharrajat and @bernhardoj, though Bernhard I need you to comment please. :) |
@paultsimura confirming this is a bug only on the |
Thanks, demoting. @bernhardoj please follow up and fix this! |
The root cause of the issue is actually not directly related to the PR. We already have a logic here to show Pending... if the distance is 0 or doesn't exist. App/src/libs/DistanceRequestUtils.ts Lines 164 to 167 in f9306d5
The distance comes from either App/src/libs/actions/Transaction.ts Lines 161 to 191 in f9306d5
But we did remove it when adding waypoints. App/src/libs/actions/Transaction.ts Lines 85 to 113 in f9306d5
That's why the issue doesn't happen when adding waypoint while offline. This issue just became apparent after my PR. Previously, we shows Pending when updating the waypoint even if the distance value is already updated. Now, Pending will only show if the distance value is not available yet. I have open a new PR to address this issue without breaking #43569 |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
This issue has not been updated in over 15 days. @anmurali, @parasharrajat, @grgia, @bernhardoj eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
We can close this one |
Good to close @anmurali |
@anmurali, @parasharrajat, @grgia, @bernhardoj, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.17-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4827863
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The Distance row will show "Pending".
Actual Result:
The Distance row still shows the previous distance instead of "Pending".
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6564228_1723023574708.20240807_173718.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: