-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Search v2.1] Web - Search filters - Search result becomes empty after changing sorting order #48483
Comments
Triggered auto assignment to @trjExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Search result becomes empty after changing sorting order What is the root cause of that problem?Currently, when the user changes the sorting order, the Lines 350 to 353 in 7cb6bd3
What changes do you think we should make in order to solve the problem?We should separate the cases of Line 443 in 7cb6bd3
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Search filters - Search result becomes empty after changing sorting order What is the root cause of that problem?In building the search filter string here Line 557 in e60b821
we are concatenating the filter values with space which means AND so it will be searching for expenses which has two categories at the same time which will return empty
What changes do you think we should make in order to solve the problem?We should change it to
What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-09-03 16:28:37 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const separator = filterName === FILTER_KEYS.KEYWORD ? " " : ",";
filterValueString += `${separator}${sanitizeString(queryFilter.value.toString())}`; Result: Screen.Recording.2024-09-03.at.18.26.17.mov |
Hi! I am from SWM, an expert agency and I'd like to work on this issue. I am working right now on Search Header Page cleanup and i can fix this bug in the same pr. |
Go ahead and link it! CC: @luacmartins |
Linked here #48538 |
PR in active review, Melv. |
PR was deployed to prod last week. This is solved, closing. |
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.28-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
App will display the valid results
Actual Result:
Search result becomes empty after changing sorting order
This issue happens when two categories are selected in filters and one of the categories does not return results
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6591732_1725370201410.20240903_212347.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @289Adam289The text was updated successfully, but these errors were encountered: