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

[HOLD for payment 2024-02-26] [$500] Chat - "Hidden" is not shown on the header of avatar for "Hidden" contact #35514

Closed
6 tasks done
kbecciv opened this issue Jan 31, 2024 · 30 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Jan 31, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v1.4.34-0
Reproducible in staging?: y
Reproducible in production?: y
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Open 1:1 DM with Hidden user (yonghongkok2+03011@gmail.com
  2. Click on the chat header.
  3. Click on the avatar.

Expected Result:

The header shows "Hidden"

Actual Result:

The header is blank and missing "Hidden"

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6362814_1706731188196.bandicam_2024-02-01_02-48-30-736.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010dd17add55a87ae6
  • Upwork Job ID: 1752801163354193920
  • Last Price Increase: 2024-01-31
  • Automatic offers:
    • mollfpr | Reviewer | 0
    • ZhenjaHorbach | Contributor | 0
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 31, 2024
Copy link

melvin-bot bot commented Jan 31, 2024

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

@melvin-bot melvin-bot bot changed the title Chat - "Hidden" is not shown on the header of avatar for "Hidden" contact [$500] Chat - "Hidden" is not shown on the header of avatar for "Hidden" contact Jan 31, 2024
Copy link

melvin-bot bot commented Jan 31, 2024

Job added to Upwork: https://www.upwork.com/jobs/~010dd17add55a87ae6

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 31, 2024
Copy link

melvin-bot bot commented Jan 31, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Jan 31, 2024

We think that this bug might be related to #vip-vsb
CC @quinthar

@allgandalf
Copy link
Contributor

allgandalf commented Jan 31, 2024

Proposal

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

Chat - "Hidden" is not shown on the header of avatar for "Hidden" contact

What is the root cause of that problem?

We have a condition here such that we will display empty string if we don't get user name.

headerTitle={personalDetail?.displayName ?? ''}

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

Just remove the empty string and put hidden value as a alternative if we don't get user email

What alternative solutions did you explore? (Optional)

NA

@Tony-MK
Copy link
Contributor

Tony-MK commented Jan 31, 2024

Proposal

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

Chat - "Hidden" is not shown on the header of avatar for "Hidden" contact

What is the root cause of that problem?

In the ReportAvatar component, we do not use hidden but just an empty string if the personalDetail.displayName is not available.

<AttachmentModal
headerTitle={personalDetail?.displayName ?? ''}

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

Instead of falling back on an empty string, we change to 'common.hidden'.

For example:

<AttachmentModal
    headerTitle={personalDetail?.displayName ?? translate('common.hidden')}
    ...

For best standards, we should use the useLocalize hook to translate 'common.hidden'.

const {translate} = useLocalize();

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Jan 31, 2024

Proposal

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

Chat - "Hidden" is not shown on the header of avatar for "Hidden" contact

What is the root cause of that problem?

The main problem with this issue is that when we don't have displayName we show empty string

headerTitle={personalDetail?.displayName ?? ''}

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

To fix this issue we can use logic from the ProfilePage and use PersonalDetailsUtils.getDisplayNameOrDefault

const displayName = PersonalDetailsUtils.getDisplayNameOrDefault(details);

And then pass result this function in headerTitle

I think this is the best option
Because we will maintain consistency between screens (Including for displaying Hidden)

What alternative solutions did you explore? (Optional)

NA

@Tony-MK
Copy link
Contributor

Tony-MK commented Jan 31, 2024

@RohanSasne, I noticed you changed your Prospal after I posted mine.

@allgandalf
Copy link
Contributor

hey @Tony-MK, thanks for pointing out , i was updating my proposal while you posted yours, there is two minute delay, i assure you i haven't taken any inspiration from your proposal to write mine :)

@mollfpr
Copy link
Contributor

mollfpr commented Feb 1, 2024

Thank you guys for the proposals! The proposal from @ZhenjaHorbach looks the best for the fix in this issue. I agree to use getDisplayNameOrDefault to show the modal title.

🎀 👀 🎀 C+ reviewed!

Copy link

melvin-bot bot commented Feb 1, 2024

Triggered auto assignment to @tylerkaraszewski, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot added the Overdue label Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

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

@mollfpr
Copy link
Contributor

mollfpr commented Feb 5, 2024

Friendly bump @tylerkaraszewski

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 5, 2024
Copy link

melvin-bot bot commented Feb 9, 2024

@tylerkaraszewski, @mollfpr, @miljakljajic Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 9, 2024
Copy link

melvin-bot bot commented Feb 9, 2024

📣 @mollfpr 🎉 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

Copy link

melvin-bot bot commented Feb 9, 2024

📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot removed the Overdue label Feb 9, 2024
@ZhenjaHorbach
Copy link
Contributor

📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻 Keep in mind: Code of Conduct | Contributing 📖

PR will be ready on weekend

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 10, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 19, 2024
@melvin-bot melvin-bot bot changed the title [$500] Chat - "Hidden" is not shown on the header of avatar for "Hidden" contact [HOLD for payment 2024-02-26] [$500] Chat - "Hidden" is not shown on the header of avatar for "Hidden" contact Feb 19, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Feb 19, 2024

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

If no regressions arise, payment will be issued on 2024-02-26. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Feb 19, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
  • [@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@mollfpr] Determine if we should create a regression test for this bug.
  • [@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@miljakljajic] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@mollfpr
Copy link
Contributor

mollfpr commented Feb 27, 2024

[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:

#28999

[@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:

https://github.com/Expensify/App/pull/28999/files#r1503614748

[@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:

The regression step should be enough.

[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

  1. Open 1:1 DM with Hidden user (yonghongkok2+03011@gmail.com)
  2. Click on the chat header.
  3. Click on the avatar.
  4. Verify that Hiden is displayed on the avatar screen
  5. 👍 or 👎

@mollfpr
Copy link
Contributor

mollfpr commented Feb 27, 2024

@miljakljajic I'll do the manual request in NewDot, could you give the payment summary? Thank you!

@miljakljajic
Copy link
Contributor

@mollfpr is owed 500 USD for their role as reviewer

@miljakljajic
Copy link
Contributor

@ZhenjaHorbach are you paid in upwork? I can't access the offer via that link, it throws up an error. I can send another?

@ZhenjaHorbach
Copy link
Contributor

@ZhenjaHorbach are you paid in upwork? I can't access the offer via that link, it throws up an error. I can send another?

Hello)
Strange)
This is my first time like this
But I think yes, you can resend the offer)

@miljakljajic
Copy link
Contributor

@ZhenjaHorbach what's your name in upwork? I tried to search for you but it isn't coming up

@ZhenjaHorbach
Copy link
Contributor

@ZhenjaHorbach what's your name in upwork? I tried to search for you but it isn't coming up

Here is the link
https://www.upwork.com/freelancers/~01e2ef043508da9f2c

@miljakljajic
Copy link
Contributor

Sent - let me know when you accept

@miljakljajic
Copy link
Contributor

Paid!

@JmillsExpensify
Copy link

$500 approved for @mollfpr based on summary above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants