Open IuliiaHerets opened 3 days ago
Triggered auto assignment to @sakluger (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Triggered auto assignment to @thienlnam (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
:wave: 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 2023-10-20T13:45:00Z.
Saved search - Default search name shows the report/user ID instead of report/user name
From: https://github.com/Expensify/App/pull/48566 we are directly showing the query name which has report/user ID instead of report/user name here:
if the query name === query, then we need to use same logic in SearchUtils.getSearchHeaderTitle
as we are using for search header title, here queryJSON
will be build with SearchUtils.buildSearchQueryJSON for the item
let title = item.name;
if (title === item.query) {
const jsonQuery = SearchUtils.buildSearchQueryJSON(item.query);
title = jsonQuery ? SearchUtils.getSearchHeaderTitle(jsonQuery, personalDetails, cardList, reports, taxRates) : item.query;
}
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.
default search name shows ID instead of name
when saving a search query, we use the raw query as name
Use getSearchHeaderTitle to get a more user friendly string. so the update code will be
const saveSearchName = name ?? SearchUtils.getSearchHeaderTitle(queryJSON, personalDetails, cardList, reports, taxRates) ?? '';
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.
@lakchote will address this in a follow up since it came from his PR
Job added to Upwork: https://www.upwork.com/jobs/~021835502366052877051
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani (External
)
Upwork job price has been updated to $125
@jaydamani are you available to work on a fix for this?
@luacmartins yes, I can work on it now.
I already put up a PR with a slightly different solution since we shouldn't update the actual saved search name (we wanna be able to dynamically get those if the display name changes, etc)
@luacmartins That PR could break the rename functionality. If you rename a search, it would still show the query instead of the name.
My changes only affects when name provided by user is undefined
const saveSearchName = name ?? SearchUtils.getSearchHeaderTitle(queryJSON, personalDetails, cardList, reports, taxRates) ?? '';
Also, I think your PR partially implements proposal by @ishpaul777 Fully implementing it should fix the rename issue.
Ah yes, I noticed that as well. I updated the PR and I agree that in the end the solution was quite similar to @ishpaul777's solution. I'll make sure that we compensate them for the solution.
Fixed on staging
I haven't reviewed the PR; Unassigning myself from the issue
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 Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Default search name will show the report name.
Actual Result:
Default search name shows the report ID instead of report name. Ths same goes for user ID when "From" filter is saved.
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/d150f998-9d1b-4c9b-a994-14d355155147
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jayeshmangwani