-
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 2023-12-28] [$500] Distance - Map, amount and distance in the background shows TBD when editing distance #32120
Comments
Triggered auto assignment to @adelekennedy ( |
Job added to Upwork: https://www.upwork.com/jobs/~01c7d894fb538d33ef |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Map, amount and distance in the background shows TBD when editing distance What is the root cause of that problem?When selecting a new stop waypoint we will set pendingField.waypoint is updated and we only reset it to null if user click save button. We are displaying TBD in the amount field if there is a pending waypoint.
What changes do you think we should make in order to solve the problem?We should update condition here
like that
And using it instead of What alternative solutions did you explore? (Optional)I am not sure why we need to set App/src/libs/actions/Transaction.ts Line 61 in 935608b
Even though we don't call API in here. Normally, pendingField and pending action only be added in optimisticaData (apply before sending API) and It is re-set in successData and failureData So I think we should not set pendingField.waypoint when the user updates a new waypoint, we only set the pending field if the user clicks save button
|
ProposalPlease re-state the problem that we are trying to solve in this issueDistance - Map, amount and distance in the background shows TBD when editing distance What is the root cause of that problem?This is because we are editing directly on Due to changes in transactions directly, the fields are getting TBD due to What changes do you think we should make in order to solve the problem?We can do the opposite. Use Transaction Draft for editing and then transfer the updated data on transaction collection later. What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.When editing a Distance request, the distance and amount fields are set to "TBD" before the actual update happens. What is the root cause of that problem?We are not handling the loading state of the distance transaction properly.
Which equals What changes do you think we should make in order to solve the problem?We set the Lines 757 to 766 in cd9cd57
And we handle this state in other places, like here:
First, on const isLoading = lodashGet(transaction, 'isLoading', false) && isOffline; Second, we should also use Line 40 in 61c8b11
Basically, we will need to modify most of the changes made in PR #30232 using this condition. What alternative solutions did you explore? (Optional) |
@ntdiary a few proposals to review above! |
under review |
For @DylanDylann's proposal, For @shubham1206agra's proposal, the changes made using the draft for editing might be substantial, but the benefits gained are relatively small, as currently we only need to show So far, I think the fitting approach is to check the |
I was initially oriented on the changes of this PR when posting my proposal. Just didn't want to clutter the proposal with all the changes, but yes, we'll need to make changes in all the places where PR #30232 used pending waypoints. Added this sentence into the proposal now. |
@ntdiary What about my alternative solution? |
I think it is correct because when editing waypoint offline we can't get new route and new distance, it is suitable to display default map and TBD in the amount field |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@DylanDylann, I'm also not sure why we need to set
I was saying that your solution cannot guarantee that users will see TBD only after clicking |
@ntdiary I assume this is the reason you didn't approve the proposal yet. Could you please point to them so we could move closer to the C+ approval? |
Nope, I am also investigating |
The code on the main branch has been changed. Ideally, this issue should have been fixed. However, it seems that the condition was reversed. I left a comment here #28618 (comment). App/src/libs/actions/Transaction.ts Lines 60 to 64 in 3d56ca3
Ah, sorry, the latest code has a lot of changes. The conclusion above may not be correct. I need to investigate it further. 😅 |
📣 @ntdiary 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.14-6 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 2023-12-28. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
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:
|
@ntdiary, @adelekennedy, @hayata-suenaga, @DylanDylann Eep! 4 days overdue now. Issues have feelings too... |
1 similar comment
@ntdiary, @adelekennedy, @hayata-suenaga, @DylanDylann Eep! 4 days overdue now. Issues have feelings too... |
@adelekennedy Could you help to move forward with this issue? |
I personally feel like regression test might not be very necessary, most of us will use |
Back from ooo and picking this up - I agree we can skip the regression test here! Payouts due:Contributor: $500 @ntdiary Upwork job is here. |
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.4.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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
The map, amount and distance in the background will not show TBD because user is editing the distance without saving.
Actual Result:
The map, amount and distance in the background shows TBD without saving.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6293218_1701178732509.20231128_134639.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: