-
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 AddWorkspaceRoom
's optimistic participant data for non-restricted rooms
#22385
Conversation
52d8d03
to
8a468b5
Compare
@mananjadhav Please 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] |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-07.at.4.17.45.AM.movMobile Web - ChromeScreen.Recording.2023-07-07.at.4.43.34.AM.movMobile Web - SafariRPReplay_Final1688685695.MP4DesktopScreen.Recording.2023-07-07.at.4.24.05.AM.moviOSAndroidANDROID_t.mov |
@francoisl In the restricted room, an extra hidden profile is shown for me while offline is this expected? Screen.Recording.2023-07-07.at.4.17.45.AM.mov |
Hmm weird. What happens if you create room while being online instead? Also can you see the same thing from |
Here is the online recording you can see the count reduced from 3 to 2 on the Details page. Screen.Recording.2023-07-07.at.4.26.09.AM.mov |
Yes happens on the main too! |
Ok thanks. The |
Discussed the |
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, thanks!
@pecanoro - Puneet already approved and I imagine you're out for the day as well, going to self-merge since it's for a blocker. |
✋ 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/francoisl in version: 1.3.38-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.38-7 🚀
|
// The participants include the current user (admin) and the employees. Participants must not be empty. | ||
const participants = _.unique([currentUserAccountID, ...policyMembers]); | ||
// The participants include the current user (admin), and for restricted rooms, the policy members. Participants must not be empty. | ||
const members = visibility === CONST.REPORT.VISIBILITY.RESTRICTED ? policyMembers : []; |
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.
This should have been updated to only add the owner as a member when we added functionality for a member to be able to join the room. This was fixed in #31375
Details
When creating a public room while offline, make sure we only use optimistic the current user's account ID for the optimistic data, so that we don't accidentally show the workspace members' details.
This implements @kushu7's proposal, but I'm submitting a PR for it since they're offline at the moment and
Fixed Issues
$ #22353
PROPOSAL: #22353 (comment)
Assigning @puneetlath as discussed 1:1, because he's already familiar with these changes.
Tests
+
floating button > New RoomOffline tests
The test/QA steps should be taken while offline
QA Steps
Same as test steps above
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)/** 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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android