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-02-15] [$500] Wallet - Back button loops the app between Expensify card and Activate card after page refresh #35530

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

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 1, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.34-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:

Issue found when executing PR #35303

Action Performed:

  1. Log in with account that has Expensify card (virtual) (applausetester@applause.expensifail.com
    )
  2. Go to Settings > Wallet
  3. Click Expensify card
  4. Click Activate physical card
  5. Refresh the page
  6. Click on the back button
  7. Click on the back button again

Expected Result:

Back button will navigate to the previous page

Actual Result:

Back button loops the app between Expensify card and Activate card page after refreshing the page

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

Bug6362463_1706714036406.20240131_222312.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010098f2976f28fbf7
  • Upwork Job ID: 1752867434380029952
  • Last Price Increase: 2024-02-01
  • Automatic offers:
    • fedirjh | Reviewer | 28133789
    • Ollyws | Contributor | 28133791
    • dukenv0307 | Contributor | 28135667
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 1, 2024
@melvin-bot melvin-bot bot changed the title Wallet - Back button loops the app between Expensify card and Activate card after page refresh [$500] Wallet - Back button loops the app between Expensify card and Activate card after page refresh Feb 1, 2024
Copy link

melvin-bot bot commented Feb 1, 2024

Job added to Upwork: https://www.upwork.com/jobs/~010098f2976f28fbf7

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

melvin-bot bot commented Feb 1, 2024

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

Copy link

melvin-bot bot commented Feb 1, 2024

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

@lanitochka17
Copy link
Author

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

@dukenv0307
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Back button loops the app between Expensify card and Activate card page after refreshing the page

What is the root cause of that problem?

In here, we're using navigate, not goBack will a fallback, so the current page (ActivatePhysicalCardPage) is not popped from the stack, when go back in the ExpensifyCardPage, since the page behind it in the stack is still the ActivatePhysicalCardPage, so it go to the ActivatePhysicalCardPage again, and it will loop like that forever.

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

In here, use goBack instead of navigate

onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_WALLET_DOMAINCARD.getRoute(domain))}

What alternative solutions did you explore? (Optional)

We should double check other pages in the physical card flow and fix similarly if it happens elsewhere on another page.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 1, 2024
Copy link

melvin-bot bot commented Feb 1, 2024

📣 @fedirjh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Feb 1, 2024

📣 @Ollyws 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@jliexpensify
Copy link
Contributor

@Ollyws @luacmartins

Issue found when executing PR #35303

Is this a regression?

@dukenv0307
Copy link
Contributor

Is this a regression?

@jliexpensify no it's not, it was reproducible before that PR

@Ollyws
Copy link
Contributor

Ollyws commented Feb 1, 2024

Given it's not a regression from ours does the originally auto-assigned C+ @fedirjh want to take this?
I feel like I'd be eating their lunch a bit given how simple it is. 😅

@luacmartins
Copy link
Contributor

That sounds good to me, reassigning @fedirjh. Thanks @Ollyws!

@luacmartins luacmartins assigned fedirjh and unassigned Ollyws Feb 1, 2024
@luacmartins
Copy link
Contributor

I think @dukenv0307's proposal looks good. What do you think @fedirjh?

@fedirjh
Copy link
Contributor

fedirjh commented Feb 1, 2024

@luacmartins I agree with you. The proposal looks good to me, let's proceed with it.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Feb 1, 2024

Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

Copy link

melvin-bot bot commented Feb 1, 2024

📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added the Overdue label Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

@luacmartins, @jliexpensify, @fedirjh, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@fedirjh
Copy link
Contributor

fedirjh commented Feb 5, 2024

Awaiting PR from @dukenv0307

@melvin-bot melvin-bot bot removed the Overdue label Feb 5, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 6, 2024
@dukenv0307
Copy link
Contributor

@fedirjh The PR is ready for review.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 8, 2024
@melvin-bot melvin-bot bot changed the title [$500] Wallet - Back button loops the app between Expensify card and Activate card after page refresh [HOLD for payment 2024-02-15] [$500] Wallet - Back button loops the app between Expensify card and Activate card after page refresh Feb 8, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 8, 2024
Copy link

melvin-bot bot commented Feb 8, 2024

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

Copy link

melvin-bot bot commented Feb 8, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.38-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 2024-02-15. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Feb 8, 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:

  • [@fedirjh] The PR that introduced the bug has been identified. Link to the PR:
  • [@fedirjh] 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:
  • [@fedirjh] 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:
  • [@fedirjh] Determine if we should create a regression test for this bug.
  • [@fedirjh] 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.
  • [@jliexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@jliexpensify
Copy link
Contributor

Bump @fedirjh to complete the checklist

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 15, 2024
@fedirjh fedirjh mentioned this issue Feb 15, 2024
71 tasks
@fedirjh
Copy link
Contributor

fedirjh commented Feb 15, 2024

BugZero Checklist:

1. Log in with account that has Expensify card (virtual)
2. Go to Settings > Wallet
3. Click on a Expensify card
4. Click on Activate physical card
5. Refresh the page
6. Click on back button twice
7. Verify that we go back to wallet page

@jliexpensify
Copy link
Contributor

Paid and job closed!

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. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants