You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-05-13] [$250] Send invoice - Both workspace avatar has the same avatar letter #60521
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: v9.1.30-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A If this was caught during regression testing, add the test name, ID and link from TestRail:#60346 Email or phone of affected tester (no customers):testpayment935@gmail.com Issue reported by: Applause Internal Team Device used: Windows 10 /Chrome,Samsung Galaxy s10/ Chrome,Samsung Galaxy s10/ Android 12 App Component: Other
Action Performed:
Precondition:
[User A] has a workspace with invoicing enabled.
[User B] does not have any workspace.
[User A] and [User B] do not have chat history with each other.
[User A] Send an invoice to User B.
[User B] Go to invoice in the chat.
[User B] Click Pay.
[User B] Click Pay as business > Pay elsewhere.
[User B] Open the workspace avatar for both Workspace from detail page
Expected Result:
Each workspace avatar have their own letters
Actual Result:
Both workspace avatar has the same avatar letter only background color different
Please re-state the problem that we are trying to solve in this issue.
Send invoice - Both workspace avatar has the same avatar letter
What is the root cause of that problem?
Currently, we retrieve the avatar source based on the report, and the policy is undefined, which leads to an incorrect avatar letter. This happens because we fall back to using the policy from the report.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We already have unit tests for getWorkspaceIcon, so I don't think additional tests are necessary in this case. We can render ReportAvatar then assert avatar correct
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.
@rezkiy37 Do you have any idea what might be causing this issue? I'm away from the office to check if it was caused by our PR. I'll investigate on Monday
@brunovjk, I don't think it is associated with the PR. I guess this is an old bug that was found recently. So I would let other devs fix it as a usual bug.
changed the title [-]Send invoice - Both workspace avatar has the same avatar letter[/-][+][$250] Send invoice - Both workspace avatar has the same avatar letter[/+]on Apr 22, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.39-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ahmedGaber93@lydiabarclay@ahmedGaber93 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other: edge case that are difficult to notice
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other: Applause Internal Team
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: None. This is a very deeply edge case, so no offending PR.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Apr 19, 2025
Triggered auto assignment to @lydiabarclay (
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.linhvovan29546 commentedon Apr 19, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Send invoice - Both workspace avatar has the same avatar letter
What is the root cause of that problem?
Currently, we retrieve the avatar source based on the report, and the policy is undefined, which leads to an incorrect avatar letter. This happens because we fall back to using the policy from the report.
App/src/pages/ReportAvatar.tsx
Line 31 in 8ed9c09
What changes do you think we should make in order to solve the problem?
We should pass the policy as the second parameter to the
getWorkspaceIconfunction, similar to how it's done in other places.App/src/pages/ReportAvatar.tsx
Lines 21 to 37 in 8ed9c09
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We already have unit tests for getWorkspaceIcon, so I don't think additional tests are necessary in this case. We can render
ReportAvatarthen assert avatar correctWhat 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.
brunovjk commentedon Apr 21, 2025
@rezkiy37 Do you have any idea what might be causing this issue? I'm away from the office to check if it was caused by our PR. I'll investigate on Monday
rezkiy37 commentedon Apr 22, 2025
@brunovjk, I don't think it is associated with the PR. I guess this is an old bug that was found recently. So I would let other devs fix it as a usual bug.
melvin-bot commentedon Apr 22, 2025
@lydiabarclay Whoops! This issue is 2 days overdue. Let's get this updated quick!
[-]Send invoice - Both workspace avatar has the same avatar letter[/-][+][$250] Send invoice - Both workspace avatar has the same avatar letter[/+]melvin-bot commentedon Apr 22, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021914708478350611886
melvin-bot commentedon Apr 22, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 (
External)21 remaining items
melvin-bot commentedon May 6, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon May 6, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.39-8 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 2025-05-13. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 6, 2025
@ahmedGaber93 @lydiabarclay @ahmedGaber93 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
lydiabarclay commentedon May 14, 2025
@ahmedGaber93 it looks like this one fell off the radar last week, apologies. Would you please fill out the above checklist as soon as you can?
ahmedGaber93 commentedon May 15, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: None. This is a very deeply edge case, so no offending PR.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/501345
Regression Test Proposal
Test:
Do we agree 👍 or 👎
ahmedGaber93 commentedon May 15, 2025
@lydiabarclay checklist is completed. Sorry for the delay 🙏.
lydiabarclay commentedon May 15, 2025
Payment Summary
Contributor: @linhvovan29546 paid $250 via Upwork
Contributor+: @ahmedGaber93 due $250 via NewDot
✅ Regression test filed
JmillsExpensify commentedon Jul 11, 2025
$250 approved for @ahmedGaber93