-
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] DMs with a hidden notification preference show up in search twice, once with the email and once without #34900
Comments
Job added to Upwork: https://www.upwork.com/jobs/~019a3378b1028ed211 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.DMs with a hidden notification preference show up in search without a name What is the root cause of that problem?As we open the chat after searching it is included in reports list and b/c We are not filtering out personal details without proper accountID ( What changes do you think we should make in order to solve the problem?We should filter out those personal details with accountid of App/src/libs/OptionsListUtils.js Lines 1530 to 1532 in 52adf77
or in here App/src/libs/OptionsListUtils.js Lines 1392 to 1395 in 52adf77
or we can iterate and filter out from sections here Lines 135 to 136 in 52adf77
or we should stop adding personal details without proper accountID in to recents list What alternative solutions did you explore? (Optional)If we want to filter out all empty chats we can add an additional condition of in here App/src/libs/OptionsListUtils.js Lines 1392 to 1395 in 52adf77
We can optionally use this logic too to decide if it is empty chat getting the report actions by App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js Line 130 in e791ecc
We can also narrow down our filter using ReportUtils.isChatReport only filter out empty chat reports or also isDM or !ReportActionsUtils.isTransactionThread
|
ProposalPlease re-state the problem that we are trying to solve in this issue.should be hiding the empty DMs from search entirely What is the root cause of that problem?When the chat just created we do not have the accountID and the any chat message in the report. And Even when we send a message the accountID still NaN What changes do you think we should make in order to solve the problem?I think with the show Hidden user and have a message we also can search for them What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.Only profile pics are shown What is the root cause of that problem?For reports where there's no account ids that should be visible (as in this case), What changes do you think we should make in order to solve the problem?Early return here if the What alternative solutions did you explore? (Optional)This issue might happen in other chat cases like if the chat is a group chat as well, we can test for those scenarios and add relevant checks (instead of just checking the chat is a DM) along with the An alternative is to early return if Or in here we could fallback to using |
Updated to add more detail and alternative approaches |
@kavimuru I might need clarification on the expected result. Should we exclude all the empty chat reports on the recent list or those that only show the profile pic? From the above screenshot, I see a bug showing the report with only the profile picture. |
@srikarparsi Could you help clarify the above question? Thank you! |
ProposalPlease re-state the problem that we are trying to solve in this issue.When we search for a user without internet, the recent search results do not show the users display name What is the root cause of that problem?The accountId never got resolved while offline. This results in a null accountId for the record. We return an empty displayName under this condition: What changes do you think we should make in order to solve the problem?We can update the displayName logic to fallback to option.text if it doesn't resolve the displayname here: Line 1645 in 0efabc2
It already short-circuits to login, but in this error case it's also not present. Note: What alternative solutions did you explore? (Optional) |
@mollfpr, @srikarparsi Huh... This is 4 days overdue. Who can take care of this? |
Need clarification #34900 (comment) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
In regard to this question, I believe we should exclude all empty chats. I think the search function should be optimized for existing chats, for empty chats it would be just as simple to "re-create" them. |
Does anyone want to update their proposal according to the above expectations? |
Updated proposal in alternative solution considering the above expectation |
@mollfpr @srikarparsi this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Current assignee @mollfpr is eligible for the Internal assigner, not assigning anyone new. |
@srikarparsi the issue missing label |
Triggered auto assignment to @muttmuure ( |
Yup! Seems to be the case. Hey @muttmuure do you think you could help with payment for this PR after the regression period. Also, I don't believe the automation worked, do you know if there's a way to get around that? |
Current assignee @mollfpr is eligible for the External assigner, not assigning anyone new. |
@mollfpr - $500 for C+ |
All paid up, @mollfpr needs to request in NewDot using the summary above |
$500 approved for @mollfpr based on summary. |
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.29-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @srikarparsi
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1705731187838889
Action Performed:
Expected Result:
should be hiding these DMs from search entirely
Actual Result:
Only profile pics are shown
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?
Screenshots/Videos
Add any screenshot/video evidence
Recording.1699.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: