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-10-09] [$500] Login - Abracadabra/2FA page displays but user can't login/continue until page is reloaded #26190

Closed
3 of 6 tasks
lanitochka17 opened this issue Aug 29, 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 Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 29, 2023

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


Action Performed:

  1. Go to staging.new.expensify.com
  2. Login with new account / existing account / 2FA account
  3. Copy 'Magic Link' from validation email
  4. Open a new tab and navigate to the staging magic link
  5. Verify the 'Abracadabra' / '2FA required' page is displayed
  6. Navigate to the original tab
  7. Verify the user is logged in with the new / existing account or page for 2FA input is displayed

Expected Result:

User is logged in with the new / existing account or page for 2FA input is displayed without reloading the page

Actual Result:

The user should reload the page to login or to enter 2FA

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.58-1

Reproducible in staging?: Yes

Reproducible in production?: No

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

mWeb-user-not-login-but-abracadabra-displayed.mp4
Screen_Recording_20230829_161427_Chrome.mp4

Expensify/Expensify Issue URL:

Issue reported by: @Natnael-Guchima in #25979

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0186f5d4f5c7886b4e
  • Upwork Job ID: 1700167803057692672
  • Last Price Increase: 2023-09-22
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Aug 29, 2023
@OSBotify
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented Aug 29, 2023

Triggered auto assignment to @arosiclair (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@Natnael-Guchima
Copy link

Hey guys, I reported this issue earlier here. this behavior is also observable on the 'unlink secondary contact method flow'

@arosiclair
Copy link
Contributor

I was able to reproduce this on staging web v1.3.58-1. And is not reproducible on prod so this definitely seems to be a regression.

@arosiclair
Copy link
Contributor

Only related PRs I see are these, but I don't think they've broken anything

@johnmlee101 @NikkiWines any ideas?

@luacmartins
Copy link
Contributor

@arosiclair what's the latest here?

@arosiclair
Copy link
Contributor

arosiclair commented Aug 29, 2023

Repro'd on dev as well. It looks like the validate page and sign in commands are all working correctly. It seems like the 2FA page on the original tab is just not re-rendering after the session is updated in Onyx.

@luacmartins
Copy link
Contributor

I can reproduce in dev too. It seems like this subscriber is never getting the new value, so we don't re-render the navigator to redirect the user to the auth screens. I'm not sure why though.

@luacmartins
Copy link
Contributor

luacmartins commented Aug 29, 2023

This seems to be a regression from #25565. Reverting that PR fixes the issue. I'm gonna demote this issue to NAB since it's small, we have an easy workaround (refresh the page), we got a good performance improvement from that PR and the fix will likely be in Onyx.

@hannojg can you take a look at this since you worked on the Onyx improvements, please!

@luacmartins
Copy link
Contributor

@hannojg are we addressing the regressions from thee Onyx migration to idb-keyval anywhere?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

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

@arosiclair arosiclair added the Bug Something is broken. Auto assigns a BugZero manager. label Sep 5, 2023
@ospfranco
Copy link
Contributor

#28299 has been merged, you can test directly on main or wait for a deployment to staging.

@arosiclair
Copy link
Contributor

@abdulrahuman5196 can you verify this bug is fixed on staging?

@Natnael-Guchima
Copy link

@arosiclair Yes it is fixed.

login1.mov

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Oct 2, 2023
@melvin-bot melvin-bot bot changed the title [$500] Login - Abracadabra/2FA page displays but user can't login/continue until page is reloaded [HOLD for payment 2023-10-09] [$500] Login - Abracadabra/2FA page displays but user can't login/continue until page is reloaded Oct 2, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 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-10-09. 🎊

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

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

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 Oct 2, 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:

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

@arosiclair
Copy link
Contributor

Thank you @Natnael-Guchima. I think this is good to wait for the regression period 👍

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@abdulrahuman5196
Copy link
Contributor

The PR that introduced the bug has been identified. Link to the PR:

This issue was caused as a side effect of the onyx performance improvement - Expensify/react-native-onyx#280

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

#25565 (comment)

Determine if we should create a regression test for this bug.
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.

No. Its a straightforward login usecase and regression test should be already present for the same.

@stephanieelliott
Copy link
Contributor

Summarizing payment on this issue -- @Natnael-Guchima @abdulrahuman5196 I've extended an offer to you on Upwork, can you please accept when you get a chance?

Upwork job is here, no bonus is included on final payout

@Natnael-Guchima
Copy link

Accepted the offer. Thanks @stephanieelliott

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Third week)

@melvin-bot melvin-bot bot added the Overdue label Oct 13, 2023
@luacmartins
Copy link
Contributor

Just pending payment

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 13, 2023
@abdulrahuman5196
Copy link
Contributor

@stephanieelliott Gentle ping on payment processing. Pending for more than a week.

@melvin-bot melvin-bot bot removed the Overdue label Oct 16, 2023
@stephanieelliott
Copy link
Contributor

All paid!

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 Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests