-
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
[HOLD for payment 2024-08-14] [$250] Distance - Distance still shows Pending when preview and report header already show distance #43569
Comments
Triggered auto assignment to @trjExpensify ( |
@trjExpensify 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 |
We think that this bug might be related to #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance value shows Pending... even though the distance is shown/calculated in the confirmation list and in the preview. What is the root cause of that problem?If there is a pending action of waypoints, it will show Pending...
When we create a new request, an ADD pending action is set, that's why the Pending... is shown. Line 1963 in 8563b9f
It's to address this comment where the distance value still shows the old value after update, so Pending... is shown while waiting for the updated distance value. What changes do you think we should make in order to solve the problem?In
(or update the condition to specifically check for update pending action) However, I see another issue. The distance shown is in meters even though the unit is in miles. Screen.Recording.2024-06-13.at.00.20.01.movIt's because, GetRoute API returns the distance in meters, but we try to convert it from miles to meters here,
The reason we try to convert it from miles to meters is because after the transaction is created (RequestMoney)/waypoints is updated (UpdateMoneyRequestDistance), the distance value is in miles instead of meters which is different from GetRoute response. Based on the discussion, we want to get the distance from Lines 689 to 696 in 7c37886
Lines 2707 to 2715 in 7c37886
Next, we create a new
Then, replace all For MoneyRequestView, we want to replace the whole line with
|
Hm, I think this was a vip-vsb initiative originally. @paultsimura and @neil-marcellini I recall have the subject matter knowledge on this one. |
Job added to Upwork: https://www.upwork.com/jobs/~01531942e35c6e84c9 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Nice catch.
I like this suggestion. However, it might create more issues if we are supposed to use a static unit in calculations. But I differ this to internal team who has better idea on this. Other than this, @bernhardoj Did you check for the offline behaviour? |
Triggered auto assignment to @madmax330, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@madmax330 What do you think about the suggestion and problem mentioned in #43569 (comment). (More details on the proposal #43569 (comment)) |
If we apply my suggestion and do the steps while offline, then we will see the distance as
|
Hmm I'm not sure what the best way forward is here. cc @neil-marcellini since you worked quite a bit on distance requests IIRC can you take a look? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@madmax330, @trjExpensify, @parasharrajat Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Need some help from @neil-marcellini |
@madmax330 @trjExpensify @parasharrajat this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@madmax330, @trjExpensify, @parasharrajat Eep! 4 days overdue now. Issues have feelings too... |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 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 2024-08-14. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
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. |
Payment Summary
BugZero Checklist (@trjExpensify)
|
Checklist time! |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
Regression Test StepsPrerequisite:
Do you agree 👍 or 👎 ? |
Thanks! @neil-marcellini will regression tests for the P2P Distance project be added centrally when the project is wrapped? |
Payment summary as follows:
Feel free to go ahead and submit on ND! |
Requested in ND. |
@trjExpensify, @parasharrajat, @neil-marcellini, @bernhardoj Huh... This is 4 days overdue. Who can take care of this? |
$250 approved for @bernhardoj |
@trjExpensify, @parasharrajat, @neil-marcellini, @bernhardoj 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
I'm back, reached out to @neil-marcellini on this Q before closing this out. |
Yes |
Great, closing! |
Payment requested as per #43569 (comment) |
$250 approved for @parasharrajat |
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: 1.4.82-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4620914
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The Distance row in transaction thread should display the distance when the distance is computed
Actual Result:
The Distance row in transaction thread displays "Pending" when the expense preview and transaction thread header already display the distance
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6510345_1718175159906.bandicam_2024-06-12_14-45-41-618.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: