App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-09-22] Concierge - Request call without phone number leads to infinite loading. In mobile, app crashes

Open isagoico opened this issue 5 years ago β€’ 20 comments

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

Upwork Post: https://www.upwork.com/jobs/~0198bddf350b2411a7


Action Performed:

  1. Go to https://staging.new.expensify.com
  2. Log in with any account
  3. Search for Concierge
  4. Click on Call icon
  5. Don't write anything on phone number and click call

Expected Result:

Error message only should appears

Actual Result:

Request call without phone number leads for infinite loading

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.0.88-0

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation In mobile, app crashes.

https://user-images.githubusercontent.com/44479856/131012470-550ce7c9-b6de-4019-87de-aa036d94723e.mp4

image

Expensify/Expensify Issue URL:

View all open jobs on GitHub

isagoico avatar Aug 26 '21 17:08 isagoico

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

MelvinBot avatar Aug 26 '21 17:08 MelvinBot

Proposal

We need to add a validation here for the phone number also and show here a user-friendly message using growl like we already do for the firstName & lastName! https://github.com/Expensify/App/blob/ae38f1bf03eace0d25124c9947010b77f43ac962/src/pages/RequestCallPage.js#L81-L93

Also, we should allow users to type only Numbers and plus. So we should use CONST.REGEX.DIGITS_AND_PLUS regex and validate onChange. https://github.com/Expensify/App/blob/ae38f1bf03eace0d25124c9947010b77f43ac962/src/pages/RequestCallPage.js#L181-L188

Demo of an error Message:

https://user-images.githubusercontent.com/85645967/131072014-9bde5037-8dea-4a25-a82a-d956d595f06e.mov

Used success type growl notification which is already used for name validation also, we can change both to error type if needed thanks!

Santhosh-Sellavel avatar Aug 27 '21 04:08 Santhosh-Sellavel

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

MelvinBot avatar Aug 27 '21 06:08 MelvinBot

I tested out this component. I didn't find infinite loading. On clicking save without phone number, just throw the backend error which seems fine to me.

But looking at the video, it seems the error is at the https://github.com/Expensify/App/blob/ae38f1bf03eace0d25124c9947010b77f43ac962/src/pages/RequestCallPage.js#L89.

It is possible that the policy is empty for the user.

Proposal

Not making this simple component complicated as we already have a backend validation message in place when the phone number is not present or invalid, I would suggest

  1. Disable the Call me button until all the fields are filled.
  2. Add the check for the policy before checking policy.type so that it does not throw an error as shown in the video i.e. just using lodash.get.
  3. If we want to validate the number in the front end before submitting. we can show the error/red outline on the phone input if the number is invalid using the errorText prop in ExpensiInput.

parasharrajat avatar Aug 27 '21 06:08 parasharrajat

Posted to upwork here: https://www.upwork.com/jobs/~0198bddf350b2411a7

@parasharrajat your proposal looks good, good eye on the policy error in the video. I've invited you to the Upwork job, once you accept feel free to start on a PR and I'll assign you.

Jag96 avatar Aug 27 '21 18:08 Jag96

Please assign this issue to me. Thanks.

parasharrajat avatar Aug 28 '21 01:08 parasharrajat

Issue reproducible during KI retests

isagoico avatar Aug 30 '21 14:08 isagoico

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

MelvinBot avatar Aug 30 '21 19:08 MelvinBot

Issue reproducible during KI retests

isagoico avatar Sep 05 '21 23:09 isagoico

I am on vacation. back on 8.

parasharrajat avatar Sep 07 '21 13:09 parasharrajat

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

botify avatar Sep 10 '21 23:09 botify

Issue reproducible during KI retests.

isagoico avatar Sep 13 '21 15:09 isagoico

@isagoico ~Could you please a screenshot of the error?~ Oops, it is not yet moved to staging. Sorry.

parasharrajat avatar Sep 13 '21 15:09 parasharrajat

πŸš€ Deployed to staging by @Jag96 in version: 1.0.97-1 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Sep 13 '21 19:09 botify

πŸš€ Deployed to production by @francoisl in version: 1.0.98-1 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Sep 15 '21 20:09 botify

Issue not reproducible during KI retests. (Fixed πŸŽ‰)

isagoico avatar Sep 20 '21 15:09 isagoico

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.0.98-1 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pulls/5169\n

If no regressions arise, payment will be issued on 2021-09-27. :confetti_ball:

botify avatar Sep 20 '21 20:09 botify

This message is a bug, caused by today's deploy and some weird GH API behaviour. Updated the title back to what it was πŸ™‡

mountiny avatar Sep 20 '21 22:09 mountiny

Ping for image

parasharrajat avatar Sep 22 '21 16:09 parasharrajat

Paid!

Jag96 avatar Sep 22 '21 22:09 Jag96