-
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
[$250] Filter mismatch on "Save Search" , Filters page shows the currency selected, but the results do not match the filter. #53880
Comments
Triggered auto assignment to @johncschuster ( |
Edited by proposal-police: This proposal was edited at 2024-12-10 18:38:30 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Filter mismatch on "Save Search" , Filters page shows the currency selected, but the results do not match the filter. What is the root cause of that problem?When the current search already exists we dismiss modal and return early on save search here App/src/pages/Search/AdvancedSearchFilters.tsx Lines 436 to 439 in 219dabf
What changes do you think we should make in order to solve the problem?We should apply filter and navigate instead of dismiss modal so that the user can see the search result without saving the search as it already exists 👍
_Note: we don't need to separately handle the
so we can remove it from the condition What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can write an appropriate test for What alternative solutions did you explore? (Optional)Optionally we can clear the filters before dismiss Modal
|
Edited by proposal-police: This proposal was edited at 2024-12-10 19:45:08 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Search results are not updated when clicking save search button for already saved search query. What is the root cause of that problem?When handling the case of already already saved query, we just dismiss the modal rather than calling applyFiltersAndNavigate() function here. App/src/pages/Search/AdvancedSearchFilters.tsx Lines 436 to 440 in 37105a1
What changes do you think we should make in order to solve the problem?Rather than dismissing the modal, We should navigate to search result. if (!queryJSON){
// If search query is empty, do not save the search result.
Navigation.dismissModal();
return;
}
if(savedSearches && savedSearchKeys.includes(String(queryJSON.hash))) {
// If the search is already saved, navigate to results without saving the query.
applyFiltersAndNavigate();
return;
} Or else keep this case dependent on save button visibility and completely remove the !queryJSON case(save button is only visible when queryJSON is Truthy value, so no need to check it again here) if(savedSearches && savedSearchKeys.includes(String(queryJSON.hash))) {
// If the search is already saved, navigate to results without saving the query.
applyFiltersAndNavigate();
return;
} App/src/pages/Search/AdvancedSearchFilters.tsx Lines 436 to 440 in 37105a1
Optionally we could add a specific case if current query is same as the query to be saved, in that case just dismiss the modal and avoid any additional API calls. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Mostly it doesn't need any automated tests. What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Added Note why we don't need to handle |
Updated proposal |
Note: when I stated
I obivously meant removing the |
Job added to Upwork: https://www.upwork.com/jobs/~021867704716594549077 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 ( |
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.73-6
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @jayeshmangwani
Slack conversation (hyperlinked to channel name): expensify_bugs
Action Performed:
Expected Result:
Either the currency filter on the Filters screen should not be preselected, OR The search results should display expenses filtered by the active saved filter.
Actual Result:
After saving the search, no filters are applied to the results on the search screen, However, returning to the Filters page shows the currency filter is still selected.
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
filter-bug.mov
Recording.839.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @eh2077The text was updated successfully, but these errors were encountered: