-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 for payment 2023-10-30] [$500] Details - Comma appears before username in the detail page #29453
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.fake or empty string followed by comma and then then user is shown in display name for a thread created in workspace policy expense chat What is the root cause of that problem?When we create a thread for the first time in a policy expense chat the backend adds a App/src/pages/ReportDetailsPage.js Line 146 in 633c94b
fetched the details for accountID '0' as well which returns fake or Hidden for the '0' accountID What changes do you think we should make in order to solve the problem?
_.each(accountIDs, (accountID) => {
if (!accountID ) { // or accountID === '0'
return;
}
const cleanAccountID = Number(accountID); What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~014b6b128d6dc38a95 |
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @burczu ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Comma appears before username in the detail page What is the root cause of that problem?when we create a thread for the first time in a policy expense chat the participantID '0' is added to the participants by backend here App/src/pages/ReportDetailsPage.js Line 146 in 2c9c303
What changes do you think we should make in order to solve the problem?in the foreach loop, if the accountId is not present, dont add it in personalDetailsForAccountIDs variable which is returned at the end of the function function getPersonalDetailsForAccountIDs(accountIDs, personalDetails) {
const personalDetailsForAccountIDs = {};
if (!personalDetails) {
return personalDetailsForAccountIDs;
}
_.each(accountIDs, (accountID) => {
const cleanAccountID = Number(accountID);
if (cleanAccountID ) {
let personalDetail = personalDetails[accountID];
if (!personalDetail) {
personalDetail = {
avatar: UserUtils.getDefaultAvatar(cleanAccountID),
};
}
if (cleanAccountID === CONST.ACCOUNT_ID.CONCIERGE) {
personalDetail.avatar = CONST.CONCIERGE_ICON_URL;
}
personalDetail.accountID = cleanAccountID;
personalDetailsForAccountIDs[cleanAccountID] = personalDetail;
}
});
return personalDetailsForAccountIDs;
} What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.In the Details modal in the user name, we are seeing fake or comma before the actual user name content. What is the root cause of that problem?We are getting a falsy value i.e. 0 in our case inside the What changes do you think we should make in order to solve the problem?We need to clean the Instead of checking or removing the falsy value inside of specific components, we should check and remove the falsy values inside of
I have added What alternative solutions did you explore? (Optional)Alternate solution would be to remove it in the data that comes from the backend. But if it is not possible, this solution is well sufficient for the fix. |
📣 @theTrozen77! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@burczu, @sonialiap Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@burczu what do you think of the proposals? |
Triggered auto assignment to @puneetlath ( |
Bug0 Triage Checklist (Main S/O)
|
I'm OOO Oct 16-23. Adding leave buddy Status: looking for/choosing proposal |
@sonialiap I'm sorry, I was busy reviewing PR's - I'll get back to checking proposals soon. |
📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @ayazhussain79 We're missing your Upwork ID to automatically send you an offer for the Reporter role. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.88-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-30. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Back from OOO. Thanks for pushing this along, Bartek! |
@c3024 fix + bonus = $750 - paid ✔️ |
@sonialiap offer accepted, Thank you |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@burczu I'm not seeing the conclusion for the last point on the checklist, do you think we should do a regression test for this? |
@sonialiap As I wrote in my previous comment:
|
Thanks! |
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: 1.3.83.1
Reproducible in staging?: y
Reproducible in production?: y
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: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697040699753639
Action Performed:
Expected Result:
Comma should not be displayed before the username
Actual Result:
Comma is shown before the username on the detail page.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
20231011215211.mp4
iOS: Native
iOS: mWeb Safari
Screen.Recording.2023-10-11.at.9.33.24.PM.mov
MacOS: Chrome / Safari
screen-recording-2023-10-11-at-90010-pm_CJXojmu1.mp4
Recording.4967.mp4
MacOS: Desktop
Screen.Recording.2023-10-11.at.9.49.07.PM.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: