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-07-24] [$250] Login – Expensify changes to Hidden in LHN if login with new Gmail account and reload page #44833

Closed
4 of 6 tasks
izarutskaya opened this issue Jul 4, 2024 · 19 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

@izarutskaya
Copy link

izarutskaya commented Jul 4, 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: v9.0.4-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: https://expensify.testrail.io/index.php?/tests/view/4694015
Email or phone of affected tester (no customers): ponikarchuks+24724@gmail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in with a new Gmail account
  3. Choose Track and Budget Expenses
  4. Enter your name in Onboarding modal
  5. Verify Expensify and Concierge chats present in LHN
  6. Reload page

Expected Result:

Expensify and Concierge chats present in LHN

Actual Result:

Hidden is name of Expensify and user name/Hidden as a Concierge in LHN, when login with new Gmail account and reload page

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

Bug6532713_1720069292265.Hidden_is_name_of_Expensify_and_user_name_as_a_Concierge.mp4
2024-07-08_13-03-19.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01ac469d1b3213174d
  • Upwork Job ID: 1810389985506651244
  • Last Price Increase: 2024-07-08
  • Automatic offers:
    • ahmedGaber93 | Reviewer | 103078265
    • dominictb | Contributor | 103078266
Issue OwnerCurrent Issue Owner: @Christinadobrzyn
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 4, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@dominictb
Copy link
Contributor

dominictb commented Jul 4, 2024

Proposal

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

Hidden is name of Expensify and user name/Hidden as a Concierge in LHN, when login with new Gmail account and reload page

What is the root cause of that problem?

In

if (report?.participantAccountIDs) {

we just check report?.participantAccountIDs, to start migrating Participants.

After login, participantAccountIDs is empty ([]) so there's nothing to migrate. but it still pass the above check

-> the valid accountID in participants is set to null

participants[accountID] = null;

Logic to display Hidden based on participants

We're showing the display name based on option.text in

const fullTitle = isGroupChat ? ReportUtils.getGroupChatName(undefined, false, report) : optionItem.text;

option.text = ReportUtils.getReportName

const reportName = ReportUtils.getReportName(report, policy);
result.text = reportName;

In the detail implementation of getReportName, we get the reportName from participantsWithoutCurrentUser

return participantsWithoutCurrentUser.map((accountID) => getDisplayNameForParticipant(accountID, isMultipleParticipantReport)).join(', ');

In this case participantsWithoutCurrentUser is empty -> Hidden is shown

const title = fullTitle || translate('common.hidden');

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

We need to add the check for empty list in here

            if (report?.participantAccountIDs && !isEmpty(report?.participantAccountIDs)) {

What alternative solutions did you explore? (Optional)

NA

@melvin-bot melvin-bot bot added the Overdue label Jul 8, 2024
@Christinadobrzyn
Copy link
Contributor

I'm not sure if this can be external - we'll start there.

@melvin-bot melvin-bot bot removed the Overdue label Jul 8, 2024
@Christinadobrzyn Christinadobrzyn added External Added to denote the issue can be worked on by a contributor Overdue labels Jul 8, 2024
@melvin-bot melvin-bot bot changed the title Login – Expensify changes to Hidden in LHN if login with new Gmail account and reload page [$250] Login – Expensify changes to Hidden in LHN if login with new Gmail account and reload page Jul 8, 2024
Copy link

melvin-bot bot commented Jul 8, 2024

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

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

melvin-bot bot commented Jul 8, 2024

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

@ahmedGaber93
Copy link
Contributor

Reviewing today

@ahmedGaber93
Copy link
Contributor

@dominictb Thanks for the proposal.
Your proposal works well, but can you please mention the code follow that display 'Hidden' based on participants with explanation if needed in your root cause?

@dominictb
Copy link
Contributor

@ahmedGaber93 I added the detail explanation in my proposal

@ahmedGaber93
Copy link
Contributor

@dominictb's proposal LGTM!

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Jul 11, 2024

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

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

melvin-bot bot commented Jul 11, 2024

📣 @ahmedGaber93 🎉 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 Jul 11, 2024

📣 @dominictb 🎉 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 added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 13, 2024
@Christinadobrzyn
Copy link
Contributor

working on the PR - #45369

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 17, 2024
@melvin-bot melvin-bot bot changed the title [$250] Login – Expensify changes to Hidden in LHN if login with new Gmail account and reload page [HOLD for payment 2024-07-24] [$250] Login – Expensify changes to Hidden in LHN if login with new Gmail account and reload page Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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-07-24. 🎊

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

Copy link

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

  • [@ahmedGaber93] The PR that introduced the bug has been identified. Link to the PR:
  • [@ahmedGaber93] 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:
  • [@ahmedGaber93] 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:
  • [@ahmedGaber93] Determine if we should create a regression test for this bug.
  • [@ahmedGaber93] 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.
  • [@Christinadobrzyn] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: https://github.com/Expensify/Expensify/issues/414726

@ahmedGaber93
Copy link
Contributor

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:

Regression Test Proposal

  1. Go to NewDot
  2. Log in with a new Gmail account
  3. Choose Track and Budget Expenses
  4. Enter your name in Onboarding modal
  5. Verify Expensify and Concierge chats present in LHN
  6. Reload page
  7. Verify that: Expensify and Concierge chats present in LHN with correct name instead of Hidden

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 23, 2024
@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Jul 23, 2024

Regression test - https://github.com/Expensify/Expensify/issues/414726

Payouts due on payment day:

@Christinadobrzyn
Copy link
Contributor

Payment day - payment summary here - #44833 (comment)

Closing this as complete!

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
Archived in project
Development

No branches or pull requests

5 participants