App icon indicating copy to clipboard operation
App copied to clipboard

[$250] Chat - Contacts with no display name appear on top after searching for member during IOU flow

Open lanitochka17 opened this issue 10 months ago • 19 comments

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


Version Number: 1.4.60-5 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A* Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com and log in with Expensifail account that has many contacts
  2. Go to FAB > Request money > Manual
  3. Enter amount
  4. Search for a member using search field > Select the member. (Important step)
  5. On confirmation page, close the RHP
  6. Go to FAB > Start chat

Expected Result:

The contact list in Step 6 will have the same list as Step 4

Actual Result:

There are contacts with blank display name on top of the list

Workaround:

Unknown

Platforms:

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

  • [x] Android: Native
  • [x] Android: mWeb Chrome
  • [x] iOS: Native
  • [x] iOS: mWeb Safari
  • [x] MacOS: Chrome / Safari
  • [x] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/086224bb-2312-40e7-b52d-fbcdc8113b83

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d4e2c2f15597586e
  • Upwork Job ID: 1776072508499795968
  • Last Price Increase: 2024-04-05
  • Automatic offers:
    • rayane-djouah | Reviewer | 0

lanitochka17 avatar Apr 04 '24 19:04 lanitochka17

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

melvin-bot[bot] avatar Apr 04 '24 19:04 melvin-bot[bot]

@jliexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

lanitochka17 avatar Apr 04 '24 19:04 lanitochka17

We think that this bug might be related to #vip-vsp

lanitochka17 avatar Apr 04 '24 19:04 lanitochka17

This should be in #collect as it deals with Workspace Requests.

The actual bug itself is the fact that some emails show up without names:

image

Whereas they should always show up with bold names, even if it's just an email:

image

jliexpensify avatar Apr 05 '24 02:04 jliexpensify

Job added to Upwork: https://www.upwork.com/jobs/~01d4e2c2f15597586e

melvin-bot[bot] avatar Apr 05 '24 02:04 melvin-bot[bot]

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

melvin-bot[bot] avatar Apr 05 '24 02:04 melvin-bot[bot]

Weird. Anyone got an RCA on which PR has introduced this? I would think it must be a problem with the OptionSelector everywhere we use it.

trjExpensify avatar Apr 05 '24 12:04 trjExpensify

Hi, I'm Viktoryia from Callstack - expert contributor group - and I would like to work on this issue.

VickyStash avatar Apr 05 '24 13:04 VickyStash

Done!

trjExpensify avatar Apr 05 '24 14:04 trjExpensify

📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link Upwork job

melvin-bot[bot] avatar Apr 05 '24 14:04 melvin-bot[bot]

Proposal

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

Contacts with no display name appear on top of the list after searching for member during IOU flow.

What is the root cause of that problem?

The root problem seems to be in READ_COMMANDS.SEARCH_FOR_REPORTS api call inside searchForReports function. After mentioned api request is called displayName for some users turns into ' ', which make them to be shown at the top of the contacts list with empty text.

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

The SearchForReports API needs to be fixed in order to retrieve the correct data. Specifically, displayName field of the user’s personal data must always contain its display name instead of ' '.

Screenshots / recordings

Video recording of the search with/without READ_COMMANDS.SEARCH_FOR_REPORTS api call commented:

https://github.com/Expensify/App/assets/23176449/da1c4989-ddb6-411b-bf14-8484634d7abf

Screenshots of user personal details before/after calling mentioned API call: image (3) image (4)

VickyStash avatar Apr 05 '24 15:04 VickyStash

Thank you for the proposal @VickyStash!

@jliexpensify, please remove the External label and add the Internal and Engineering labels. This is a back-end bug that needs to be fixed by an internal engineer.

rayane-djouah avatar Apr 07 '24 18:04 rayane-djouah

Auto-assigning issues to engineers is no longer supported. If you think this issue should receive engineering attention, please raise it in #whatsnext.

melvin-bot[bot] avatar Apr 07 '24 21:04 melvin-bot[bot]

Current assignee @rayane-djouah is eligible for the Internal assigner, not assigning anyone new.

melvin-bot[bot] avatar Apr 07 '24 21:04 melvin-bot[bot]

Done, cheers!

jliexpensify avatar Apr 07 '24 21:04 jliexpensify

unassigning myself as C+ review is not needed here. this need to be fixed from backend.

rayane-djouah avatar Apr 09 '24 15:04 rayane-djouah

@jliexpensify I think this should be a hot pick issue; you can change it back to polish if you disagree.

rayane-djouah avatar Apr 09 '24 19:04 rayane-djouah

Thank you @rayane-djouah!

jliexpensify avatar Apr 10 '24 01:04 jliexpensify

Not overdue

jliexpensify avatar Apr 13 '24 00:04 jliexpensify

Hi @VickyStash - any ETA's you can share? Thanks!

jliexpensify avatar Apr 16 '24 04:04 jliexpensify

@jliexpensify Since it seems to be a back-end issue, it should be fixed internally. So I guess an internal engineer should be assigned. Thank you!

VickyStash avatar Apr 16 '24 07:04 VickyStash

Got it, so did you want to continue to be assigned this issue then @VickyStash?

jliexpensify avatar Apr 16 '24 10:04 jliexpensify

@jliexpensify No need I believe, so I've unassigned myself

VickyStash avatar Apr 16 '24 10:04 VickyStash

@jliexpensify this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

melvin-bot[bot] avatar Apr 18 '24 18:04 melvin-bot[bot]

Not overdue, waiting on an engineer.

EDIT: Can still repro on v63-5

jliexpensify avatar Apr 19 '24 01:04 jliexpensify

@jliexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Apr 22 '24 18:04 melvin-bot[bot]

Not overdue

jliexpensify avatar Apr 22 '24 23:04 jliexpensify

@chiragsalian, @jliexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar May 02 '24 18:05 melvin-bot[bot]

Not overdue!

jliexpensify avatar May 03 '24 04:05 jliexpensify

oh odd, the code for this went live 2 weeks back. Closing the issue since it should be resolved now.

chiragsalian avatar May 09 '24 22:05 chiragsalian