-
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
Search - Second saved search name order with an edited filter differs #49223
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Triggered auto assignment to @iwiznia ( |
👋 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:
|
We think that this bug might be related to #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Second saved search name order with an edited filter differs What is the root cause of that problem?The values of Lines 674 to 675 in 0c618ac
What changes do you think we should make in order to solve the problem?We should set the values of Move What alternative solutions did you explore? (Optional)we will update the filter name and input query before saving the search // .src/libs/actions/Search.ts#L55
function saveSearch({queryJSON, name}: {queryJSON: SearchQueryJSON; name?: string}) {
- const saveSearchName = name ?? queryJSON?.inputQuery ?? '';
+ let saveSearchName = '';
+ if (name) {
+ saveSearchName = name;
+ } else if (queryJSON?.inputQuery) {
+ const name = SearchUtils.getSearchHeaderTitle(queryJSON);
+ saveSearchName = name;
+ }
- const jsonQuery = JSON.stringify(queryJSON);
+ const jsonQuery = JSON.stringify({...queryJSON, inputQuery: SearchUtils.getSearchHeaderTitle(queryJSON)});
API.write(WRITE_COMMANDS.SAVE_SEARCH, {jsonQuery, name: saveSearchName});
}
POC
Screen.Recording.2024-09-15.at.23.17.30.mp4 |
This is not a blocker. We sort those based on the order in which they were created. We can close this for now and reopen if we decide to sort them alphabetically. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.35-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
Issue was found when executing this PR: #48566
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The name order should be "type status merchant" to match the original one.
Actual Result:
Second saved search name order with an edited filter differs from the original one. It's displayed as: "merchant type status".
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6604102_1726380933961.bandicam_2024-09-15_08-05-46-169.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: