Disable renaming public rooms if the current user is not an admin or the creator of the linked workspace#15688
Conversation
|
@eVoloshchak @bondydaa 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] |
|
@jasperhuangg, where can I find Do I need my account to be added to the policy rooms beta on dev for this to work? |
|
@eVoloshchak I've updated the testing steps, you don't need that script anymore.
You can just sign in with the testing account that I've provided in the QA steps, that's already been added to all the necessary betas, and you can just follow the QA steps if you're using |
|
Gonna ask for more reviews since we want to get this deployed before Friday |
Reviewer Checklist
Screenshots/Videos |
eVoloshchak
left a comment
There was a problem hiding this comment.
Looks good and tests well with the updated instructions, thanks
|
🎯 @eVoloshchak, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #15756. |
|
After you correct the function name here: https://github.com/Expensify/App/pull/15688/files#r1130755483, I'll approve. Sorry for the slowness, just got to test it today. |
|
Added a commit to this while Jasper is OOO, please give this a review (we want this out before ECX) |
|
Okay tested locally, good to go cc @MonilBhavsar or @aldo-expensify |
|
@bondydaa @aldo-expensify @thienlnam Thank you guys for keeping this moving while I've been out sick. I have literally been in bed all day 😢 fixed the conditions and consolidated the logic as stated in your review comments, good for another look! |
| * @param {Object|null} linkedWorkspace - the workspace the report is on, null if the user isn't a member of the workspace | ||
| * @returns {Boolean} | ||
| */ | ||
| shouldDisableRename(linkedWorkspace) { |
There was a problem hiding this comment.
Can we just change this to currentWorkspace? I am not sure what linked workspace implies
|
✋ 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/thienlnam in version: 1.2.83-0 🚀
|
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.2.83-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.2.83-3 🚀
|







Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/266085
Tests
(if you're using the web proxy, just follow the QA steps instead)
localhost:8080/r/<reportID) > Settings.Offline tests
QA Steps
asdfASDF00)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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android