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-15] [$500] Task - Task assigned to "Hidden" does not show "Hidden" as assignee in main chat #34052

Closed
6 tasks done
lanitochka17 opened this issue Jan 5, 2024 · 33 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 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Jan 5, 2024

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.22-0
Reproducible in staging?: Y
Reproducible in production?: N
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:

Issue found when executing PR #29730

Action Performed:

  1. Go to FAB > Assign task
  2. Enter title > Next
  3. Click Assignee
  4. Enter a valid email with no display name that is registered on ND but has no chat history with the user
    (use [email protected]
    )
  5. Create the task

Expected Result:

The task preview in the main chat will show "Hidden" as the assignee

Actual Result:

The task preview in the main chat does not show "Hidden" as the assignee

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

Bug6333411_1704479061341.20240105_195946__1_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e3fabdb897c1d05d
  • Upwork Job ID: 1744829796306513920
  • Last Price Increase: 2024-01-16
  • Automatic offers:
    • hoangzinh | Contributor | 28116810
    • dukenv0307 | Contributor | 28117853
Issue OwnerCurrent Issue Owner: @stephanieelliott
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Jan 5, 2024
Copy link
Contributor

github-actions bot commented Jan 5, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Jan 5, 2024

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

@unidev727
Copy link
Contributor

unidev727 commented Jan 5, 2024

Proposal

from: @unicorndev-727

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

Task - Task assigned to "Hidden" does not show "Hidden" as assignee in main chat

What is the root cause of that problem?

This is not deploy blocker, I think (I can't find relevant PR for this issue in Deploy checklist).
The root cause is that we didn't use getDisplayNameForParticipant here.

const taskAssignee = assigneeDisplayName || LocalePhoneNumber.formatPhoneNumber(assigneeLogin);

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

We should use getDisplayNameForParticipant.

const taskAssignee = ReportUtils.getDisplayNameForParticipant(taskAssigneeAccountID);

What alternative solutions did you explore?

N/A

@mvtglobally
Copy link

Still repro on build 1.4.22-2

Recording.898.mp4

@thienlnam thienlnam removed the DeployBlockerCash This issue or pull request should block deployment label Jan 8, 2024
@melvin-bot melvin-bot bot added the Overdue label Jan 8, 2024
@thienlnam thienlnam added Daily KSv2 and removed Hourly KSv2 Overdue labels Jan 8, 2024
@thienlnam
Copy link
Contributor

Don't think this needs to be a blocker, but we should fix this

@dukenv0307
Copy link
Contributor

dukenv0307 commented Jan 8, 2024

Proposal

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

The task preview in the main chat does not show "Hidden" as the assignee

What is the root cause of that problem?

When we create a task with a new user, taskAssignee is empty because this user doesn't set a display name and BE doesn't return the login field of the new user.

const taskAssignee = assigneeDisplayName || LocalePhoneNumber.formatPhoneNumber(assigneeLogin);

And then we don't show the mention here.

taskAssignee && taskAssigneeAccountID !== 0

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

Because MentionUserRenderer already covers the Hidden case here

displayNameOrLogin = LocalePhoneNumber.formatPhoneNumber(lodashGet(user, 'login', '')) || lodashGet(user, 'displayName', '') || translate('common.hidden');

I think we can remove taskAssignee in TaskPreview.

const taskAssignee = assigneeDisplayName || LocalePhoneNumber.formatPhoneNumber(assigneeLogin);

taskAssignee && taskAssigneeAccountID !== 0

And add the check taskAssigneeAccountID !== 0 to check the task has assignee or not

OPTIONAL: In MenuItem we prioritize showing the display name but in MentionUserRenderer we prioritize showing the login filed. So in MentionUserRenderer we can prioritize showing the display name to be consistent with MenuItem

displayNameOrLogin = LocalePhoneNumber.formatPhoneNumber(lodashGet(user, 'login', '')) || lodashGet(user, 'displayName', '') || translate('common.hidden');

What alternative solutions did you explore? (Optional)

NA

@grgia grgia added the Bug Something is broken. Auto assigns a BugZero manager. label Jan 9, 2024
Copy link

melvin-bot bot commented Jan 9, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Jan 9, 2024
@grgia grgia added the External Added to denote the issue can be worked on by a contributor label Jan 9, 2024
@melvin-bot melvin-bot bot changed the title Task - Task assigned to "Hidden" does not show "Hidden" as assignee in main chat [$500] Task - Task assigned to "Hidden" does not show "Hidden" as assignee in main chat Jan 9, 2024
Copy link

melvin-bot bot commented Jan 9, 2024

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

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

melvin-bot bot commented Jan 9, 2024

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

@stephanieelliott
Copy link
Contributor

Hey @parasharrajat a few proposals here for you to review!

@melvin-bot melvin-bot bot added the Overdue label Jan 13, 2024
@hoangzinh
Copy link
Contributor

oh you're right. @dukenv0307's proposal looks good to me. It has the correct root cause and its solution looks good, it helps clean up redundant code.

Link to proposal #34052 (comment)

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Jan 23, 2024

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

@tgolen
Copy link
Contributor

tgolen commented Jan 23, 2024

I like the proposal from @dukenv0307 also, including the optional cleanup to make the display logic consistent.

Copy link

melvin-bot bot commented Jan 23, 2024

📣 @dukenv0307 🎉 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 Jan 24, 2024
@stephanieelliott
Copy link
Contributor

PR is still under review, looks like @hoangzinh is working through the checklist

@stephanieelliott
Copy link
Contributor

PR is still under active, seems like we are wrapping up though!

@stephanieelliott
Copy link
Contributor

PR is on staging!

@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 8, 2024
@melvin-bot melvin-bot bot changed the title [$500] Task - Task assigned to "Hidden" does not show "Hidden" as assignee in main chat [HOLD for payment 2024-02-15] [$500] Task - Task assigned to "Hidden" does not show "Hidden" as assignee in main chat Feb 8, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 8, 2024
Copy link

melvin-bot bot commented Feb 8, 2024

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

Copy link

melvin-bot bot commented Feb 8, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.38-6 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-15. 🎊

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

Copy link

melvin-bot bot commented Feb 8, 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:

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

Copy link

melvin-bot bot commented Feb 12, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Feb 15, 2024
@stephanieelliott
Copy link
Contributor

^^ was tested and found to be NAB!

@melvin-bot melvin-bot bot removed the Overdue label Feb 16, 2024
@stephanieelliott
Copy link
Contributor

Summarizing payment on this issue:

Upwork job is here: https://www.upwork.com/jobs/~1737876297360310272"

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants