-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Backend doesn't search for workspace chat #35257
Comments
Job added to Upwork: https://www.upwork.com/jobs/~014eeff4c475cb3811 |
Triggered auto assignment to @johncschuster ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
Current assignee @allroundexperts is eligible for the Internal assigner, not assigning anyone new. |
@johncschuster, @allroundexperts Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Looks like this one is |
I feel like wave7 as this can affect approvers. That's where it affected me. |
Thanks for the hot tip, @puneetlath! I'll head there now. |
Asked here. Will bump on Monday if it hasn't been looked at. |
It sounds like this could fit into wave5/6/7, so I've raised it in #engineering. If necessary, I'll start pinging folks from those waves. |
@johncschuster @allroundexperts this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@johncschuster, @allroundexperts Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@johncschuster, @allroundexperts 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
❌ There was an error making the offer to @abzokhattab for the Contributor role. The BZ member will need to manually hire the contributor. |
Issue not reproducible during KI retests. (First week) |
The issue is still reproducible, Maria @mvtglobally Screen.Recording.2024-03-20.at.5.23.25.AM.mov |
The PR will be ready today. |
How's the PR coming @abzokhattab? |
The PR is ready! please check it out and let me know if you have any comments. |
Hey all, QA reported here that the test is failing on staging. It's not a blocker but could you please take a look? Thanks |
@abzokhattab Can you please take a look? |
I am not authorized to see the attached videos.. i have to login into the platform.utest.com |
Ah, can you verify and post a video of this working on staging? |
This PR caused performance issues on Staging. We're reverting it in #40019 |
This is the thread in #newdot-performance https://expensify.slack.com/archives/C05LX9D6E07/p1712763013050639 |
@allroundexperts, @abzokhattab, and @youssef-lr would you mind working on the fix that @danieldoglas suggested here? Thanks |
Can you please post the details of the fix here? I cannot access the Slack message because it is private. |
Sorry, I didn't really describe a fix. I said we should look for a way to create that search string without doing that for loop. we need to find a more efficient way of executing that function for the LHN items |
Oh sorry 😄 |
do you have any idea in mind to get rid of the for loop? the optimization that can think of is to use a global cache for the search term of each const cache = new Map<string, string[]>();
function getSearchText(
report: OnyxEntry<Report> | null,
reportName: string,
personalDetailList: Array<Partial<PersonalDetails>>,
isChatRoomOrPolicyExpenseChat: boolean,
isThread: boolean,
): string {
let searchTerms: string[] = [];
const emailRegex = /\.(?=[^\s@]*@)/g; // Define the regex once outside the loop
for (const personalDetail of personalDetailList) {
if (!personalDetail.login) {
continue;
} // Skip if no login, reduces indentation
let cachedResult: string[] | undefined = cache.get(personalDetail.login);
if (!cachedResult) {
const displayName = PersonalDetailsUtils.getDisplayNameOrDefault(personalDetail, '', false);
const modifiedLogin = personalDetail.login.replace(emailRegex, ''); // Use pre-defined regex
cachedResult = [displayName, personalDetail.login, modifiedLogin];
cache.set(personalDetail.login, cachedResult);
}
searchTerms = searchTerms.concat(cachedResult);
} what do you think ? |
This issue has not been updated in over 15 days. @johncschuster, @youssef-lr, @allroundexperts, @abzokhattab eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@johncschuster, @youssef-lr, @allroundexperts, @abzokhattab, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
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: v1.4.32-2
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: @puneetlath
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1706196526990119
Action Performed:
1.Search for a workspace chat which is existing
Expected Result:
workspace chat appears in the result for the searched user
Actual Result:
Doesn’t show up when I search
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
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: