-
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
[$500] [Distance] - Start and Finish data does not remain when user change to Manual/Scan #26716
Comments
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~013db7c954b21603ab |
reproduced! |
Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Start and Finish data does not remain when user change to Manual/Scan What is the root cause of that problem?After selecting the location (start and finish) we save it in ONYX in the transcation_{transactionID} field. But when selecting another tab we reset the field
It causes that the transactionID field in iou will be empty. Then, when coming back the new transaction will be created App/src/pages/iou/DistanceRequestPage.js Lines 48 to 53 in f67bf9f
The old transaction with the old value will not be used anymore What changes do you think we should make in order to solve the problem?When selecting another request tab, we should keep transactionID in iou field. So that, the new transaction will be not created by this logic App/src/pages/iou/DistanceRequestPage.js Lines 48 to 53 in f67bf9f
To do that, in resetMoneyRequestInfo function we can define transactionID param with the default value is ''.
we pass transactionID to this fucntion
What alternative solutions did you explore? (Optional)We can create a new field on ONYX called draftTransaction to save the location that the user selects. App/src/pages/iou/WaypointEditor.js Line 156 in f67bf9f
Here we will save to draftTransaction instead of transactions_{transactionID}, we only save to transactions_{transactionID} when the user clicks the Next button. This is the way we did in task page |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Start and Finish data does not remain when user change to Manual/Scan What is the root cause of that problem?In App/src/pages/iou/MoneyRequestSelectorPage.js Lines 64 to 67 in f67bf9f
We have the logic to reset request info when users change page. Unfortunately, we don't have the logic to check What changes do you think we should make in order to solve the problem?add logic check
|
updated proposal: Adding alternative solution |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Start and Finish data does not remain when user change to Manual/Scan What is the root cause of that problem?We reset the Request Info in resetMoneyRequestInfo, but did not give the condition to check if the current tab is the same as the new tab or not run & resetMoneyRequestInfo based on that condition App/src/pages/iou/MoneyRequestSelectorPage.js Lines 64 to 67 in f67bf9f
What changes do you think we should make in order to solve the problem?Both the solution of @tienifr and @DylanDylann is similar, but will not satisfy the Expected behavior & we didn't really need to add and track I also imagine that we only want this behaviour on Distance, and the value will reset on others Tab, therefore what we should do instead, is handle it simply via condition on
Resulttab_changes.mp4 |
@adelekennedy are we sure that we should keep values? We have 3 options to request money - either manually or scan or distance - navigating between tabs - means that user should not expect saving redundant information. Maybe i'm wrong but needs to clarify |
|
I can imagine that the user would benefit from keeping the waypoint value (in case let say they inputted 5 points, and accidently switch from Distance to another tab) In case on another tab, its make sense to keep the reselt to default behaviour as it's a one item (time) input Additional note: In my proposal, I've laid out the details on those 2 conditions |
Amount exists only if you not do any interaction on other tabs - for example choosing start/end on distance tab will reset amount of manual. We need to have correct understanding how it should be working @adelekennedy |
This is intentional - #26579 (comment) |
Let's close - looking back at this I hit external too soon without covering expected behavior |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #26622
Action Performed:
Expected Result:
Entered Start and Finish data should remain when user change to Manual/Scan
Actual Result:
Start and Finish data does not remain when user change to Manual/Scan
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.63-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Notes/Photos/Videos: Any additional supporting documentation
Bug6188324_az_recorder_20230904_204906.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: