Skip to content
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

Closed
3 of 6 tasks
lanitochka17 opened this issue Mar 1, 2024 · 32 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Mar 1, 2024

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:

  1. Go to staging.new.expensify.com
  2. Go to Workspace settings
  3. Select a workspace
  4. Go to Reimbursements > Rate
  5. Click Rate to open rate input page
  6. Refresh the page
  7. Click Save
  8. Click Save again

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?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

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
  • Upwork Job URL: https://www.upwork.com/jobs/~01c2728c1eb1d045e0
  • Upwork Job ID: 1764689305475485696
  • Last Price Increase: 2024-03-04
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 1, 2024
Copy link

melvin-bot bot commented Mar 1, 2024

Triggered auto assignment to @isabelastisser (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@lanitochka17
Copy link
Author

@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

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave5
CC @dylanexpensify

@rayane-djouah
Copy link
Contributor

Proposal

Please 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 ?? ''));

@ghost
Copy link

ghost commented Mar 1, 2024

Proposal

Please 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 :

Navigation.navigate(ROUTES.WORKSPACE_RATE_AND_UNIT.getRoute(props.policy?.id ?? ''));

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 - Navigation.goBack();

What alternative solutions did you explore? (Optional)

N/A

Result

Screen.Recording.2024-03-02.at.2.46.10.AM.mov

@apeyada
Copy link
Contributor

apeyada commented Mar 1, 2024

Proposal

Please 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?

Navigation.navigate(ROUTES.WORKSPACE_RATE_AND_UNIT.getRoute(props.policy?.id ?? ''));

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

@ghost
Copy link

ghost commented Mar 2, 2024

Hey @apeyada! I think it mostly depends on Reviewers what they want because if read the Expected Result carefully it states exactly this -RHP will close after clicking Save button. So it depends if they want to fully close the RHP or navigate back to the initial page after clicking on the Save Button.

@melvin-bot melvin-bot bot added the Overdue label Mar 4, 2024
@isabelastisser isabelastisser added the External Added to denote the issue can be worked on by a contributor label Mar 4, 2024
@melvin-bot melvin-bot bot changed the title Reimbursement - Save button loops between Rate and Track distance after refreshing Rate page [$500] Reimbursement - Save button loops between Rate and Track distance after refreshing Rate page Mar 4, 2024
Copy link

melvin-bot bot commented Mar 4, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01c2728c1eb1d045e0

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 4, 2024
Copy link

melvin-bot bot commented Mar 4, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary (External)

@melvin-bot melvin-bot bot removed the Overdue label Mar 4, 2024
@isabelastisser
Copy link
Contributor

@dylanexpensify, is this related to wave5? Should this be internal or external?

@FitseTLT
Copy link
Contributor

FitseTLT commented Mar 4, 2024

Proposal

Please 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 goBack here instead of dismissModal

What changes do you think we should make in order to solve the problem?

We should change it to dismissModal

        Navigation.dismissModal();

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.

Navigation.dismissModal(props.report.reportID);
},

What alternative solutions did you explore? (Optional)

@aimane-chnaif
Copy link
Contributor

Taking this over from @ntdiary's request

@ntdiary ntdiary removed their assignment Mar 5, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 5, 2024
Copy link

melvin-bot bot commented Mar 5, 2024

❌ There was an error making the offer to @aimane-chnaif for the Contributor role. The BZ member will need to manually hire the contributor.

@melvin-bot melvin-bot bot added the Overdue label Mar 7, 2024
@isabelastisser
Copy link
Contributor

@aimane-chnaif can you please review the proposal? Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Mar 7, 2024
@aimane-chnaif
Copy link
Contributor

Proposals are in review. I will provide update tomorrow

@melvin-bot melvin-bot bot added the Overdue label Mar 11, 2024
Copy link

melvin-bot bot commented Mar 13, 2024

Triggered auto assignment to @bondydaa, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Copy link

melvin-bot bot commented Mar 13, 2024

❌ There was an error making the offer to @aimane-chnaif for the Reviewer role. The BZ member will need to manually hire the contributor.

Copy link

melvin-bot bot commented Mar 13, 2024

❌ There was an error making the offer to @rayane-djouah for the Contributor role. The BZ member will need to manually hire the contributor.

@rayane-djouah
Copy link
Contributor

Thank you, will raise a PR tomorrow.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Weekly KSv2 labels Mar 14, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 27, 2024
@melvin-bot melvin-bot bot changed the title [$500] Reimbursement - Save button loops between Rate and Track distance after refreshing Rate page [HOLD for payment 2024-04-03] [$500] Reimbursement - Save button loops between Rate and Track distance after refreshing Rate page Mar 27, 2024
Copy link

melvin-bot bot commented Mar 27, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 27, 2024
Copy link

melvin-bot bot commented Mar 27, 2024

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:

Copy link

melvin-bot bot commented Mar 27, 2024

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:

  • [@bondydaa] The PR that introduced the bug has been identified. Link to the PR:
  • [@bondydaa] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@bondydaa] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@rayane-djouah / @aimane-chnaif] Determine if we should create a regression test for this bug.
  • [@rayane-djouah / @aimane-chnaif] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@isabelastisser] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added the Overdue label Apr 5, 2024
@isabelastisser
Copy link
Contributor

isabelastisser commented Apr 8, 2024

Payment summary:

Both contributors need manual offers in NewDot:

$500 @rayane-djouah requires payment C+ review - repayment in Upwork.
$500 @aimane-chnaif requires payment PR fix - requires payment in NewDot.

@melvin-bot melvin-bot bot removed the Overdue label Apr 8, 2024
@isabelastisser
Copy link
Contributor

@bondydaa, @aimane-chnaif can you complete the list above? Thanks!

@rayane-djouah
Copy link
Contributor

@isabelastisser, Correction: I worked on the issue in the contributor role. And I need to be paid in Upwork. Thank you!

@rayane-djouah
Copy link
Contributor

@isabelastisser Offer accepted, Thanks!

@isabelastisser
Copy link
Contributor

Paid in Upwork.

@isabelastisser
Copy link
Contributor

Payment summary:

$500 @aimane-chnaif requires payment PR fix - requires payment in NewDot. PENDING

@aimane-chnaif
Copy link
Contributor

@isabelastisser I am still using upwork. Can you please reopen and sort payment? Thanks

@isabelastisser
Copy link
Contributor

Thanks for the heads up, I sent you the offer in Upwork now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants