You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$500] Names missing in LHN for a group chat #35537
📣 @pc11000! 📣
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.
Please follow these steps:
Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
@nebiyuelias1 your solution works, about the RCA could we try to find why the onyx data is being inconsistent, sometimes the names are correctly displayed?
@nebiyuelias1 your solution works, about the RCA could we try to find why the onyx data is being inconsistent, sometimes the names are correctly displayed?
I believe the BE sends incomplete data for some reports and the FE would periodically send an OpenReport action for some inconsistent reports. That's why I suggest using a fallback.
@nebiyuelias1 your solution works, about the RCA could we try to find why the onyx data is being inconsistent, sometimes the names are correctly displayed? @getusha This is from the readme:
Activity
melvin-bot commentedon Feb 1, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01a6b3d85f01d11739
[-]Names missing in LHN for a group chat[/-][+][$500] Names missing in LHN for a group chat[/+]melvin-bot commentedon Feb 1, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (
External)melvin-bot commentedon Feb 1, 2024
Triggered auto assignment to @stephanieelliott (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.pc6n commentedon Feb 1, 2024
I do not understand the problem, seems to work for me.
Also in the attached video nothing is being searched?
melvin-bot commentedon Feb 1, 2024
📣 @pc11000! 📣
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.
Please follow these steps:
Format:
pc6n commentedon Feb 1, 2024
Contributor details
Your Expensify account email: pad.christen@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~0142d332960f6aa256
melvin-bot commentedon Feb 1, 2024
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
melvin-bot commentedon Feb 1, 2024
melvin-bot commentedon Feb 1, 2024
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
nebiyuelias1 commentedon Feb 1, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
After creating a chat group, the names of the members are not shown on the search result page.
What is the root cause of that problem?
This is happening because of inconsistent report data inside Onyx. In particular to construct the search result options, the report's
visibleChatMemberAccountIDsfield is accessed in https://github.com/nebiyuelias1/App/blob/aeb8638a46bbc50013e263f037a45c7c3b7af8ad/src/libs/OptionsListUtils.ts#L1441. But this is sometimes empty array and as a result, the names of the members are not shown.What changes do you think we should make in order to solve the problem?
If the visibleChatMemberAccountIDs field is an empty array it's better to use a fallback field:
participantAccountIDslike this:What alternative solutions did you explore? (Optional)
We can directly use
participanetAccountIDsfield all the time if it's possible.getusha commentedon Feb 2, 2024
Trying to reproduce the issue.
mallenexpensify commentedon Feb 3, 2024
Maybe create the group chat, don't comment on it, navigate away, the search in lhn for it?

getusha commentedon Feb 4, 2024
Thanks @mallenexpensify, i'm able to reproduce it.
Reviewing @nebiyuelias1's proposal.
getusha commentedon Feb 4, 2024
@nebiyuelias1 your solution works, about the RCA could we try to find why the onyx data is being inconsistent, sometimes the names are correctly displayed?
nebiyuelias1 commentedon Feb 4, 2024
I believe the BE sends incomplete data for some reports and the FE would periodically send an
OpenReportaction for some inconsistent reports. That's why I suggest using a fallback.nebiyuelias1 commentedon Feb 4, 2024
Tony-MK commentedon Feb 4, 2024
This issue has the same root cause as #35679.
nebiyuelias1 commentedon Feb 4, 2024
Apparently yes. Which means this is sorta a dupe issue.
stephanieelliott commentedon Feb 6, 2024
Ah ok yes, let's close this in favor of #35537 since we already have a proposal and a PR being worked on there.