-
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
[HOLD for payment 2023-04-24] Show message sender name in the LHN #15711
Comments
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01650d4b35eb3af650 |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @parasharrajat ( |
Hi, I'm Ana from Callstack and I would like to work on this issue |
📣 @BeeMargarida! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
@BeeMargarida Please do post a proposal on how will you solve this issue before jumping to the PR. This helps us understand your solution better. Thanks. |
Investigating this, since running locally it's working as intended but in staging the problem can be replicated |
ProposalPlease re-state the problem that we are trying to solve in this issue.In room chats there's a possibility that the preview of the last message appears without the user's name. This behavior only happens when that user details are not currently saved as the details the user has access to (in Onyx). What is the root cause of that problem?If the last message's user details are not available in What changes do you think we should make in order to solve the problem?The line of code that gets the value of the last user detail is the one below, and after that the last message text is built.
In addition to this check, we could also utilize the information in the A possible solution would be
What alternative solutions did you explore? (Optional)-- |
Hmm, analyzing... |
Ok, I can see that we have a similar code in App/src/libs/OptionsListUtils.js Line 333 in b08bf48
Did we check if the issue exists on other pages as well? Mostly Search Page. Doing this solution will not solve the issue everywhere.
|
For reproduction,
I think only members that have not interacted with me earlier will see this issue. BCZ for others, Onyx should already have personal details for me. Anyways, which room should it be? |
There's differences between the code in Should we apply this logic in the App/src/libs/OptionsListUtils.js Lines 107 to 113 in b08bf48
I have not been able to reproduce the behaviour mentioned in the issue this in chats. Every time I invite some account I've not interacted with to a chat with other accounts in the same situation, the other accounts already show the display name of this new account. I can see in the logs that they receive an update for personal details when the user is invited. |
Hmm, Thanks for the clarification. I think we will have to wait to confirm that. Generally, I will go with existing behavior and implement it everywhere but having There is a case where only email is available for that user so we have to use that only as displayName. You can observe that for new chats. The chat title is the email of another user. But, I agree with the slack discussion that it seems better to fetch the displayName from the last report action when available. Because the user's displayName is not their email thus fallback to email is not the best option here.
That's what I imagined. #15711 (comment) |
Please let me know the resolution to this confirmation.
I've been adding accounts to a workspace and then writing a message in the #announce channel from the new account. However, all other accounts that have not interacted with the new account previously see the display name correctly, so I'm not sure this is 100% the reproduction edge case. |
I think when you add them to the policy, you are the admin of the policy so you will get a DM created with all the new members you add. So you might have to try to log out of the admin account and log in to one of those members who dont have DM with the other workspace members and then observe if the name is in the LHN of the announce room |
You're right, I needed to create a new workspace and add two members that did not have DM between them. With this I can replicate the behaviour. However, if I then add another one to the group after (that the others haven't DMed with), the problematic behaviour stops and the display names appear for all of them. |
It might be that the personal details got loaded in the mean time. Maybe we could then try do a fallback kind of behaviour where in case we cannot get the name from the personalDetails we can look at the reportAction actor name. Does that make sense? Is there any other concerns left? Also feel free to create a new thread in open-source channel to maybe speed up the discussion :) |
I think we can go ahead with proposal @BeeMargarida. It is safe to say that Let me quickly check a few things. |
Let me know once you confirm |
PR being reviewed |
@sonialiap, @parasharrajat, @BeeMargarida, @mountiny Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Merged |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.0-2 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 2023-04-24. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
@parasharrajat are there any regression tests to add here? This was just a follow up to previous PR so no need for the bugs convo |
Regression test steps
Note: It might not work for the reports where messages are not loaded yet. Do you agree 👍 or 👎 ? |
I think that works, thanks @parasharrajat |
@sonialiap I think this is all good ot be paid out |
@parasharrajat can you please accept the job and reply here once you have? |
@mallenexpensify Done. |
Bump @mallenexpensify |
@parasharrajat paid $1000 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Break down in numbered steps
Expected Result:
Describe what you think should've happened
Actual Result:
The name of the person is missing
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number:
Reproducible in staging?:
Reproducible in production?:
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
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1678200268817529
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: