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

Tighten up search results expectations #7582

Closed
roryabraham opened this issue Feb 5, 2022 · 11 comments
Closed

Tighten up search results expectations #7582

roryabraham opened this issue Feb 5, 2022 · 11 comments
Assignees
Labels
Engineering Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff Monthly KSv2

Comments

@roryabraham
Copy link
Contributor

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Problem

There are a number of different types of chats and users, and it's not clearly documented anywhere the order in which those should appear when searching for them.

Solution

  1. First, clearly and thoroughly define the results ordering, accounting for:
    1. Exact matches
    2. DM's, group chats, policy default rooms, workspace chats, user-created rooms
    3. How the order might change for the New Chat or New Group pages, and for users that don't yet have Expensify accounts.
  2. Create unit tests to cover all those expected results.
  3. (optional but ideal) Create some kind of benchmarking for search results and test them with an account with many report participants.
  4. Attempt to DRY up and generalize all the OptionsListUtils search logic we have now.
  5. Patch logic as necessary to make tests pass.
  6. Monitor the benchmarks created in step 3 and ensure that we aren't slowing down search by a significant amount. Make it faster if necessary.

View all open jobs on GitHub

@roryabraham roryabraham added Engineering Weekly KSv2 Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff labels Feb 5, 2022
@roryabraham roryabraham self-assigned this Feb 5, 2022
@roryabraham
Copy link
Contributor Author

Going to make this internal for step 1 only, then will pass off to contributors.

@roryabraham
Copy link
Contributor Author

No update here

@roryabraham
Copy link
Contributor Author

Was hoping to get to this, but going to have to punt again.

@roryabraham
Copy link
Contributor Author

Have to punt again 😞

@roryabraham
Copy link
Contributor Author

No update again, focusing on Offline First and other N7 priorities 😭

@roryabraham
Copy link
Contributor Author

roryabraham commented Apr 6, 2022

Again no update, considering closing this. It needs to be done, but is a slog and difficult to prioritize. Could be an interesting project for a contributor aspiring to be a C+ (because it involves not only writing tests and code but leading slack discussions to generate consensus).

@melvin-bot melvin-bot bot removed the Overdue label Apr 6, 2022
@melvin-bot melvin-bot bot added the Overdue label Apr 14, 2022
@roryabraham
Copy link
Contributor Author

Working a lot on refactoring related components in this large PR. No update on this.

@melvin-bot melvin-bot bot removed the Overdue label Apr 20, 2022
@melvin-bot melvin-bot bot added the Overdue label Apr 29, 2022
@roryabraham
Copy link
Contributor Author

No update again.

@melvin-bot melvin-bot bot removed the Overdue label May 6, 2022
@melvin-bot melvin-bot bot added the Overdue label May 16, 2022
@roryabraham
Copy link
Contributor Author

Going to switch this to monthly until things settle down a bit. Seems pretty valuable, but not urgent.

@melvin-bot melvin-bot bot removed the Overdue label May 18, 2022
@roryabraham roryabraham added Monthly KSv2 and removed Weekly KSv2 labels May 18, 2022
@melvin-bot melvin-bot bot added the Overdue label Jun 20, 2022
@roryabraham
Copy link
Contributor Author

No update here

@melvin-bot melvin-bot bot removed the Overdue label Jun 23, 2022
@melvin-bot melvin-bot bot added the Overdue label Jul 25, 2022
@roryabraham
Copy link
Contributor Author

Going to just close this. Since opening this issue we've seen an increase in unit tests around this flow and also a number of regression tests added to TF.

@melvin-bot melvin-bot bot removed the Overdue label Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff Monthly KSv2
Projects
None yet
Development

No branches or pull requests

2 participants