-
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
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly Looks good just one doubt!
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)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.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