Make sure closed accounts don't show in workspace members - #15324
Conversation
|
Thanks for fixing this, we didn't have a valid use case for the use of Usually on these cases I would go for:
|
What's the scenario where there's a pending action and we wouldn't prefer to overwrite with the API response?
Same question here. I can't see this being a problem since the API call won't happen until the user comes online |
Writing this I remembered something, even it seems as a valid scenario it actually will never happen since we queue all read requests to be executed after write requests are done. |
|
Yes and also, when would we ever clear the pendingAction if we didn't include those users in this call? |
|
@Santhosh-Sellavel @MonilBhavsar One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
On the request response (or success/failure data), but if we fail to get that, members will be stuck on onyx. Using the |
|
Sweet, thanks for helping validate that! |
Reviewer Checklist
Screenshots/VideosAll DevicesAdded AccountAdded_State.movClosed AccountClose_Account_Test.mov |
|
@puneetlath After performing a close account, the account is not removed automatically from the page even after waiting some time. It's only removed after closing and opening the Manage Members page. Is this fine? Check the Closed Account video in the Review Checklist for more! |
|
Yes, that is because the back-end doesn't currently send a pusher update when the account is closed. So until you come back to the page, which then calls the API to get the full members list, the page won't update. I'm going to look into a doing a back-end pusher update as well, but that's separate from this PR. Thanks for testing! |
|
So we are good now then, thanks! |
|
yep! over to you @MonilBhavsar |
|
@MonilBhavsar bump! |
|
sorry, was ooo |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 1.2.77-0 🚀
|
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 1.2.77-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.2.77-4 🚀
|
Details
Before this change, if you:
The closed account would still show up as a workspace member. Now, they get removed from the workspace members list. This is an update the logic implemented here (cc @s77rt)
Fixed Issues
$ #15267
Tests
Offline tests
N/A. This requires interacting with the API, so no special offline tests.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Screen.Recording.2023-02-21.at.2.14.33.PM.mov
Mobile Web - Chrome
android.chrome.mov
Mobile Web - Safari
ios.mov
Desktop
Screen.Recording.2023-02-21.at.2.19.09.PM.mov
iOS
ios.mov
Android
android.mov