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

[$1000] Search - Only one of threads/chats is shown on search page for threads in direct and group messages #19697

Closed
3 of 6 tasks
kbecciv opened this issue May 26, 2023 · 19 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented May 26, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Issue found when executing PR #19117

Action Performed:

  1. Login to NewDot
  2. Start a direct message
  3. Create a thread in direct message chat
  4. Request money from the same account

Expected Result:

All threads and parental chat should be shown on search page

Actual Result:

Only one (probably most recent) thread is shown on search page. F.e. if you request money, then it's thread can be found on search page but parental chat and other threads will not be found.
Not repro for workspace rooms and chat

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.19.1

Reproducible in staging?: yes

Reproducible in production?: n/a

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

https://platform.applause.com/services/links/v1/external/23b64fe4bde4b7eec313342b33d3603db83c64a932b8ac60c592ee20ed82c489

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0117b1da3de9bed21c
  • Upwork Job ID: 1663249040525082624
  • Last Price Increase: 2023-05-29
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 26, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 26, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@c3024
Copy link
Contributor

c3024 commented May 28, 2023

Proposal

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

Show threads also in Search Page for all chats on clicking search button on top.

What is the route cause of that problem?

Following lines do not push threads of the same login email to recentReportOptions
Lines 674 to 677 of App/src/libs/OptionsListUtils.js

// Check the report to see if it has a single participant and if the participant is already selected
if (reportOption.login && _.some(loginOptionsToExclude, (option) => option.login === reportOption.login)) {
     continue;
}

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

When we want to include all threads include includeThreads flag in the above check. Change it to

if (!includeThreads && reportOption.login && _.some(loginOptionsToExclude, (option) => option.login ===  reportOption.login)) {
       continue;
 }

What alternative solutions did you explore? (Optional)

Remove the above line so that all threads are pushed into the returning recentReports

@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

⚠️ 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.

@luacmartins luacmartins self-assigned this May 29, 2023
@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label May 29, 2023
@luacmartins
Copy link
Contributor

This solves a deploy blocker, so I'll take over to get it done fast.

@melvin-bot melvin-bot bot changed the title Search - Only one of threads/chats is shown on search page for threads in direct and group messages [$1000] Search - Only one of threads/chats is shown on search page for threads in direct and group messages May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0117b1da3de9bed21c

@melvin-bot melvin-bot bot removed the Overdue label May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

Triggered auto assignment to @puneetlath (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

Current assignee @luacmartins is eligible for the External assigner, not assigning anyone new.

@luacmartins
Copy link
Contributor

@c3024 This solves a deploy blocker. Are you able to put up a PR soon?

@luacmartins
Copy link
Contributor

I put up a PR already. Since I used @c3024's solution, we should still pay them for the issue.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

📣 @c3024 You have been assigned to this job by @luacmartins!
Please apply to this job in Upwork 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 📖

@c3024
Copy link
Contributor

c3024 commented May 29, 2023

Thank you @luacmartins . I could not see your message right away. I see now that the change suggested has been implemented. I have applied for the job in Upwork.

@puneetlath puneetlath removed their assignment May 29, 2023
@conorpendergrast
Copy link
Contributor

I'll get that paid; @c3024 thanks for applying!

@conorpendergrast
Copy link
Contributor

@c3024 I see two applicants in that job; could you reply here with your Upwork profile link please? Thanks!

@c3024
Copy link
Contributor

c3024 commented May 30, 2023

@conorpendergrast
Copy link
Contributor

Offer sent

@c3024
Copy link
Contributor

c3024 commented May 30, 2023

Accepted. Thanks. The PR has already been merged.

@conorpendergrast
Copy link
Contributor

Paid! All done now, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants