-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Don't restrict accessing members for non-public UCRs #30613
Conversation
🧪🧪 Use the links below to test this build in android and iOS. Happy testing! 🧪🧪 |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
@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] |
@jasperhuangg Is this still on Hold? |
@mananjadhav Nope! The PR it was held on was actually just deployed yesterday, feel free to review! |
@mananjadhav bump on this PR |
@jasperhuangg I haven't been able to prioritize this. Can you please reassign some other C+ here? |
Taking this over! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-11-30.at.5.10.42.PM.movAndroid: mWeb ChromeScreen.Recording.2023-11-30.at.5.08.15.PM.movScreen.Recording.2023-11-30.at.5.09.25.PM.moviOS: NativeScreen.Recording.2023-11-30.at.5.04.40.PM.movScreen.Recording.2023-11-30.at.5.05.43.PM.moviOS: mWeb SafariScreen.Recording.2023-11-30.at.5.02.21.PM.movScreen.Recording.2023-11-30.at.5.03.26.PM.movMacOS: Chrome / SafariScreen.Recording.2023-11-30.at.4.53.25.PM.movScreen.Recording.2023-11-30.at.4.54.13.PM.movMacOS: DesktopScreen.Recording.2023-11-30.at.4.59.37.PM.movScreen.Recording.2023-11-30.at.5.00.26.PM.mov |
src/pages/RoomInvitePage.js
Outdated
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.
Shouldn't we check here if the user is member of the room here atleast?
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.
Shouldn't we check here if the user is member of the room here as well?
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.
No this is handled already by withReportOrNotFound
@@ -250,7 +240,7 @@ function RoomMembersPage(props) { | |||
testID={RoomMembersPage.displayName} | |||
> | |||
<FullPageNotFoundView | |||
shouldShow={_.isEmpty(props.report) || !isPolicyMember} | |||
shouldShow={_.isEmpty(props.report) || (ReportUtils.isPublicRoom(props.report) && !isPolicyMember)} |
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.
What happens if the user is accessing a deep link to a room in which he is neither a member nor part of the workspace?
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.
I believe this is handled by withReportOrNotFound
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.
Tests well!
🎯 @allroundexperts, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #32300. |
We already had a C+ assigned so unassigning the auto-assigned C+ |
friendly bump @bondydaa |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/yuwenmemon in version: 1.4.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to staging by https://github.com/bondydaa in version: 1.4.8-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/329060
Tests/QA
Test accounts
Setup
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)/** comment above it */
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop