-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$500] Task – Assignee with the custom name is shown as email in a task name #36443
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01a831cc646a8c8645 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
Triggered auto assignment to @adelekennedy ( |
We think that this bug might be related to #vip-vsb |
ProposalPlease re-state the problem that we are trying to solve in this issue.Assignee with the custom name is shown as email in a task name What is the root cause of that problem?We display the email instead of the user name:
What changes do you think we should make in order to solve the problem?Get personal details: const personalDetails = usePersonalDetails() || CONST.EMPTY_OBJECT;
const assigneeLogin = personalDetails[taskAssigneeAccountID]?.login ?? '';
const assigneeDisplayName = personalDetails[taskAssigneeAccountID]?.displayName ?? '';
const taskAssignee = assigneeDisplayName || LocalePhoneNumber.formatPhoneNumber(assigneeLogin); change the email to name assignment: <mention-user accountid="${taskAssigneeAccountID}">@${taskAssignee}</mention-user> What alternative solutions did you explore? (Optional)N/A |
Regression? |
Thanks @jeremy-croff, that does look like a possible regression. Checking with the PR author. |
Looks like it's actually a regression from #35462 as the order was changed here. @mollfpr Can you check? |
@jjcoffee Yeah, I think you are right. It should be prioritizing the |
No worries, those are hard to catch! @ruben-rebelo As you worked on the PR, are you able to raise a quick fix for this regression? |
Hey @ruben-rebelo @mollfpr just another bump on this – we need the order to be fixed for another task as well 🙂 |
@adelekennedy This is a regression from #35462 but this is blocking other issues being fixed, so do you reckon it's worth just progressing with this as a normal issue, rather than waiting on @ruben-rebelo to raise a fix? |
ProposalPlease re-state the problem that we are trying to solve in this issue.The login in mentions takes priority over the display name. What is the root cause of that problem?This is a regression from #35462, where the order of preference was changed:
What changes do you think we should make in order to solve the problem?We need to change the order of the display name calculation back to how it was pre-migration: displayNameOrLogin = user?.displayName || LocalePhoneNumber.formatPhoneNumber(user?.login ?? '') || translate('common.hidden'); What alternative solutions did you explore? (Optional)To make it more handy, we can reuse the displayNameOrLogin = PersonalDetailsUtils.getDisplayNameOrDefault(user, LocalePhoneNumber.formatPhoneNumber(user?.login ?? '')); App/src/libs/PersonalDetailsUtils.ts Lines 27 to 31 in 3ce5246
|
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Happy to go with @paultsimura's proposal here in order to get this unblocked, as it doesn't seem that (regression PR author) @ruben-rebelo is working on a fix. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @techievivek, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @paultsimura 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Thanks. The PR is ready for review: #36998 |
SORRY - late payment from me Payouts due: Contributor: $500 @paultsimura (Upwork) Upwork job is here. |
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 @jjcoffee:
|
Regression Test Proposal
Do we agree 👍 or 👎 |
makes sense to me - I'll wait if @techievivek has any more input |
This issue has not been updated in over 15 days. @paultsimura, @jjcoffee, @techievivek, @adelekennedy eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@adelekennedy I think this can be closed? |
Sorry I missed the ping, I have created a GH to add the regression test here: https://github.com/Expensify/Expensify/issues/385997, I am guessing payment is done here so we can close it out. |
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: v1.4.41-2
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation:
Action Performed:
Expected Result:
The assignee with the custom name is displayed in the assignee field with custom name
Actual Result:
Assignee with the custom name is shown as email in a task name
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6378618_1707856950328.Assignee_with_the_custom_name_is_shown_as_email_in_a_task_name.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: