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 |
There was a problem hiding this comment.
Shouldn't we check here if the user is member of the room here atleast?
There was a problem hiding this comment.
Shouldn't we check here if the user is member of the room here as well?
There was a problem hiding this comment.
No this is handled already by withReportOrNotFound
| > | ||
| <FullPageNotFoundView | ||
| shouldShow={_.isEmpty(props.report) || !isPolicyMember} | ||
| shouldShow={_.isEmpty(props.report) || (ReportUtils.isPublicRoom(props.report) && !isPolicyMember)} |
There was a problem hiding this comment.
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.
I believe this is handled by withReportOrNotFound
|
🎯 @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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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 */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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop