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-11-29] Verify account - "Code requested" only shows in 2FA page after user opens contact method page #52336

Closed
3 of 8 tasks
IuliiaHerets opened this issue Nov 11, 2024 · 15 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 Engineering

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Nov 11, 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: 9.0.60-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
Email or phone of affected tester (no customers): wjiojdoowjojwodj@gmail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in with a new Gmail account.
  3. Go to Settings > Security > Two-factor authentication.
  4. Note that there is no "Code requested. Please check your device." message.
  5. Go to Profile > Contact method.
  6. Click on the email.
  7. Go back to Security > Two-factor authentication.
  8. Now it shows "Code requested. Please check your device." message.

Expected Result:

In Step 4, 2FA page should show "Code requested. Please check your device."

Actual Result:

In Step 4, 2FA page does not show "Code requested. Please check your device."
It only shows the message (Step 8) after user opens Contact method page in Step 6.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6661745_1731353634154.20241112_031938.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @adelekennedy
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

Triggered auto assignment to @pecanoro (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Nov 11, 2024

Triggered auto assignment to @adelekennedy (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added the Daily KSv2 label Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Nov 11, 2024
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.

@nkdengineer
Copy link
Contributor

Proposal

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

In Step 4, 2FA page does not show "Code requested. Please check your device."
It only shows the message (Step 8) after user opens Contact method page in Step 6.

What is the root cause of that problem?

We are calculating hasMagicCodeBeenSent based on login data and this is not correct when we are calling API resendValidateCode so in step 4 we don't see "Code requested. Please check your device." message

after entering contact method loginData?.validateCodeSent is updated so we go back to 2FA it will show

const hasMagicCodeBeenSent = !!loginData?.validateCodeSent;

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

We should change this line to use ONYXKEYS.VALIDATE_ACTION_CODE

    const [validateCodeAction] = useOnyx(ONYXKEYS.VALIDATE_ACTION_CODE);
    const hasMagicCodeBeenSent = !!validateCodeAction?.validateCodeSent;

What alternative solutions did you explore? (Optional)

@pecanoro
Copy link
Contributor

It's coming from this PR here most likely: #51882

@hungvu193
Copy link
Contributor

hungvu193 commented Nov 12, 2024

Don't think it's a DB but I can handle it as a regression since the contributor can't be available. I'll need to create another follow-up for that issue anyway, so lemme handle it @pecanoro

@mountiny
Copy link
Contributor

@pecanoro thanks for handling, if you want to feel free to assign me to handle the regression.

@pecanoro
Copy link
Contributor

@hungvu193 Ok, let's do that if the original author can't handle it!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 13, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Nov 22, 2024
@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label Nov 22, 2024
@melvin-bot melvin-bot bot changed the title Verify account - "Code requested" only shows in 2FA page after user opens contact method page [HOLD for payment 2024-11-29] Verify account - "Code requested" only shows in 2FA page after user opens contact method page Nov 22, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 22, 2024
Copy link

melvin-bot bot commented Nov 22, 2024

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

Copy link

melvin-bot bot commented Nov 22, 2024

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

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

  • @hungvu193 requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Nov 22, 2024

@hungvu193 @adelekennedy @hungvu193 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Nov 29, 2024
Copy link

melvin-bot bot commented Nov 29, 2024

Payment Summary

Upwork Job

BugZero Checklist (@adelekennedy)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@hungvu193
Copy link
Contributor

We can close, this was fixed by another PR.

Copy link

melvin-bot bot commented Dec 2, 2024

@pecanoro, @hungvu193, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick!

@pecanoro pecanoro closed this as completed Dec 2, 2024
@melvin-bot melvin-bot bot removed the Overdue label Dec 2, 2024
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 Engineering
Projects
None yet
Development

No branches or pull requests

7 participants