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 2023-06-23] [$2000] IOS - Connect Bank - User cannot fill out forms in the 'Connect BA' flow in Offline #18990

Closed
1 of 6 tasks
kbecciv opened this issue May 16, 2023 · 52 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 Monthly KSv2

Comments

@kbecciv
Copy link

kbecciv commented May 16, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Navigate to the add bank account modal in Workspace settings
  2. Start and follow the flow for adding a fully verified bank account
  3. User is on 'Company Info' or 'Personal Info' or 'Beneficial Info' page
  4. Go to Offline Mode and fill out the forms

Expected Result:

User is able to fill out the forms on 'Company Info' or 'Personal Info' or 'Beneficial Info' page in offline. Note this should apply to any step of the Connect Bank Account flow, there were 2 duplicates created that focused on each page of the flow having this same problem so lets make sure they all work.

Actual Result:

User is NOT able to fill out the forms on 'Company Info' or 'Personal Info' or 'Beneficial Info' page in offline

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.14.4

Reproducible in staging?: Yes

Reproducible in production?: not able to check production

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

Bug6056588_iOS-personal-info-page-offline.mp4
Bug6056588_iOS-company-info-form-offline.mp4
Bug6056588_iOS-beneficial-form-offline.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014610ed3ac7406765
  • Upwork Job ID: 1665836259727785984
  • Last Price Increase: 2023-06-06
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 16, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 16, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot melvin-bot bot added the Overdue label May 18, 2023
@mallenexpensify
Copy link
Contributor

@kbecciv where do you get credentials to enter into the boxes in Plaid? I don't see anything in 1Password.

image

@kbecciv
Copy link
Author

kbecciv commented May 19, 2023

@melvin-bot melvin-bot bot added the Overdue label May 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 22, 2023

@mallenexpensify, @kbecciv Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@mallenexpensify
Copy link
Contributor

Requested access to the sheet above @kbecciv

@melvin-bot melvin-bot bot removed the Overdue label May 22, 2023
@mallenexpensify
Copy link
Contributor

@melvin-bot melvin-bot bot added the Overdue label May 26, 2023
@mallenexpensify
Copy link
Contributor

@kbecciv having trouble reproducing.
Are you using plaid to connect or connecting manually?
When I try using Plaid and my expensifail account, I get First Platypus Bank and they want to text a number to me, where last four is 1111
IMG_F129150ACBA8-1

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 26, 2023
@kbecciv
Copy link
Author

kbecciv commented May 29, 2023

Hello @mallenexpensify! I'm using the option Connect online with Plaid. Don't worry about text a number to your phone, simply tap Get code under Verify your identity and tap Submit under Verification page.
Sending you a fresh video. Please let me know if you have more questions about the flow. Thank you

RPReplay_Final1685373537.MP4

@melvin-bot melvin-bot bot removed the Overdue label May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 30, 2023

@mallenexpensify @kbecciv this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@mallenexpensify
Copy link
Contributor

Thanks @kbecciv , the issue was that I didn't just click through the steps, I assumed I needed a phone number or code.

For the expected behaviour:

User is able to fill out the forms on 'Company Info' or 'Personal Info' or 'Beneficial Info' page in offline

I don't think it's expected that a user will be able to complete all bank account, Plaid or OnFido steps while offline. I would think the expected behaviour is that you wouldn't be able to complete the steps until you're online. @trjExpensify , do you happen to know about this? For some reason I think you do.

@trjExpensify
Copy link
Contributor

@MariaHCD will be best to confirm! I believe you should be able to fill out the form, but you can't submit it while offline because we need to make a third party API call.

@MariaHCD
Copy link
Contributor

I believe you should be able to fill out the form, but you can't submit it while offline because we need to make a third party API call.

Yes, agreed. When offline, you can fill out the form but the Save & Continue button will be disabled until you are back online (pattern C)

We shouldn't be showing the full page offline screen if you go offline at any of the steps.

@mallenexpensify
Copy link
Contributor

Thanks @trjExpensify and @MariaHCD

@MariaHCD if a user goes offline in the middle of the process should we

  1. show this -
image
  1. Allow them to fill out the form but have the Save & Continue button disabled?

If it's 1. I'll close the issue, if 2, my plan is to assign an engineer to review then confirm if it can be External

@MariaHCD
Copy link
Contributor

MariaHCD commented Jun 1, 2023

2. Allow them to fill out the form but have the Save & Continue button disabled?

I believe this is how it was originally working as well perhaps something changed in the code. On the RequestorStep and CompanyStep, a user should still be able to fill out those fields and the Save & continue button will be disabled.

As an additional note, if the user has begun the Onfido verification process and goes offline, we should show them the full page offline view.

@MariaHCD
Copy link
Contributor

MariaHCD commented Jun 1, 2023

Fwiw, I do think this can be external

@akinwale
Copy link
Contributor

@alex-mechler @parasharrajat I have applied for the Upwork job and the PR is ready for review. Thanks.

@parasharrajat
Copy link
Member

I agree ComponentDidUpdate does not prevent rerender. It is called after the render has happened.

@mallenexpensify
Copy link
Contributor

mallenexpensify commented Jun 12, 2023

@akinwale and @parasharrajat hired in Upwork! @parasharrajat , please accept
https://www.upwork.com/jobs/~014610ed3ac7406765

@akinwale
Copy link
Contributor

@akinwale and @parasharrajat hired in Upwork!

Accepted, thanks.

@melvin-bot
Copy link

melvin-bot bot commented Jun 14, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @akinwale got assigned: 2023-06-09 15:12:40 Z
  • when the PR got merged: 2023-06-14 16:22:16 UTC
  • days elapsed: 4

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jun 16, 2023
@melvin-bot melvin-bot bot changed the title [$2000] IOS - Connect Bank - User cannot fill out forms in the 'Connect BA' flow in Offline [HOLD for payment 2023-06-23] [$2000] IOS - Connect Bank - User cannot fill out forms in the 'Connect BA' flow in Offline Jun 16, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 16, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 16, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.28-5 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 2023-06-23. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jun 16, 2023

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:

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

@michaelhaxhiu
Copy link
Contributor

🧇 I'm removing AlexM's assignment. Seems this doesn't need a new CME since we are just doing payment and BZ checklist now!

@melvin-bot melvin-bot bot added Daily KSv2 Monthly KSv2 and removed Weekly KSv2 labels Jun 22, 2023
@akinwale
Copy link
Contributor

@mallenexpensify Just checking in here. I'm guessing that this is eligible for the speed bonus since it still falls within 3 business days, correct? Assigned on Friday and merged Wednesday. Thanks.

@melvin-bot melvin-bot bot added the Overdue label Jun 26, 2023
@mallenexpensify
Copy link
Contributor

@akinwale , that's how I see/read it as well, I wonder why it says 4 days in the auto-post above, maybe it has to do with timezones? (which isn't clear)
Paid @akinwale and @parasharrajat $3000, no bug reporter.

@parasharrajat can you fill out the BZ checklist plz?
#18990 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Jun 26, 2023
@akinwale
Copy link
Contributor

@akinwale , that's how I see/read it as well, I wonder why it says 4 days in the auto-post above, maybe it has to do with timezones? (which isn't clear) Paid @akinwale and @parasharrajat $3000, no bug reporter.

@parasharrajat can you fill out the BZ checklist plz? #18990 (comment)

Payment received, thanks!

I think it calculates 72 hours, and then any hour above that is counted as another day.

@parasharrajat
Copy link
Member

parasharrajat commented Jun 26, 2023

[@parasharrajat] The PR that introduced the bug has been identified. Link to the PR: It is technically a new change. The loader was added initially in #13236 **
[@parasharrajat] 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: ** As this is not a bug, there is no need to comment anywhere.

[@parasharrajat] 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: N/A
[@parasharrajat] Determine if we should create a regression test for this bug. Yes
[@parasharrajat] 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. #18990 (comment)

@parasharrajat
Copy link
Member

Regression Test Steps

  1. Navigate to the Bank account in the Workspace settings.
  2. Start a new flow if one is already in progress. Choose "Connect online with Plaid".
  3. Follow the Plaid flow to connect an account. Select the "Regions Bank" institution, and use "user_good" / "pass_good" (without quotes) as the credentials.
  4. Finish up with the Plaid flow which should redirect back to the app.
  5. Select any of the accounts and click Save & Continue.
  6. Fill out any of the forms in steps 2, 3, or 4 (which come after Onfido verification).
  7. Go offline.
  8. Verify that the full-page offline view is not displayed and the current form can still be filled while offline. (Note: There are a few fields which are locked once submitted).

Do you agree 👍 or 👎 ?

@mallenexpensify
Copy link
Contributor

Thanks for the steps @parasharrajat, Regression test step update GH created
https://github.com/Expensify/Expensify/issues/295146

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 Monthly KSv2
Projects
None yet
Development

No branches or pull requests