Deprecate the default rooms beta for #admins and #announce rooms#18393
Conversation
|
Asked about test domains here (see QA steps for context) |
| return getOptions([], personalDetails, { | ||
| betas, | ||
| searchInputValue: searchValue.trim(), | ||
| excludeDefaultRooms: true, |
There was a problem hiding this comment.
Just removed this because I found that this param wasn't being used anywhere in getOptions
|
Adding CP Staging label as there's some urgency around this |
|
|
…DefaultRoomsBetaExceptForDomainRooms
yuwenmemon
left a comment
There was a problem hiding this comment.
LGTM! But why CP to staging? Can this not just follow the normal deploy process?
|
@yuwenmemon Yeah it can, just thought there was some urgency around this. If you don't agree feel free to remove the label. |
|
@0xmiroslav @PauloGasparSv 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 yeah better to err on the side of caution IMO. If someone wants it right now we can always CP it later too. |
|
@jasperhuangg how can I |
|
Ah @0xmiroslav you need to be an internal employee to do that on your dev environment. You can just test the changes to admins and announce rooms for now. Ignore anything that has anything to do with domain rooms. |
|
Hey @jasperhuangg I think the steps under "Last viewed report" repeat, is that's intentional? |
@PauloGasparSv fixed them, was a typo, thanks for pointing that out! |
|
@0xmiroslav will you be able to compete your review today? |
| // Include any public announce rooms, since they could include people who should have access but we don't know to add to the beta | ||
| if (report.visibility === CONST.REPORT.VISIBILITY.PUBLIC_ANNOUNCE) { | ||
| // Include any admins and announce rooms, since only non partner-managed domain rooms are on the beta now. | ||
| if (isAdminRoom(report) || isAnnounceRoom(report)) { |
There was a problem hiding this comment.
All #admins, #announce rooms are free policy so not able to reach this condition as early returned here:
Lines 1495 to 1497 in 5f649d5
I had to remove this manually to test this PR properly.
| // Check where ReportUtils.findLastAccessedReport is called in MainDrawerNavigator.js for more context. | ||
| sortedReports = _.filter(sortedReports, report => !isDefaultRoom(report) || isPublicAnnounceRoom(report) | ||
| // Domain rooms are now the only type of default room that are on the defaultRooms beta. | ||
| sortedReports = _.filter(sortedReports, report => !isDomainRoom(report) | ||
| || getPolicyType(report, policies) === CONST.POLICY.TYPE.FREE |
Reviewer Checklist
Screenshots/VideosWebweb.mov |
0xmiroslav
left a comment
There was a problem hiding this comment.
LGTM 🎉
#admins and #announce rooms work well. not able to test domain rooms.
|
🎯 @0xmiroslav, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #18463. |
|
✋ 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/jasperhuangg in version: 1.3.11-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.12-0 🚀
|





Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/280874
Tests
Before performing any local tests
|| canUseAllBetas(betas)from the condition incanUseDefaultRooms.LHN Options
|| canUseAllBetas(betas)to the condition incanUseDefaultRooms.Last viewed report
If you added
|| canUseAllBetas(betas)to the condition incanUseDefaultRooms, delete it again.Offline tests
N/A
QA Steps
ping @jasperhuangg to QA
LHN Options
1 Verify that the #admins room for your workspace appears in the LHN
2. Verify that the #announce room for your workspace appears in the LHN.
3. Verify that the #domain.com room does not appear in the LHN
Last viewed report
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
Screen.Recording.2023-05-04.at.12.37.37.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-05-04.at.12.48.16.PM.mov
Mobile Web - Safari
Screen.Recording.2023-05-04.at.12.52.10.PM.mov
Desktop
iOS
Android