-
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
[HOLD][$250] Search - Suggestion still shows the report when it is already selected as search query #52213
Comments
Triggered auto assignment to @johncschuster ( |
Triggered auto assignment to @MarioExpensify ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Edited by proposal-police: This proposal was edited at 2024-11-07 20:07:36 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The suggestion shows the selected report when the report is already selected. What is the root cause of that problem?We are missing the filter in type in with App/src/components/Search/SearchRouter/SearchRouter.tsx Lines 251 to 254 in e3e4e53
What changes do you think we should make in order to solve the problem?We should add condition with
We can find any missing types and do the same. What alternative solutions did you explore? (Optional)NA |
I was able to reproduce here, but hardly a deploy blocker. Let's make this External and move forward with the deploy. |
Job added to Upwork: https://www.upwork.com/jobs/~021854651066569405634 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
Edited by proposal-police: This proposal was edited at 2024-11-08 06:41:39 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Selected search item does not disappear from the suggestions list when using "in:" search query. Expected behavior works correctly for other types of queries. What is the root cause of that problem?In case of "in:" search query, we have missed to filter the suggestion list(
What changes do you think we should make in order to solve the problem?The simplest fix would be to filter the autocomplete list by adding
What alternative solutions did you explore? (Optional)The filtering logic for all search query types is currently the same. I suggest extracting this logic into a reusable function. This way, if a new query type is added or the filtering logic changes in the future, updates can be made in a single place, applying uniformly to all search types (e.g., "in:", "to:", "from:"). This will help prevent bugs like the current issue, where conditions may be missed.
|
📣 @mohit6789! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
I’ve reviewed proposals and left a comment here to avoid any conflicts. :) |
Hi, @nkdengineer. The reason I asked in PR #51633 is that this issue is introduced by that PR, and they still plan to make a follow-up PR to address some problems. Considering they are likely to refactor the related query logic (possibly even overriding your solution here), I felt at the time that it would be better to notify them and let them handle it. However, if their new PR adopts your solution, I personally think it would be fine to offer you some compensation. Would you be okay with that? :) cc @johncschuster @MarioExpensify to see if there are any different thoughts. BTW, the follow up PR is #52568. |
This is on hold |
On hold, not overdue! Moving this to Weekly so it stop being tagged as overdue CC @johncschuster |
PR #52568 has already been deployed to production 3 days ago, and they did adopt the solution from @nkdengineer that I mentioned in the comment, so this issue has been fixed. :) test.mp4 |
Thanks for your patience on this one! I've reviewed the internal payment docs, and it looks like @nkdengineer should be compensated for the solution that we wound up using. I'll create an Upwork job for that now. |
Job is here |
Hi, @johncschuster, curious does c+ have any compensation here, for reviewing and picking proposal? :D |
Great question, @ntdiary! I was so focused on the "solution" that I didn't check for that in our docs. Let me check and come back to you on that. |
@ntdiary thanks for your patience! Yes, I will issue the same 50% to you as I would to @nkdengineer for their work on this issue. I've sent you an invite to the job. Please ping me when you've accepted that so I can pay this out! |
@johncschuster, haha, I have switched to ND for payment a few months ago, so it's fine to just make a payment summary here. :D |
Yes, I only need he payment summary to approve the ND payment. |
Oh darn it. Thanks for calling that out, @ntdiary! Summary incoming. |
Payment Summary:Contributor: @nkdengineer paid $125 via Upwork Contributor+: @ntdiary due $125 via NewDot Upwork job here! Please apply |
@nkdengineer can you please accept the Upwork offer above so I can pay this out before I head out on holiday OOO? |
@johncschuster I did. Enjoy your break! 🍷 |
$125 approved for @ntdiary |
Payment has been issued. Thanks, everyone! |
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: 9.0.59-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The suggestion will not show the selected report because the report is already selected (production behavior).
Actual Result:
The suggestion shows the selected report when the report is already selected.
This issue only happens with in: search query and does not happen with from, to, category, tag etc
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6657948_1731003896136.20241108_022133.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: