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

Request money - Request view header is missing details #23269

Closed
3 of 6 tasks
lanitochka17 opened this issue Jul 20, 2023 · 18 comments
Closed
3 of 6 tasks

Request money - Request view header is missing details #23269

lanitochka17 opened this issue Jul 20, 2023 · 18 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 20, 2023

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


Issue found when executing PR #22562

Action Performed:

  1. Open staging.new.expensify.com
  2. Request IOU from user B
  3. Open request view
  4. Observe request header

Expected Result:

Header details to appear without missing data

Actual Result:

No header details; only username and avatar are displayed

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.43.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

4.mov

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/~01b1218ae0575ebba7
  • Upwork Job ID: 1683452239429439488
  • Last Price Increase: 2023-07-24
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 20, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 20, 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

@BhuvaneshPatil
Copy link
Contributor

bumping @neil-marcellini - please have a look if changes for #23102 causing this.

@trjExpensify
Copy link
Contributor

Hey @lanitochka17, the video in the OP doesn't match the steps listed. I can repro the bug though:

image

CC: @grgia as well, it seems like something undid the work in your PR :)

@trjExpensify
Copy link
Contributor

@neil-marcellini, do we need to revert #23102 or what are the next steps here?

@melvin-bot melvin-bot bot removed the Overdue label Jul 24, 2023
@grgia
Copy link
Contributor

grgia commented Jul 24, 2023

checking if this will be fixed by https://github.com/Expensify/App/pull/22467/files

@grgia
Copy link
Contributor

grgia commented Jul 24, 2023

Looks like the expense request avatars did get bonked, I'll fix them in the above PR

@grgia grgia self-assigned this Jul 24, 2023
@grgia grgia added the Internal Requires API changes or must be handled by Expensify staff label Jul 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

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

@grgia
Copy link
Contributor

grgia commented Jul 24, 2023

I'm not sure what caused the header regression, still looking

@neil-marcellini
Copy link
Contributor

Thanks for taking this on @grgia! Did #23102 cause the regression or something else?

@BhuvaneshPatil
Copy link
Contributor

I have tried debugging this and found the cause for this issue, I am submitting the proposal for the same. Let me know your thoughts

@BhuvaneshPatil
Copy link
Contributor

BhuvaneshPatil commented Jul 24, 2023

Proposal

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

Request View header is missing details.

What is the root cause of that problem?

We try to get the text below the name (in blue color) in AvatarWithDisplayName.

Screenshot 2023-07-25 at 1 00 35 AM

using ReportUtils.getParentNavigationSubtitle(), in case of Request Money it's IOU report -
it falls into this condition -

https://github.com/BhuvaneshPatil/App/blob/b7d17e0fd33b83e9fbd45146b6123b6323ece79e/src/libs/ReportUtils.js#L1193-L1197

As mentioned in the comment above function -

https://github.com/BhuvaneshPatil/App/blob/b7d17e0fd33b83e9fbd45146b6123b6323ece79e/src/libs/ReportUtils.js#L1182C1-L1183C97

As the final report is IOU, we won't recursively calculate. This we return displayName

https://github.com/BhuvaneshPatil/App/blob/b7d17e0fd33b83e9fbd45146b6123b6323ece79e/src/libs/ReportUtils.js#L1194-L1196

This display name is empty. See below screenshot -

Screenshot 2023-07-25 at 1 06 58 AM

I have tried testing this for multiple IOU reports, still the same.

Thus it doesn't the text in AvatarWithDisplayNames
https://github.com/BhuvaneshPatil/App/blob/b7d17e0fd33b83e9fbd45146b6123b6323ece79e/src/components/AvatarWithDisplayName.js#L93-L108

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

We shall change -

rootReportName: lodashGet(report, 'displayName', ''),

to

rootReportName: lodashGet(report, 'displayName', '') || getReportName(report),

This will make sure that we take value from getReportName(report) when displayName is empty.

result -
Screenshot 2023-07-25 at 1 14 00 AM

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Overdue label Jul 26, 2023
@trjExpensify
Copy link
Contributor

@grgia do we need to add the reviewing label here because of the linked PR: #23269 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Jul 26, 2023
@grgia grgia added the Reviewing Has a PR in review label Jul 27, 2023
@grgia
Copy link
Contributor

grgia commented Jul 27, 2023

Added reviewing label

@BhuvaneshPatil
Copy link
Contributor

Please have a look at this. I understand that this is internal but It may give some direction for solution.

@melvin-bot
Copy link

melvin-bot bot commented Aug 3, 2023

@trjExpensify, @grgia, @0xmiroslav Whoops! This issue is 2 days overdue. Let's get this updated quick!

@trjExpensify
Copy link
Contributor

This was deployed a few days ago. The linked PR wasn't reviewed by C+ and this bug was reported by Applause, so I'm closing it out!

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 Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

6 participants