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-03-07] [$500] VBA - Background page is "reloading" when proceeding through VBA flow #36512

Closed
2 of 6 tasks
lanitochka17 opened this issue Feb 14, 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. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 14, 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.41-2
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): applausetester+emilio@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Access staging.new.expensify.com
  2. Sign into a valid account
  3. Access a Workspace settings page
  4. Go to "Connect bank account" and follow the flow
  5. Observe the background flow as you proceed through the steps

Expected Result:

The user expects the background to be unchanged, only the side modal should display loading icons

Actual Result:

The background is constantly reloaded as well at the side modal, making it "two loading" screens

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

Bug6379415_1707919378829.Background_is_reloading_when_proceeding_through_VBA.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015afe16eee041d143
  • Upwork Job ID: 1757788005606686720
  • Last Price Increase: 2024-02-21
  • Automatic offers:
    • alitoshmatov | Reviewer | 0
    • rayane-djouah | Contributor | 0
@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 14, 2024
@melvin-bot melvin-bot bot changed the title VBA - Background page is "reloading" when proceeding through VBA flow [$500] VBA - Background page is "reloading" when proceeding through VBA flow Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

Job added to Upwork: https://www.upwork.com/jobs/~015afe16eee041d143

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

melvin-bot bot commented Feb 14, 2024

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

Copy link

melvin-bot bot commented Feb 14, 2024

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

@saif-o99
Copy link

i wish i could run this project so i can contribute...

Copy link

melvin-bot bot commented Feb 14, 2024

📣 @saif-o99! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@melvin-bot melvin-bot bot added the Overdue label Feb 16, 2024
@lschurr
Copy link
Contributor

lschurr commented Feb 16, 2024

Waiting on proposals.

@melvin-bot melvin-bot bot removed the Overdue label Feb 16, 2024
@wlegolas
Copy link
Contributor

Hi @lschurr and @lanitochka17 do you have a bank test information to share to test this issue?

I tried to test using some fake back information, but the second step validated the information.

@rayane-djouah
Copy link
Contributor

Proposal

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

Background page is "reloading" when proceeding through VBA flow.

What is the root cause of that problem?

when we setup the bank account in the right modal we are showing ReimbursementAccountLoadingIndicator here:

if ((!hasACHDataBeenLoaded || isLoading) && shouldShowOfflineLoader && (shouldReopenOnfido || !requestorStepRef.current)) {
return <ReimbursementAccountLoadingIndicator onBackButtonPress={goBack} />;
}

when the reimbursement account is loading from the server:
const isLoading = (isLoadingApp || account.isLoading || reimbursementAccount.isLoading) && (!plaidCurrentEvent || plaidCurrentEvent === CONST.BANK_ACCOUNT.PLAID.EVENTS_NAME.EXIT);

and in the background we have a WorkspacePageWithSections, we are showing also a FullScreenLoadingIndicator

{(isLoading || firstRender.current) && shouldShowLoading ? (
<FullScreenLoadingIndicator style={[styles.flex1, styles.pRelative]} />
) : (

when the reimbursement account is loading from the server:
const isLoading = reimbursementAccount?.isLoading ?? true;

this is why both background page and the right modal are showing loading views.

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

we should change the condition in WorkspacePageWithSections to show the FullScreenLoadingIndicator only when the component is focused:

import {useIsFocused} from '@react-navigation/native';
const isFocused = useIsFocused();
  {(isLoading || firstRender.current) && shouldShowLoading && isFocused ? (
      <FullScreenLoadingIndicator style={[styles.flex1, styles.pRelative]} />
  ) : (

this way, when we are focusing on the right modal and the account is loading from the server, the background will be unchanged, and only the right side modal display a loading view.

Result

Before:

before.Recording.2024-02-18.204009.mp4

After:

after.Recording.2024-02-18.203850.mp4

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot melvin-bot bot added the Overdue label Feb 18, 2024
@lschurr
Copy link
Contributor

lschurr commented Feb 19, 2024

Could you review this one @alitoshmatov?

@melvin-bot melvin-bot bot removed the Overdue label Feb 19, 2024
@lanitochka17
Copy link
Author

@wlegolas Hello
Fully verified bank account credentials
Use Regions bank
Username: user_good | Password: pass_good
Account type: Plaid Saving (2nd option)
CompanyName: Alberta Bobbeth Charleson
CompanyTaxID: 123456789
First Name: Alberta
Last Name: Charleson
Last SSN numbers: 3333

Fill the rest of the fields with random data.

@alitoshmatov
Copy link
Contributor

@rayane-djouah Can you make sure there are no cases where WorkspacePageWithSections is shown unexpectedly without loading?

Copy link

melvin-bot bot commented Feb 21, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@rayane-djouah
Copy link
Contributor

@alitoshmatov I tested my proposal and didn't find such case. WorkspacePageWithSections is loading correctly when focused 👍

@wlegolas
Copy link
Contributor

user_good

Hi @lanitochka17 I tried to use this information but didn't work locally and on staging.

Do you have another account?

image

@melvin-bot melvin-bot bot added the Overdue label Feb 23, 2024
@alitoshmatov
Copy link
Contributor

I think we can go with @rayane-djouah 's proposal. It has correct RCA and uses focus to determine to show loading or not

C+ reviewed 🎀 👀 🎀

Copy link

melvin-bot bot commented Feb 23, 2024

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

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 25, 2024
@lanitochka17
Copy link
Author

I am not able to reproduce this issue with build 1.4.43-19

Recording.1295.mp4

@wlegolas Hello

  • try adding this data:
    Phone number: 5082211111
    Birthday 01-01-1980
    Incorporation day: 01-01-2010

@rayane-djouah
Copy link
Contributor

@lanitochka17 I'm still able to reproduce it on staging. you need to start the new bank account flow from a workspace settings page other than "Profile" or "Members" (example: "Cards")

vba.Recording.2024-02-27.122258.mp4

@rayane-djouah
Copy link
Contributor

@alitoshmatov 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 29, 2024
@melvin-bot melvin-bot bot changed the title [$500] VBA - Background page is "reloading" when proceeding through VBA flow [HOLD for payment 2024-03-07] [$500] VBA - Background page is "reloading" when proceeding through VBA flow Feb 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 29, 2024
Copy link

melvin-bot bot commented Feb 29, 2024

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

Copy link

melvin-bot bot commented Feb 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.45-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-03-07. 🎊

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

Copy link

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

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

@lschurr
Copy link
Contributor

lschurr commented Mar 4, 2024

@alitoshmatov Could you work through the checklist on this one?

@rayane-djouah
Copy link
Contributor

@lschurr Friendly reminder for payment, Thank you!

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 7, 2024
@lschurr
Copy link
Contributor

lschurr commented Mar 7, 2024

Payment summary:

@lschurr
Copy link
Contributor

lschurr commented Mar 8, 2024

@alitoshmatov
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: Display loading page for workspace page with section #32903
  • 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: https://github.com/Expensify/App/pull/32903/files#r1518264997
  • 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: No need
  • Determine if we should create a regression test for this bug. No need

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

Is this paid? Shall we close the issue?

@melvin-bot melvin-bot bot removed the Overdue label Mar 11, 2024
@alitoshmatov
Copy link
Contributor

Payment is done(at least on my part)

@lschurr
Copy link
Contributor

lschurr commented Mar 11, 2024

Yep, all set! Closing.

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

7 participants