Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #19335
Action Performed:
- Login with any Expensifail account
- Verify that this account has at least one contact that is an account created by phone number
- Go to FAB -> Assign Task -> Enter a title and description and navigate to next page
- Click on the "Assignee" and enter the correct phone number
Expected Result:
Verify that the account with phone number is added as assignee and no error appears
Actual Result:
404 error message displayed in console
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.17.0
Reproducible in staging?: Yes
Reproducible in production?: n/a
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~019b8fec9274038ed9
- Upwork Job ID: 1676739867017773056
- Last Price Increase: 2023-07-05
Activity
melvin-bot commentedon May 23, 2023
Triggered auto assignment to @mallenexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon May 23, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)mallenexpensify commentedon May 24, 2023
@kbecciv do you have a phone number account I can use to test with? I'm getting an error when trying to use my google phone number "The provided phone number belongs to a landline or VoIP, please use your email address instead.
"
and... when using my other number I get
situchan commentedon May 24, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Console error shows after selecting assignee on task assignee selector page
What is the root cause of that problem?
This came from lack knowledge of lifecycle in functional component.
In
TaskAssigneeSelectorModal, there'ssearch_rendermeasurement.Timer should start on component mount and should end only on OptionsSelector onLayout callback or component unmount.
In current logic, there are more cases of start/end timer: whenever props or search value are changed because of
[updateOptions]dependency.App/src/pages/tasks/TaskAssigneeSelectorModal.js
Lines 110 to 114 in d70b746
So finally these are call orders in Timing.js:
We can find out and fix similar issues across the app. (i.e. TaskShareDestinationSelectorModal)
What changes do you think we should make in order to solve the problem?
call Timing.start only on component mount, Timing.end only on component unmount or OptionsSelector onLayout callback.
To do this, define new useEffect hook with empty array dependency:
What alternative solutions did you explore? (Optional)
Early return if key doesn't exist here
kbecciv commentedon May 26, 2023
@mallenexpensify Sorry, I don't have any extra phone account for testing, only my personal.
situchan commentedon May 26, 2023
@mallenexpensify this bug is not specific to phone account. Reproducible even for emails
melvin-bot commentedon May 26, 2023
Triggered auto assignment to @yuwenmemon (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.mallenexpensify commentedon May 26, 2023
Confirmed bug, was only able to get an error when used a phone number though, not email.
@yuwenmemon internal or external?
36 remaining items
kbecciv commentedon Jul 12, 2023
Hello @mallenexpensify Checking, update you shortly
kbecciv commentedon Jul 12, 2023
App is crashed after create a task on build 1.3.39.5
web_crash.1.mp4
mallenexpensify commentedon Jul 14, 2023
I tried to reproduce and wasn't able to, it worked as expected when I used 6309177596, the one you used above @kbecciv . I ran into issues when I tried to use my personal number, I think it's because it used to be a secondary login for my main account.
mallenexpensify commentedon Jul 17, 2023
Checking on what the current process is for issues that can't be reproduced https://stackoverflowteams.com/c/expensify/questions/16989
yuwenmemon commentedon Jul 20, 2023
I can't reproduce either - I'm just going to close this out.
melvin-bot commentedon Jul 20, 2023
@yuwenmemon @mallenexpensify Be sure to fill out the Contact List!