-
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
fix workspace avatar issue on deletion #32986
fix workspace avatar issue on deletion #32986
Conversation
@getusha bump for a review |
@FitseTLT the PR is a bit different from your proposal, could you please explain? |
If U meant about the removing of the App/src/libs/actions/Policy.js Lines 683 to 695 in 70813db
|
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-01-23.at.4.25.18.PM.movAndroid: mWeb ChromeScreen.Recording.2024-01-23.at.3.45.35.PM.moviOS: NativeScreen.Recording.2024-01-23.at.4.15.09.PM.moviOS: mWeb SafariScreen.Recording.2024-01-23.at.4.09.47.PM.movMacOS: Chrome / SafariScreen.Recording.2024-01-23.at.3.54.33.PM.movMacOS: DesktopScreen.Recording.2024-01-23.at.4.27.14.PM.mov |
@FitseTLT when we enable the connection the avatar is being reverted back to the uploaded avatar. |
@getusha but from the snapshot it is clear that the workspace is not deleted, maybe the deletion must have failed. so it is the correct behaviour. |
@FitseTLT still the avatar is present after the workspace is deleted, check this. Screen.Recording.2023-12-25.at.3.20.02.PM.mov |
@getusha I did the same thing in the video but couldn't reproduce. Anyway, it is a backend issue and cannot be related to the change we are making on this pr as the avatar is changing when online (related to the data returned from server). 2023-12-26.00-02-51.mp4 |
Isn't the issue we're trying to address? I don't see the value in removing the avatar only when the user is offline, just to have it reverted back once they're online. I feel like we can handle it here, otherwise @madmax330 could check if this is a backend issue. You just have to wait a bit longer to reproduce. Screen.Recording.2023-12-26.at.4.57.14.PM.mov |
Nope. Almost in all cases we try to align what will happen on the server to the optimistic data for creating better offline UX. But although the server resets the workspace avatar on workspace deletion that effect was not included in our optimistic data, so in this issue we are trying to align that BE operation in FE offline. However, on the new issue you discovered, while the workspace is created and deleted offline, the server is reverting it back (because it is what is happening when we go online). So it is not sth we can handle here, so I agree with u on asking thoughts of @madmax330 here 👍 |
@getushasicne this fixes the original issue, let's just merge this and we can make a separate issue for the other problem. |
Looks like there is conflict @FitseTLT |
@madmax330 Good to go! The performance tests are failing on other prs too; can't be related with this pr. |
looks like unrelated. @FitseTLT can we merge main again to re-trigger the github action? |
@madmax330 merged main and performance tests pass. U 're Good to go! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
@madmax330 already completed the checklist, #32986 just updated it looks like it was outdated. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/madmax330 in version: 1.4.32-0 🚀
|
Issue from this PR: #35177 |
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.32-5 🚀
|
Details
Fixed Issues
$ #32195
PROPOSAL: #32195 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Design
label so the design team can review the changes.Screenshots/Videos
Android: Native
wsp.android.native.mp4
Android: mWeb Chrome
wsp.android.mweb.mp4
iOS: Native
wsp.ios.native.mp4
iOS: mWeb Safari
wsp.ios.mweb.mp4
MacOS: Chrome / Safari
wsp.web.mp4
MacOS: Desktop
wsp.desktop.mp4