Open IuliiaHerets opened 1 month ago
Triggered auto assignment to @kevinksullivan (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.
We think that this bug might be related to #wave-collect - Release 1
@kevinksullivan FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
The default workspace avatar when viewed in full screen is different from the actual avatar after uploading a custom avatar and removing it.
After adding new workspace avatar and deleting it, we are not deleting originalFileName
in Onyx
And in ReportAvatar
we will reuse the expiration value of originalFileName
When deleting workspace avatar, we should update originalFileName
to null
in here
const optimisticData: OnyxUpdate[] = [
{
...
avatarURL: '',
originalFileName: null,
},
},
NA
Default avatar is different in full screen after uploading avatar and removing it
We forgot to clear originalFileName
on deleting workspace avatar
https://github.com/Expensify/App/blob/d4d5a2586910ff46147219ee3e98bb3e936f8037/src/libs/actions/Policy/Policy.ts#L970-L984
So the fill color will be calcuated based on the previous value of the originalFileName
We need to clear originalFileName
optimistically and also not forget to set the previous value to the failureData (Note: we also forgot to revert avatarURL on failureData so we should fix that too)
const policy = getPolicy(policyID);
const optimisticData: OnyxUpdate[] = [
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.POLICY}${policyID}`,
value: {
pendingFields: {
avatarURL: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
},
errorFields: {
avatarURL: null,
},
avatarURL: '',
originalFileName: null,
},
},
];
const failureData: OnyxUpdate[] = [
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.POLICY}${policyID}`,
value: {
avatarURL:policy?.avatarURL,
originalFileName:policy?.originalFileName,
errorFields: {
avatarURL: ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('avatarWithImagePicker.deleteWorkspaceError'),
},
},
},
];
Similarly we might need to clearpolicy.avatar
prop optimistically too.
@kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick!
@kevinksullivan Huh... This is 4 days overdue. Who can take care of this?
@kevinksullivan 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
Polish collect issue
Job added to Upwork: https://www.upwork.com/jobs/~01a4f7e2fd3a698d7c
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 (External
)
@Pujan92, @kevinksullivan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@Pujan92, @kevinksullivan Eep! 4 days overdue now. Issues have feelings too...
Hi @Pujan92 any update on the reviews?
@Pujan92 @kevinksullivan this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Friendly bump @Pujan92 . If you are unable to get back to this early next week I'll have to reassign.
π£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πΈ
Sorry @kevinksullivan for the delay.
RCA from both the proposals is correct where originalFileName
hasn't been updated in optimistic data while deleting the workspace avatar. Regarding the solution, I prefer @FitseTLT's proposal as it is also handling the failure case and can be considered as a complete solution.
πππ C+ reviewed
Triggered auto assignment to @MariaHCD, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@MariaHCD, @Pujan92, @kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick!
Reviewing this today
π£ @FitseTLT π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
Looping in another BZ for payment as I'm going OOO
Triggered auto assignment to @stephanieelliott (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.
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: v9.0.21-0 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The default workspace avatar when viewed in full screen should match.
Actual Result:
The default workspace avatar when viewed in full screen is different from the actual avatar after uploading a custom avatar and removing it.
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/45613f12-70d1-4f5b-804e-00362b915e87
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @MariaHCD