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-07-05] [$1000] Pressing and holding back key in a phone number field resets country selection #16640

Closed
1 of 6 tasks
kavimuru opened this issue Mar 28, 2023 · 60 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

@kavimuru
Copy link

kavimuru commented Mar 28, 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. Click on “Profile” avatar
  2. Click on “Workspace” link
  3. Click on “Issue cards” link
  4. Click on “Connect manually” link
  5. Fill out all forms and submit the forms leading to “Personal Information” form
  6. Enter personal information and click on “save & continue” button
  7. Click on “Passport” button
  8. Click on “Get secure link” button
  9. Click on “Get link via SMS” link
  10. Select a country using dropdown menu
  11. Enter number
  12. Press and hold back key

Expected Result:

Country selection should not reset

Actual Result:

Country selection resets to the default value

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.2.91-0
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):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

2023-03-28.14.44.40.mp4
Recording.79.mp4

Expensify/Expensify Issue URL:
Issue reported by: @Natnael-Guchima
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680004375167929

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016fa3b4a81adeeec1
  • Upwork Job ID: 1643650089223389184
  • Last Price Increase: 2023-04-19
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 28, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

MelvinBot commented Mar 28, 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 Mar 31, 2023
@MelvinBot
Copy link

@michaelhaxhiu Eep! 4 days overdue now. Issues have feelings too...

@MelvinBot
Copy link

@michaelhaxhiu Still overdue 6 days?! Let's take care of this!

@michaelhaxhiu michaelhaxhiu added the External Added to denote the issue can be worked on by a contributor label Apr 5, 2023
@melvin-bot melvin-bot bot changed the title Pressing and holding back key in a phone number field resets country selection [$1000] Pressing and holding back key in a phone number field resets country selection Apr 5, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~016fa3b4a81adeeec1

@michaelhaxhiu
Copy link
Contributor

This is a valid bug report, let's fix it

@MelvinBot
Copy link

Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new.

@MelvinBot
Copy link

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

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

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

@daraksha-dk
Copy link
Contributor

Proposal

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

Pressing and holding back key in a phone number field resets country selection

What is the root cause of that problem?

This also happens when the user tries to enter the 18th digit in the field. This is a UX issue at Onfido's end.

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

As the issue is at their end, I think it should be handled there only - I've raised the issue

@akinwale
Copy link
Contributor

akinwale commented Apr 5, 2023

Proposal

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

While trying to add a bank account using the manual option, the user gets to a point where they have to enter their phone number in order to obtain a secure link. After selecting the country and entering a phone number, if the holder holds the Backspace key to delete the entry, the keyboard input eventually causes the option in the select box to reset.

What is the root cause of that problem?

This is occurring with dynamically injected code from the onfido-sdk-ui dependency.

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

It may be possible to create a dynamic JavaScript event to intercept the keypress event for the Backspace button and cancel the default event behaviour for the select HTML element with the class name PhoneInputCountrySelect. The dynamic code is accessible in the DOM, as it's not an placed within an iframe. However, if onfido changes the dynamically generated code in the future, this will cause a regression.

What alternative solutions did you explore?

Possibly filing an issue with the onfido-sdk-ui team to fix the problem.

@daraksha-dk
Copy link
Contributor

#14766 (comment)
Based on our past experience, we should also send an email to the dedicated CSM.

@rushatgabhane
Copy link
Member

reviewing

@rushatgabhane
Copy link
Member

rushatgabhane commented Apr 6, 2023

@michaelhaxhiu I think this issue is all yours :) #16640 (comment)

Thanks for raising the issue on onfido's repo 🙌 @daraksha-dk

@melvin-bot melvin-bot bot added the Overdue label Apr 10, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

@michaelhaxhiu, @Gonals, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick!

@MelvinBot
Copy link

@michaelhaxhiu @Gonals @rushatgabhane this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@MelvinBot
Copy link

@michaelhaxhiu, @Gonals, @rushatgabhane Eep! 4 days overdue now. Issues have feelings too...

@MelvinBot
Copy link

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

@MariaHCD MariaHCD changed the title [Hold - upstream repo fix in progress] [$1000] Pressing and holding back key in a phone number field resets country selection [$1000] Pressing and holding back key in a phone number field resets country selection Jun 21, 2023
@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Jun 22, 2023
@daraksha-dk
Copy link
Contributor

PR is ready for review!

cc: @rushatgabhane

@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

🎯 ⚡️ Woah @rushatgabhane / @daraksha-dk, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @daraksha-dk got assigned: 2023-06-21 17:34:05 Z
  • when the PR got merged: 2023-06-26 10:10:20 UTC

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 Weekly KSv2 labels Jun 28, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Pressing and holding back key in a phone number field resets country selection [HOLD for payment 2023-07-05] [$1000] Pressing and holding back key in a phone number field resets country selection Jun 28, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 28, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 28, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 28, 2023

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

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

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

@rushatgabhane
Copy link
Member

  1. The PR that introduced the bug has been identified. Link to the PR: N.A. because bug existed in third party library onfido-sdk-ui

  2. 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: N.A. because bug existed in third party library onfido-sdk-ui

  3. 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. because bug existed in third party library onfido-sdk-ui

  4. Determine if we should create a regression test for this bug. No

  5. 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. N.A.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 4, 2023
@rushatgabhane
Copy link
Member

rushatgabhane commented Jul 5, 2023

Rushat is paid on new dot - https://staging.new.expensify.com/r/2544257188075288

@melvin-bot melvin-bot bot added the Overdue label Jul 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

@MariaHCD, @michaelhaxhiu, @rushatgabhane, @daraksha-dk Eep! 4 days overdue now. Issues have feelings too...

@michaelhaxhiu
Copy link
Contributor

Let's get this paid :)

@melvin-bot melvin-bot bot removed the Overdue label Jul 11, 2023
@michaelhaxhiu
Copy link
Contributor

michaelhaxhiu commented Jul 11, 2023

Invited Daraksha & Natnael to the job on upwork. Please comment here when you accept.

  • $1500 = Rushat (paid via newdot)
  • $1500 = Daraksha
  • $250 = Natnael

@Natnael-Guchima
Copy link

Accepted the offer. Thanks @michaelhaxhiu

@daraksha-dk
Copy link
Contributor

@michaelhaxhiu I have accepted the offer, thank you!

@michaelhaxhiu
Copy link
Contributor

WTF is wrong with upwork 🖕 The job link is expired as of today 😒

@michaelhaxhiu
Copy link
Contributor

They should rename to BusyWork instead of UpWork. 😠

New job link is here - invited you again because upwork wants us to repeat this step a thousand times.
https://www.upwork.com/jobs/~01d6ed8d5f098694bb

@Natnael-Guchima
Copy link

I have accepted the offer. Thanks @michaelhaxhiu

@daraksha-dk
Copy link
Contributor

Accepted the offer. Thanks @michaelhaxhiu

@michaelhaxhiu
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
Projects
None yet
Development

No branches or pull requests

9 participants