-
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-04-03] [$500] Reimbursement - Save button loops between Rate and Track distance after refreshing Rate page #37635
Comments
Triggered auto assignment to @isabelastisser ( |
@isabelastisser 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 #wave5 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Reimbursement - Save button loops the app between "Rate" and "Track distance" after refreshing "Rate" page. What is the root cause of that problem?here we are using the navigate function instead of goBack with a fallback. Consequently, the current page (WorkspaceRatePage) is not properly removed from the navigation stack. When attempting to click on save button to go back on the WorkspaceRateAndUnitPage, the page behind it in the stack remains the WorkspaceRatePage. This leads to an endless loop, as clicking save button keeps returning to the WorkspaceRatePage. What changes do you think we should make in order to solve the problem?In here, use goBack instead of navigate Navigation.goBack(ROUTES.WORKSPACE_RATE_AND_UNIT.getRoute(props.policy?.id ?? '')); |
ProposalPlease re-state the problem that we are trying to solve in this issue.Reimbursement - Save button loops between Rate and Track distance after refreshing Rate page What is the root cause of that problem?Over here :
we are having this - Navigation.navigate(ROUTES.WORKSPACE_RATE_AND_UNIT.getRoute(props.policy?.id ?? ''));
What changes do you think we should make in order to solve the problem?Instead, we should do this - What alternative solutions did you explore? (Optional)N/A ResultScreen.Recording.2024-03-02.at.2.46.10.AM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Reimbursement - Save button loops between Rate and Track distance after refreshing Rate page What is the root cause of that problem?
Here, we navigate to Track distance initial page
And here, we navigate back What changes do you think we should make in order to solve the problem?
Instead of goBack, use Navigation.navigate(ROUTES.WORKSPACE_REIMBURSE.getRoute(props.policy?.id ?? ''));
We can't use goBack on RatePage here because we should navigate to initial page on Save, instead of fully closing RHP |
Hey @apeyada! I think it mostly depends on Reviewers what they want because if read the Expected Result carefully it states exactly this - |
Job added to Upwork: https://www.upwork.com/jobs/~01c2728c1eb1d045e0 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
@dylanexpensify, is this related to wave5? Should this be internal or external? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Reimbursement - Save button loops between Rate and Track distance after refreshing Rate page What is the root cause of that problem?We are using App/src/pages/workspace/reimburse/WorkspaceRateAndUnitPage/InitialPage.tsx Lines 99 to 100 in af0f6a3
What changes do you think we should make in order to solve the problem?We should change it to
This is the proper navigation method (for modals) we use in every other places of the code base when navigating away from modals after saving as in here for e.g. App/src/pages/tasks/TaskTitlePage.js Lines 64 to 65 in af0f6a3
What alternative solutions did you explore? (Optional) |
❌ There was an error making the offer to @aimane-chnaif for the Contributor role. The BZ member will need to manually hire the contributor. |
@aimane-chnaif can you please review the proposal? Thanks! |
Proposals are in review. I will provide update tomorrow |
Triggered auto assignment to @bondydaa, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
❌ There was an error making the offer to @aimane-chnaif for the Reviewer role. The BZ member will need to manually hire the contributor. |
❌ There was an error making the offer to @rayane-djouah for the Contributor role. The BZ member will need to manually hire the contributor. |
Thank you, will raise a PR tomorrow. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.56-8 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-04-03. 🎊 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:
|
Payment summary: Both contributors need manual offers in NewDot: $500 @rayane-djouah requires payment C+ review - repayment in Upwork. |
@bondydaa, @aimane-chnaif can you complete the list above? Thanks! |
@isabelastisser, Correction: I worked on the issue in the contributor role. And I need to be paid in Upwork. Thank you! |
@isabelastisser Offer accepted, Thanks! |
Paid in Upwork. |
Payment summary: $500 @aimane-chnaif requires payment PR fix - requires payment in NewDot. |
@isabelastisser I am still using upwork. Can you please reopen and sort payment? Thanks |
Thanks for the heads up, I sent you the offer in Upwork now. |
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.46-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:
RHP will close after clicking Save button
Actual Result:
App returns to rate input page after clicking Save button
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6398727_1709323052061.bandicam_2024-03-01_21-12-58-365.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: