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

[$1000] Assignee- Error appears when adding phone number account as Assignee #19475

Closed
6 tasks done
kbecciv opened this issue May 23, 2023 · 15 comments
Closed
6 tasks done
Assignees
Labels
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 Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@kbecciv
Copy link

kbecciv commented May 23, 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!


Issue found when executing PR #19335

Action Performed:

  1. Login with any Expensifail account
  2. Verify that this account has at least one contact that is an account created by phone number
  3. Go to FAB -> Assign Task -> Enter a title and description and navigate to next page
  4. Click on the "Assignee" and enter the correct phone number
  5. Verify that the account with phone number is added as assignee and no error appears

Expected Result:

Error should not appeared when adding phone number account as Assignee.

Actual Result:

Error appears when adding phone number account as Assignee

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?: yes

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

https://platform.applause.com/services/links/v1/external/ec7888efd5da4a5ab53d25c7ac2435c076a953e6a5b3b7260677f32ae9b50a8c

https://platform.applause.com/services/links/v1/external/4f84d421bc5f87d23cd8f1d82bc6c49b2caaa6215541f7497a2e25ff24352cf0

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01388ffc6e533f7db8
  • Upwork Job ID: 1661092904985145344
  • Last Price Increase: 2023-05-23
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 23, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 23, 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

@conorpendergrast
Copy link
Contributor

I reproduced this, using my own phone number. Interestingly, it didn't work either when I selected the SMS-based user either

image image

@conorpendergrast conorpendergrast added Engineering Internal Requires API changes or must be handled by Expensify staff labels May 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 23, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 23, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01388ffc6e533f7db8

@melvin-bot
Copy link

melvin-bot bot commented May 23, 2023

Triggered auto assignment to Contributor Plus for review of internal employee PR - @sobitneupane (Internal)

@conorpendergrast
Copy link
Contributor

@yuwenmemon Can you give a quick look and see if you think this should be internal or external? I think it should be internal, but have been wrong before

@yuwenmemon
Copy link
Contributor

It looks external. Also, cc @cdanwards since this seems to come from your pr here: #17992

@conorpendergrast
Copy link
Contributor

I live to be wrong. Thanks, I'll switch it to External

@conorpendergrast conorpendergrast added External Added to denote the issue can be worked on by a contributor and removed Internal Requires API changes or must be handled by Expensify staff labels May 23, 2023
@melvin-bot melvin-bot bot changed the title Assignee- Error appears when adding phone number account as Assignee [$1000] Assignee- Error appears when adding phone number account as Assignee May 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 23, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 23, 2023

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

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

melvin-bot bot commented May 23, 2023

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

@hoangzinh
Copy link
Contributor

hoangzinh commented May 24, 2023

Proposal

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

Assignee- Error appears when adding phone number account as Assignee

What is the root cause of that problem?

The error is come from those LOC

const assigneeDetails = lodashGet(props.personalDetails, props.task.assignee);
if (!assigneeDetails) {
setSubmitError(true);
return setErrorMessage(props.translate('newTaskPage.assigneeError'));
}

Whenever we assign an assignee, we will look into props.personalDetails to get assignee details. If we haven't chat with this assignee before, we won't find it in props.personalDetails store.

We will fill the assignee details later when openReport API is finished here in the action to setAssigneeValue
Screenshot 2023-05-24 at 08 06 06
Then the error will be disappear.

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

I think we can optimistic add assignee details to personalDetails in Onyx. So we can have assignee data to show in the Task page. It also help to assign task for a new assignee when offline.

@dukenv0307
Copy link
Contributor

It's duplicate with issue #19203 and out of scope of PR #19335

@conorpendergrast
Copy link
Contributor

Looks like it's also duplicate of this issue #18649. Closing this out as a result!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

6 participants