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
[HOLD for payment 2021-12-15] Search - Make users appear first in the result list over group chats or rooms #6359
I think Expected behaviour might be more complicated, I guess we should distinguish between the name and description.
Let's consider scenario where we search an and then we would want the #announce roome to be first before any person. Here in this case the #announce room is should because of the limited in the description.
We should first make sure we have the expected behaviour thought through before making this external. Thoughts about the behaviour @TomatoToaster and @trjExpensify?
From the thread it sounds like we want to prioritize in this order:
Person Name
Room Name
Room Description (Policy/Domain name in this case)
Let's consider scenario where we search an and then we would want the #announce room to be first before any person.
All rooms have the # at the beginning, right? So I'd think if you typed an you'd want to show results for people first, and if you typed #an you'd show the room results.
All rooms have the # at the beginning, right? So I'd think if you typed an you'd want to show results for people first, and if you typed #an you'd show the room results.
I agree with that! 👍
Separately, do we need to consider the logic for GroupDMs versus DMs? As in, if you search Ted, you'd expect to return Ted first ahead of Ted, Joe wouldn't you?
Separately, do we need to consider the logic for GroupDMs versus DMs? As in, if you search Ted, you'd expect to return Ted first ahead of Ted, Joe wouldn't you?
That makes sense to me 👍
Any other considerations to make here @vitHoracek@trjExpensify? If not we can make this external!
Prioritize 1:1 chats over group chats based on which chat had the most recent message
Hm, I dunno. I kind of feel like we should always prioritize the DM if only one name has been typed in. Perhaps we can discuss in the #open-source channel to make sure we have agreement on this real quick before going forward.
It has been discussed a few times before I remember (for example here), so I think it'd be good to get some broader visiblity on this decision.
Based on the discussion it sounds like there isn't any additional work to be done here! I will update this GH if anything changes when others come online next week, but for now, we can leave this as is
changed the title [-]Search - Make users appear first in the result list over group chats or rooms[/-][+][HOLD for payment 2021-12-15] Search - Make users appear first in the result list over group chats or rooms[/+]on Dec 8, 2021
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.18-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
Is the search is mapping over the filtered array of objects? If that's the case, wouldn't the following solution work in theory? If it doesn't can you help me understand why?
1:1 chat/group chats /recent
1:1 chat/group chats /oldest
rooms /recent
rooms /oldest
Each chat object should have
a date property defaulting to null whose value is the date() of the last message
Activity
MelvinBot commentedon Nov 18, 2021
Triggered auto assignment to @Jag96 (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.parasharrajat commentedon Nov 18, 2021
Proposal
prioritizeDefaultRoomsInSearch: falseforgetSearchOptions.App/src/libs/OptionsListUtils.js
Line 581 in d2d1718
mountiny commentedon Nov 18, 2021
I think Expected behaviour might be more complicated, I guess we should distinguish between the name and description.
Let's consider scenario where we search
anand then we would want the#announceroome to be first before any person. Here in this case the#announceroom is should because of the limitedin the description.We should first make sure we have the expected behaviour thought through before making this external. Thoughts about the behaviour @TomatoToaster and @trjExpensify?
Jag96 commentedon Nov 23, 2021
From the thread it sounds like we want to prioritize in this order:
All rooms have the
#at the beginning, right? So I'd think if you typedanyou'd want to show results for people first, and if you typed#anyou'd show the room results.trjExpensify commentedon Nov 25, 2021
I agree with that! 👍
Separately, do we need to consider the logic for GroupDMs versus DMs? As in, if you search
Ted, you'd expect to returnTedfirst ahead ofTed, Joewouldn't you?MelvinBot commentedon Nov 26, 2021
@Jag96 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Jag96 commentedon Nov 29, 2021
That makes sense to me 👍
Any other considerations to make here @vitHoracek @trjExpensify? If not we can make this external!
mountiny commentedon Nov 29, 2021
That also seems reasonable to me! I think we settled down on a good solution :)
22 remaining items
puneetlath commentedon Dec 3, 2021
Hm, I dunno. I kind of feel like we should always prioritize the DM if only one name has been typed in. Perhaps we can discuss in the #open-source channel to make sure we have agreement on this real quick before going forward.
It has been discussed a few times before I remember (for example here), so I think it'd be good to get some broader visiblity on this decision.
Jag96 commentedon Dec 3, 2021
Good idea! Dropped a message in slack for discussion
Jag96 commentedon Dec 3, 2021
Based on the discussion it sounds like there isn't any additional work to be done here! I will update this GH if anything changes when others come online next week, but for now, we can leave this as is
[-]Search - Make users appear first in the result list over group chats or rooms[/-][+][HOLD for payment 2021-12-15] Search - Make users appear first in the result list over group chats or rooms[/+]botify commentedon Dec 8, 2021
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.18-3 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 2021-12-15. 🎊
parasharrajat commentedon Dec 17, 2021
Ping for

@jboniface
jboniface commentedon Dec 17, 2021
@parasharrajat sorry this slipped by me, job is here https://www.upwork.com/jobs/~01d07f9c95161deca4 i invited you
mosfiend commentedon Dec 18, 2021
Is the search is mapping over the filtered array of objects? If that's the case, wouldn't the following solution work in theory? If it doesn't can you help me understand why?
Each chat object should have
Apologies if that's beside the point, still glossing over the codebase
mallenexpensify commentedon Dec 29, 2021
@parasharrajat apologies for the delay here, I hired you, can you accept the offer so I can pay?
@mosfiend the best place to look for jobs is here https://github.com/Expensify/App/issues?q=is%3Aopen+is%3Aissue+label%3A%22Help+Wanted%22
it's all jobs with the
Help Wantedlabel, the one's we're hiring formallenexpensify commentedon Dec 30, 2021
Paid @parasharrajat