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-14] [$500] Login - When try to log in with Google, an error message under email field appears #31413

Closed
2 of 6 tasks
lanitochka17 opened this issue Nov 16, 2023 · 84 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 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Nov 16, 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!


Version Number: 1.4.0-0
Reproducible in staging?: Y
Reproducible in production?: N
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:

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Click on compose box
  3. Click on the Google button to log in.

Expected Result:

No error message should be displayed

Actual Result:

An error message under email field appears saying that you must enter an email or phone number

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • Windows: Chrome /
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6278454_1700099470387.bandicam_2023-11-15_20-18-11-460.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01898b63da3ac78d6c
  • Upwork Job ID: 1725561784156704768
  • Last Price Increase: 2023-11-24
  • Automatic offers:
    • aimane-chnaif | Contributor | 27870856
    • FitseTLT | Contributor | 28071207
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Nov 16, 2023
@s-alves10
Copy link
Contributor

s-alves10 commented Nov 16, 2023

#29640 would fix this issue

I mean this PR #30563

@aimane-chnaif
Copy link
Contributor

Not able to reproduce on main

@roryabraham
Copy link
Contributor

Confirmed reproducible on staging but not main

@roryabraham
Copy link
Contributor

Not able to reproduce locally on the staging branch either

@roryabraham
Copy link
Contributor

Not going to treat this as a blocker, and we'll see if it's fixed on staging after the next staging deploy. I don't actually think it will be – #30563 is already on staging.

@roryabraham roryabraham added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Nov 17, 2023
Copy link

melvin-bot bot commented Nov 17, 2023

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

Copy link

melvin-bot bot commented Nov 17, 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

@roryabraham roryabraham added the External Added to denote the issue can be worked on by a contributor label Nov 17, 2023
@melvin-bot melvin-bot bot changed the title Login - When try to log in with Google, an error message under email field appears [$500] Login - When try to log in with Google, an error message under email field appears Nov 17, 2023
Copy link

melvin-bot bot commented Nov 17, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01898b63da3ac78d6c

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 17, 2023
Copy link

melvin-bot bot commented Nov 17, 2023

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

@Mihai-Damaschin
Copy link

Mihai-Damaschin commented Nov 18, 2023

Contributor details
Expensify account email: isus.hristosovici0000@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01216afb656aa97e1f

Proposal

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

When user makes a click on log with google or apple buttons, a validation error appears under the text input

What is the root cause of that problem?

The root of this problem, is the validate function that are called on every onBlur event of the text input, so every time the user make a click above the text input, the validation function is triggered. Validation function works well and throw the right error, cause the input are empty.

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

I run the project and checked the issue, the simplest way to solve it is to add new state to the LoginForm component from BaseLoginForm file. New state will be changed to true when user make click on the apple or google log in buttons, and will prevent the validate function from onBlur event of TextInput component.

This way doesn't require to remove any existent code. I already tested this solution.

What alternative solutions did you explore? (Optional)

If to remove the existent code is allowed, i can find another way to fix it.

Copy link

melvin-bot bot commented Nov 18, 2023

📣 @Mihai-Damaschin! 📣
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>

@Fralalala
Copy link

Fralalala commented Nov 18, 2023

Proposal

  • In the onBlur function, if login input is empty, dont validate.

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

  • When viewing the login page, you are initially focused on the Email Input field. Clicking anything else besides the input field will activate the validation code which shows an error if nothing is inputted or an incorrect email is inputted.

What is the root cause of that problem?

  • When a user opens the log in page and the first element they click is a Single Sign On (while there's nothing in the input), it will trigger a blur which will trigger the onBlur function. This would then validate an empty string, giving out the error.

This problem is only occurring on our first blur.

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

This will allow us to validate via onBlur when we only have a valid input.

This also allows users to click in and out of the input repeatedly if there's no input and not show any errors.

This also retains all the form guidelines from
#31413 (comment)
except the third point blur input: validate which only happens once and any validation afterwards are via input changes which is already present in the code base.

What alternative solutions did you explore? (Optional)

Copy link

melvin-bot bot commented Feb 1, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 Daily KSv2 labels Feb 1, 2024
@melvin-bot melvin-bot bot changed the title [$500] Login - When try to log in with Google, an error message under email field appears [HOLD for payment 2024-02-14] [$500] Login - When try to log in with Google, an error message under email field appears Feb 7, 2024
Copy link

melvin-bot bot commented Feb 7, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 7, 2024
Copy link

melvin-bot bot commented Feb 7, 2024

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

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

Copy link

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

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

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Feb 13, 2024
@roryabraham
Copy link
Contributor

@anmurali this is ready for payment.

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

@FitseTLT has been paid
@aimane-chnaif offer expired, so sent a new one here
Do we need to add a regression test? If yes, @aimane-chnaif can you propose it?

Adding a backup BZ member to close this off after those two things are handled here as I am OOO

@anmurali anmurali removed their assignment Feb 16, 2024
@anmurali anmurali added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Feb 16, 2024
Copy link

melvin-bot bot commented Feb 16, 2024

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

Copy link

melvin-bot bot commented Feb 20, 2024

@FitseTLT, @roryabraham, @adelekennedy, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@adelekennedy
Copy link

@aimane-chnaif paid! Bump on the regression test question

@melvin-bot melvin-bot bot removed the Overdue label Feb 20, 2024
@aimane-chnaif
Copy link
Contributor

We don't need regression test as this was deploy blocker, which means that QA team found this during regression test

@adelekennedy
Copy link

perfect - then we can close this!

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

No branches or pull requests