-
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
[HOLD for payment 2024-03-07] [$500] Workspaces - Сustom avatar is applied to all workspace rooms #35934
Comments
Job added to Upwork: https://www.upwork.com/jobs/~013fc2b5417b9e2c4a |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @anmurali ( |
We think that this bug might be related to #wave6 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspaces - Сustom avatar is applied to all workspace rooms What is the root cause of that problem?The Lines 1543 to 1544 in 8563c0f
What changes do you think we should make in order to solve the problem?We should use |
ProposalPlease re-state the problem that we are trying to solve in this issueAll WS rooms (including admins, announce) have the same new custom avatar. What is the root cause of that problem?Note The WS rooms which should have default avatars: admin rooms, announce rooms, chat rooms and archived rooms. Despite the fact that we check the WS room type here in the Line 1542 in 9f37d3e
The issue comes from the Lines 1443 to 1450 in 9f37d3e
where we can see that regardless of the WS room type, we're always getting the avatar source from the What changes do you think we should make in order to solve the problem?Replace the logic within the WS room types check with the following: Code spoiler if (isAdminRoom(report) || isAnnounceRoom(report) || isChatRoom(report) || isArchivedRoom(report)) {
const workspaceName = getPolicyName(report, false, policy);
const workspaceIcon: Icon = {
source: getDefaultWorkspaceAvatar(workspaceName) ?? '',
type: CONST.ICON_TYPE_WORKSPACE,
name: workspaceName,
id: -1,
};
return [workspaceIcon];
} essentially using only the part we need from the What alternative solutions did you explore? (Optional)Alternatively we can change the Code spoiler // ... rest of the function
let policyExpenseChatAvatarSource = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID}`]?.avatar ?? getDefaultWorkspaceAvatar(workspaceName);
if (isAdminRoom(report) || isAnnounceRoom(report) || isChatRoom(report) || isArchivedRoom(report)) {
policyExpenseChatAvatarSource = getDefaultWorkspaceAvatar(workspaceName);
}
// ... rest of the function Screenshots |
Taking over as C+ here. |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @Tony-MK 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
👋 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:
|
Current assignee @aldo-expensify is eligible for the Engineering assigner, not assigning anyone new. |
I created the PR to revert, is on review now |
I think it makes sense to update the tests to include that we should check that Rooms also get the custom avatar. |
Removing deploy blocker label, the revert was CP'd and tested: #37330 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.45-6 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 2024-03-07. 🎊 For reference, here are some details about the assignees on this 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:
|
Paying now |
Paid up, no regression test as it was reverted |
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: 1.4.37-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4283786&group_by=cases:section_id&group_order=asc&group_id=229065
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Verify the Workspace chat displays the new avatar and name.
Default avatars (admins, announce) should have specific icons like at the example.
Actual Result:
All WS rooms (including admins, announce) have the same new custom avatar
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6369622_1707241211176.Screen_Recording_2024-02-06_at_18.36.24.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: